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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple nstance of single class

Status
Not open for further replies.

doseme

MIS
Nov 23, 2005
22
US
I have several objects that inherit from a single base class declared Must Inherit with no shared or static members. However; when multiple descendant objects exist they all share the same properties (being what ever they were set to by the lastly created object inheriting form the base).

How do I get around this issue?
 
Sorry

I have an app that performs data replications from db2 to oracle.

There is a base class that handles the connections, queries and data updates.

Each data replication relies on this base class to perform the work by only supplying the connection strings and sql

They work fine from different directories when run simultaneously.

However; I have a seperate app that dynamicly loads the classes by name according to the windows task scheduler. It provides the log maintenance, error reporting etc and the dynamicly loadable classes are stored in a single location.


While one class is performing the data replications, and another class is created, the processes of the previously executing class are disrupted by its properties being changed by the newly created class.

Example:
Class A Has it's destination data base query and source database query set. The method runs to fill a local dataset from the destination database.

Meanwhile, Class B loads, setting its query properties

Then Class A executes its method to find the changes from the source database but incorrectly queries the source database of Class B.

Probably too much detail... sorry, but I hoep it helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top