Jump to content

C program crashes after calling Labview dll, because Labview runtime


Recommended Posts

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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.