05-07-2010 09:38 AM
Windows XP machine, service pack 3, LabVIEW 2009
LabVIEW: (Hex 0x5EC) The method in the DLL overwrote past the end of space allocated for one of its parameters. This may have corrupted memory.
Any suggestions?
05-07-2010 09:40 AM
Check your calling convention to makes sure you are using teh correct type.
Ben
05-07-2010 09:42 AM
willowsword wrote:Windows XP machine, service pack 3, LabVIEW 2009
LabVIEW: (Hex 0x5EC) The method in the DLL overwrote past the end of space allocated for one of its parameters. This may have corrupted memory.
Any suggestions?
What method?
What dll?
what function?
Who was doing what?
who wrote the dll?
who was calling the dll - your code, LabVIEW or Windows?
Not enough infomation for anyone to give suggestions willowsword
James
05-07-2010 09:55 AM
Sorry for the brief post, but if there was a general answer there was no need of going into detail. The dll is from hytekautomation for ptp cameras, and I figured I might be able to figure out enough to not have to contact them. Because this is 3rd party software, I'm assuming that is my next step. But in case someone else who has a copy of this knows more than I, here are the answers I have...
The code calls a library function, PTPCam.dll, function name Transfer Picture, calling convention C, function prototype void TransferPicture(int32_t ImageRef, const CStr fileName, int32_t Format, int32_t delete);.
05-07-2010 10:03 AM
As usual, Ben has probably got it right, you just have to work out where he is right.
James
05-07-2010 10:11 AM
willowsword wrote:Sorry for the brief post, but if there was a general answer there was no need of going into detail. The dll is from hytekautomation for ptp cameras, and I figured I might be able to figure out enough to not have to contact them. Because this is 3rd party software, I'm assuming that is my next step. But in case someone else who has a copy of this knows more than I, here are the answers I have...
The code calls a library function, PTPCam.dll, function name Transfer Picture, calling convention C, function prototype void TransferPicture(int32_t ImageRef, const CStr fileName, int32_t Format, int32_t delete);.
I suggest you search on "Rolf" and "dll" and maybe throw in "pointer" to see what the the EXPERT has already said on this subject.
I have never run into a dll calling issue for which Rolf has not already posted the answer.
Co-worker speaking about me in the office : "That Ben is an encyclopeadia!"
My reply on hearing above : "No, at best I am an index."
Ben
05-07-2010 10:14 AM - edited 05-07-2010 10:21 AM