LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 6.0.2 crashes when buildin vi that calls DLLs

During building a vi that calls a DLL (generated by cygwin) LabVIEW 6.0.2 chashes everytime. I'm getting angry ! I tried with labVIEW 5.1 and it goes easily. Does anyone had any solution for that ?
0 Kudos
Message 1 of 6
(2,405 Views)
Hi,

If I recall correctlly, a DLL in LV5 defaults to "reentrant" execution. In
LV6, the dll defaults to "Run in UI Thread" execution. So in LV6, you can
try to change this, it might fix the problem.

Regards,

Wiebe.



"RA Eletro" wrote in message
news:50650000000800000074530000-1027480788000@exchange.ni.com...
> During building a vi that calls a DLL (generated by cygwin) LabVIEW
> 6.0.2 chashes everytime. I'm getting angry ! I tried with labVIEW 5.1
> and it goes easily. Does anyone had any solution for that ?
0 Kudos
Message 2 of 6
(2,405 Views)
Hi RA Electro,

Check your calling convention to ensure it matches what the DLL expects. The wrong calling convention will cause crashes @ compile time.

I suggest you get it working in a small VI all by itself. I have had to coplete blow away a call and start over when I saved the worng way.

Check your convention.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 6
(2,405 Views)
The crashes happen without compiling. With version 5.1 it seems more stable.

After restarting millions times, I can have the vi working.
0 Kudos
Message 4 of 6
(2,405 Views)
FYI

In LabVIEW teh VI is re-compiled everytime you make a change. Thats what gives the broken wires and the like.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 6
(2,405 Views)
RA Electro,

I assume that you also have the LabVIEW 6.0.2 Run-Time Engine installed. You can get errors like this if you try running your application off of the LabVIEW 6.0 Run-Time Engine.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 6 of 6
(2,405 Views)