02-02-2012 06:53 AM
HI,
I am trying to use a native win32 dll in LabVIEW.
I have issues using this DLL . It seems to crash even while I am not running the program.
When running it its just worse at times.
It tries to give some crazy win32 exceptions.
Is there a way to efficiently handle these win32 exceptions in LabVIEW environment.
Any best practices used to handle them would be greatly appreciated.
Sundar.
Note: The Dll currently I am using is "Winscard.dll"
02-02-2012 08:07 AM
Perhaps the issue is in the way you are calling it. You may be improperly configuring it, or not allocating memory properly, and stomping all over memory. That would certainly account for the crashes. You should provide details on how you are calling it. Providing code would help.
02-02-2012 01:06 PM
In the Call Library Function Node, try setting the debugging level to "Maximum" and see if it reports errors that are more helpful. You may find out that the DLL is consistently writing to memory that it should not touch, which is a good indication that you have not configured the call library function node properly (as smercurio suggests).
02-06-2012 07:26 AM
Thanks for the inputs,
I am currently trying to optimize the code with the help of win32 debugger and fix violations.
When they are stabilized, will post the optimized one 🙂
Sundar.