Hi all,
I am working on a program that reads data from a serial port. I am using a commercial Com-port library (Greenleaf) to poll the port. The program runs fine in design mode but when I try to run the .exe (or an install from the deplotment wizard) the program crashes and returns the following error:
The instruction at "0x66014538" referenced memory at "0x0000000c". The memory could not be "read"
The line of code that I believe causes the crash is when I try to read the port's incoming data buffer using the Greenleaf port-control's "readstring" method.
ie: Data = MyPort.ReadString(max_count)
Data is a string, max_count is a long (I have tried a variety of values for this number with no success).
Is this likely a problem with the 3-rd party library or is there another possible culprit? Has anyone else had a program run properly in the design environment but not as an .exe?
Thanks,
Ryan
I am working on a program that reads data from a serial port. I am using a commercial Com-port library (Greenleaf) to poll the port. The program runs fine in design mode but when I try to run the .exe (or an install from the deplotment wizard) the program crashes and returns the following error:
The instruction at "0x66014538" referenced memory at "0x0000000c". The memory could not be "read"
The line of code that I believe causes the crash is when I try to read the port's incoming data buffer using the Greenleaf port-control's "readstring" method.
ie: Data = MyPort.ReadString(max_count)
Data is a string, max_count is a long (I have tried a variety of values for this number with no success).
Is this likely a problem with the 3-rd party library or is there another possible culprit? Has anyone else had a program run properly in the design environment but not as an .exe?
Thanks,
Ryan