PDA

Click to See Complete Forum and Search --> : how to create a new object of active.dll


[SPS]dEFiNE
Oct 29th, 2002, 04:26 AM
i have a problem... when i first create an instance of my active.dll it works fine.. but when i use the "NEW" command to create another object it refernce to the first one (already working) insted of an new.

Anyone help! :)

This is my function...
private void gotConnectionRequest(int requestID)
{
// Got Connection Request. Starting new instance of PB_IS
//create
obj = new TestSocket.ClassClass();

//Mapp event
obj.Stopped += new TestSocket.__Class_StoppedEventHandler(this.StopPBISInstand);

// Startup active to work
obj.ProcessID(requestID);

//move to collection
PBISInstance.Add(obj);

obj = null;
}