Board index » Visual Studio » ATL EXE global data
|
bsgold
|
ATL EXE global data
Visual Studio221
I have ATL.NET EXE (attributed unmanged) project that has a lot of static class members. Initially I intended to use the object as a single instance per machine, but later I needed to use multiple instance of the EXE object on the same machine. What I know from previous tests that global data or static members of classes are shared between clients (instances) of the EXE server. This issue makes a problem with the logic of the object. Is there any setting that can be played with, or any code to be added, or any preprocessor definition that can be set to disable this sharing of global data (static members). In VB COM EXEs I usually solve this issue by playing with the project settings(thread per object and thread pool). Is there any similiar thing in VC that helps to solve this thing, because code update to not use the static is difficult now. Regards. Rami - |
