LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

EXEcutable only starting DLL when calling a popup before.

Hello,
1. I have created a DLL in Labview 8.2 with one VI/function.
2. Then i call this DLL/function in a new VI
3. Then i created an EXE-file of this VI (which calls a DLL)

Attached a screenshot of the code.
As you can see it contains a sequence-structure where in the first part i open a message-popup and in the second-part i call the DLL.
When i run it like this then it works without problems.

The funny thing is:
When i remove the message-popup and create a new EXE-file and run it then nothing happens!
Only the Run-arrow changes to running-mode (and stays there until i close it with taskmanager) but the outputs dont-change (they stay "0").

(The VI in the DLL that i call is very simple. The Inputvalue "11" is added and multiplied. This two results are returned. So nothing special.)


Whats wrong here? Seems like Labview can´t make the DLL-call starting in the second exe-file (without an popup before).
Is this a kind of a bug?

Thanks for your help and ideas
0 Kudos
Message 1 of 6
(2,644 Views)
That is a bug. I've noticed this too. A popup is not nessecary, a 1 or 2 ms wait does the trick.


My situation was: I had a very complicated dll function (one that had a user event reference in a buffer) to be called by a callback function. It worked like a charme in development mode. It didn't work in a simple executable, with only the dll. Like you said, the run arrow simply hangs, nothing happens.


I started trimming down the function, at last I only had a constant on the output, it still didn't work. Unless I put almost anything before it.


It seems to me that there is something going wrong when the runtime engine is loaded, while the dll tries to load it too. Or the dll is using a part of the runtime enigne that is not ready.


Regards,


Wiebe.
0 Kudos
Message 2 of 6
(2,639 Views)
Is this fixed in LV 8.2.1 ?

(BTW, where can i download 8.2.1 ?)
0 Kudos
Message 3 of 6
(2,628 Views)
It's at http://www.ni.com/support/lv8_21.htm


Have to get back on whether it is fixed.
0 Kudos
Message 4 of 6
(2,627 Views)
Hmm, i´m getting a red error-message after cklicking on "install LabVIEW 8.2.1 now." in your link.
Whats going wrong here?
--> See attached screenshot
0 Kudos
Message 5 of 6
(2,625 Views)
Didn't actually try it, and I got the same error. Guess we'll have to notify the webmaster.
0 Kudos
Message 6 of 6
(2,618 Views)