StefanE Posted January 21, 2009 Report Share Posted January 21, 2009 First my configuration: Labview 8.5.1 / 8.2.1 Visual Studio 2005 standard edition with SP1 now the problem: I have a huge Labview program compiled as dll. Now I'm calling functions of this dll from my C code. This works fine, but at the end when my c program ends with the return from the main function I get sometimes this exeption: First-chance exception in InterfaceTest.exe: 0xC0000005: Access Violation reading from position 0x03696000. This comes in 40 of 50 tries. I have found out, that this behaviour has something to do with the Labview runtime. I've tried to link the Labview dll dynamical instaed of link it statical and I have found out that there is the same problem. But when I unload the Labview dll in my C program with dynamical linking, wait manually (getchar) until the Labview runtime is closed and return then from the main function there comes no error. I also have tried this 50 times with no errors. The Labview runtime needs 11 Seconds to close until the unload of the dll. In the Labview dll are Goop and DAQmx with 6221/6251 used. Quote Link to comment
Phillip Brooks Posted January 21, 2009 Report Share Posted January 21, 2009 Cross-posted on NI http://forums.ni.com/ni/board/message?boar...ssage.id=380475 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.