LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Handling win32 exceptions

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"

0 Kudos
Message 1 of 4
(2,566 Views)

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.

0 Kudos
Message 2 of 4
(2,558 Views)

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).

0 Kudos
Message 3 of 4
(2,553 Views)

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.

0 Kudos
Message 4 of 4
(2,539 Views)