Runtime error when using ComReceive() func

Raz A.
Haifa,

May 18, 2020
82 Posts

0  |  0  

Re: Runtime error when using ComReceive() func

I use ATEASY 7 142g in windows 7 x86.

I am having an unexplained runtime error when using the ComReceive() function :

Run-time error #333 : 'System exception 0xC0000005 'Memory access violation' Occurred in DLL procedure 'ComReceive'  ATEasy may be in an unstable state. Please save your files and exit ATEasy.

This is my call:
lReadBytes = comreceive(m_DaPort, "", 100,, aucInternalData, 1024)

When aucInternalData is a one dimensional byte array in size of 131072.
I receive maximum 1024, so i dont see where the problem is.

Can anyone elaborate?

Raz A.
Haifa,

May 25, 2020
82 Posts

0  |  0  

Re: Runtime error when using ComReceive() func

Ron, do you have any insights?
Toda :-)

DrATEasy (Ron Y.)
Mission Viejo, CA

May 26, 2020
358 Posts

0  |  0  

Re: Runtime error when using ComReceive() func

I believe memory is corrupted before this call, place a breakpoint before the call and view variables values using the Call Stack or Globals to see if any of one of the variable is corrupt.

You can also install the latest ATEasy (side by side) to see if it behaves differently since the version you are using is old and this maybe an issue that was resolved. With v10 you can also save a dump file/exception eventss file that can tell us more information about the issue (see https://www.marvintest.com/KB/Q200213/The-ATEasy-Crash-Analysis-Tool).

Ronnie

Raz A.
Haifa,

May 26, 2020
82 Posts

0  |  0  

Re: Runtime error when using ComReceive() func

It happens only when running the exe, not when debugging...so we cant put a breakpoint

We cant upgrade the ateasy version because of drivers depending on the 7 version....

The data array is a local variable that is not used somewhere else in that function...
So i dont see how the memory can be corrupted



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]