scasystems
Programmer
Hi All,
I have a standard library of functions which is in library.dll. I recently changed a logevent Routine to check a public global variable DEBUG_ON and exit if not set else write a logging event to a file.log.
The problem is my main program checks for /debug on the command line and then sets DEBUG_ON depending on the above.
However another DLL I have written which encapsulates logging on (shared by diffrent applications) doesn't write to the event.log while the main program does.
Is this to do with apartment threading. How can a library.dll have a public global variable that IS shared by all processes.
cheers for any help on this one
I have a standard library of functions which is in library.dll. I recently changed a logevent Routine to check a public global variable DEBUG_ON and exit if not set else write a logging event to a file.log.
The problem is my main program checks for /debug on the command line and then sets DEBUG_ON depending on the above.
However another DLL I have written which encapsulates logging on (shared by diffrent applications) doesn't write to the event.log while the main program does.
Is this to do with apartment threading. How can a library.dll have a public global variable that IS shared by all processes.
cheers for any help on this one