Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to prevent multiple instances of a specific dll?

Status
Not open for further replies.

rvr

Programmer
Jan 26, 2000
16
ZA
Hi,

I created a dll which is referenced from another project. But it seems as if this dll gets referenced twice when the program is run, because the variables change somewhere without appearant reason.

Any idea on how to solve this, or even if there is an idea on what else might cause this, would be appreciated.

Thank you,
rvr
 
Hi rvr,

This looks like a problem that the Debug tools were created for.

A couple of suggestions:
run the project in break mode and see where the dll is referenced the first time and where the dll is referenced the second time.

Add a watch and put the expression that occurs when the value changes. Do this for each variable that changes.

You might want to review the testing stage of your development process. It's very easy to omit some of the necessary stages of the testing process. The result, though, is that problems like this one can occur if a project is not thoroughly tested at each stage of the development process.

Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top