LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call dll and labview will quit

When the vi call a dll from 3rd party, labview will quit suddenly.

 

May I know how should I check for it, thanks.

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

Maybe the dlls task is to quit LabVIEW ?!Smiley Very Happy

 

I guess the dll you are calling crashes and takes LabVIEW with it.

 

Check the calling of your dll. There might be a failure.

 

Best regards,

 

Rainer

Message Edited by Balze on 06-15-2010 05:16 AM
0 Kudos
Message 2 of 4
(2,609 Views)

There are far too many things that could go wrong:

  • Wrong calling convention
  • Improper configuration of parameters
  • Improper handling of memory (e.g., the DLL expects memory to be allocated, and you don't)
  • Improper handling of memory, part II (e.g., the DLL allocates memory and you don't know)
  • Improper handling of memory, part III (e.g., you allocate an array, and then branch off the wire, creating a copy, and the DLL expects the array to be in the same place).
  • ...
Without further information it's a guessing game, and frankly I don't feel like playing guessing games this morning. If you provide more details as to what you are actually doing (including some code if that makes things more clear), then a better answer can be provided.
Message Edited by smercurio_fc on 06-15-2010 09:28 AM
0 Kudos
Message 3 of 4
(2,596 Views)

If the DLL is known to be good, then most of the times the crash is caused by the wrong calling convention.  I've seen this numerous times.  There are two calling convention choices:  WINAPI and C.  Whichever one is selected, change to the other.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 4
(2,584 Views)