Multiple appln instance & Global variable - TechRepublic
General discussion
May 23, 2005 at 09:21 AM
daz1

Multiple appln instance & Global variable

by daz1 . Updated 21 years, 1 month ago

I have an application developed in VB6. This application has got a Global boolean variable declared in a VB Module in the project. Depending upon certain conditions the boolean varible is set TRUE or FALSE. Now when iam running a second instance of this same appln in same PC this flag is anomalously set by the TWO instances of same application and is cousing problem.
The requirement is to run more than ONE instance of this application in same PC. The variable needs a global declaration because it is accessed by different forms of the application and and the value is set depending on different conditions.
Please help me with any valuable suggestion in this regard.

Thanks,
daz

This discussion is locked

All Comments