Quote:
Originally Posted by mikets
I don't have Wind River in front of me at the moment so I can't verify the com class especially the Read method, but my instinct tells me that you declare buffer as a "char *" which means there is no buffer associated with it. buffer is an uninitialized pointer. If the Read method is going to put bytes into buffer, it is going to trash random memory locations.
I could be wrong 
|
Perhaps. But the data being printed is correct, however it's slow and crashes afterwards.