Jump to content

Loading VIs into memory


Recommended Posts

Can be, that, if I loaded a VI, which calls a DLL, into memory(by opening e.g. from project explorer) and then load a VI, which calls this VI by static reference, then LV tryes to load the DLL twice?

I get errors from DLL if I do that and LV closes immideatly.

Eugen

screenshots

Link to comment

You open two references to the VI that contains the DLL this way. Is this VI of yours a reentrant VI? What ever is the case I don't think that LV should load the DLL multiple times but always use the same DLL instance even when there is a node for that DLL in multiple open VIs. Are these VIs you open in the same application instance?

Link to comment

Actually, I think Tomi is correct about a possible solution.

(trying to imagine something roughly similar on paper.)

The cloning feature Jim just discover means different instance's can run asynchrously.

If it works for an activeX container then it should for a DLL. (my reasoning)

Link to comment

I found out now, that the error appears if I loaded the VI and want then build an application. The app builder loads the VI into memory too, than I have the DLL twice and get the error.

I post the error message at tuesday, than you can sse what I think.

Eugen

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.