global and static variable in a class delivered in a DLL

Joined
Feb 12, 2008
Messages
108
Reaction score
0
Hello everyone,


If we define global variable and static variable of a class, which are implemented in a DLL. My questions are,

1. All instances of class share the single copy of global variable and static variable of class? If yes, I need to have some synchronization approach on them.

2. Is it safe to use global variable and static (public) variable after DLL unloads?


thanks in advance,
George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top