LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView 8.5 DLL crashs

Hi all,

I have the following problem.
I have build a dll which works fine under LabView 8.0 but after conversion to LV 8.5 it crashs exactly at the moment when you call a subVI with a visible frontpanel (no matter which code is inside the subVI)

Has anybody an idea whats the reason?

Thanks and best regards, Helmut

P.S. I have no possibility to change to 8.5.1 if its a known bug - unfortunately too many users for a simple change of the runtimes

0 Kudos
Message 1 of 3
(2,858 Views)
Hello,

Please check if you set the call library node to run in any threa and the caller VI to run in another thread as the UI Thread:
http://digital.ni.com/public.nsf/allkb/58596F5D41CE8EFB862562AF0074E04C?OpenDocument

Best regards
Ken
0 Kudos
Message 2 of 3
(2,819 Views)
Hi Kent,

Thank you very much for your answer.
I have played with the options but unfortunately with the same result.

But maybe the description of my question was not very good (I have added an example in the zip file)

I want to call a LabView generated dll from an other programm, for example from Microsoft Office.
Here is the code

Private Declare Sub DLLTEST_MAIN Lib "C:\DLL_TEST\DLLTEST.dll" (ByVal MY_INPUT As String)

Sub DLL_TEST()
Call DLLTEST_MAIN("Hallo")
End Sub

The dll does nothing, shows only the input variable. But if you call a subVI with visible frontpanel from this mainVI (there is a button in the example code) then Word and labview crashs. (it dont crash under LV 8.0)

In the meantime I have reported it to National Instruments, but unfortunately until now I have no answer from them.

Thanks again for your answer, Helmut

LV 8.5

0 Kudos
Message 3 of 3
(2,806 Views)