LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

statically link and dinamically link to the same DLL. Same address space?

 

Hi,

 

If in a CVI project you link the import library of an external DLL (.dll),

(Listing the DLL import library (.lib) in the project)

 

and then, in runtime, you load the same DLL dinamically,

(with the Windows API functions: LoadLibrary()...)

in the same process

 

Do we have two instances of the same DLL in different spaces of memory,

or Is the same instance?

 

A call to LoadLibrary() function, with the module previously loaded (with a previous call to LoadLibrary() function),

returns a handle to the module that was loaded first.

 

But what happen if the module is previously statically link?

 

Best Regards

 

 

 

 

 

 

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

Good question. I also want to know answer to this question.

I think you can only load one dll of same name in CVI.

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 2 of 2
(4,169 Views)