LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

can multiple processes access a single DLL?

I have a customer who wants to have multiple processes access a single dll, at the same time. Will these multiple calls be able to share information in a global area? Is there an index number sent with each call so I can keep data for each calling process separate in a separate array index, or is there some other way to do it?
0 Kudos
Message 1 of 2
(3,437 Views)
Hello

Dlls are designed to be called by multiple processes without corrupting data. If you need to have all the processes share data, then it is something you need to setup explicitly. But basically, whenever a process loads a dll, it gets its own copy of the dll variables. It shares the functions ofcourse.

To shared dll data, consider using memory mapped files which are part of the windows SDK.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,437 Views)