LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with library call function; exception occured with external call library node

Hello,

I'm having this problem with a library function of mine. The wierd thing is it will work sometimes, about 3 or 4 times, then all of a sudden I get the error. Here is a screen shot of what the error is. I get this will all the library functions. Any ideas what can be causing this intermitnent problem to come up?
0 Kudos
Message 1 of 3
(2,725 Views)
Well, the error message is generated by LabVIEW if any SEH exception is thrown from the DLL, so something inside your DLL is having problems. This could be an access violation (NULL pointer access, bad address, etc), out of memory, etc. Any type of exception that could be thrown either by you or the system.

Assuming this is a Windows system and you have the source and VS debugger, you can tell VS to break whenever any exception is thrown.
0 Kudos
Message 2 of 3
(2,712 Views)
I received that error before too. The one problem I found that fixed if that my C code was not declared as external. (extern if I remember correctly) However I noticed that in the bottom of the CLF dialog where it has the function prototype there are some odd characters such as "@@YAHHPAEH@Z" and others. IF thats there Id research that option otherwise run the memory monitor vi and check for a leak and also ensure all our calling parameters are correct as that will cause that error too.
Hope this is helpful.
-Dave

heres my old thread on it:
http://forums.ni.com/ni/board/message?board.id=170&message.id=95609&requireLogin=False
0 Kudos
Message 3 of 3
(2,706 Views)