STILL memory leaks!

DavidGL se04532____salleURL.edu
Fri Jul 14 17:25:17 CEST 2000


 Dear you all,

 Thank you, Frank, for your previous advice, I don't have an Access
 Violation anymore, but the memory leaks still survive! 
 Can you give a look to this, please?
 
 Hope someone can bring light to me...

>-----------------------------------------------------------------------<

Detected memory leaks!
Dumping objects ->
{150} normal block at 0x00E725E0, 6 bytes long.
 Data: <public> 70 75 62 6C 69 63 
{149} normal block at 0x00E72620, 24 bytes long.
 Data: <  I          %  > C4 BF 49 00 04 00 00 00 06 00 00 00 E0 25 E7 00 
{148} normal block at 0x00E72670, 6 bytes long.
 Data: <public> 70 75 62 6C 69 63 
{147} normal block at 0x00E726B0, 24 bytes long.
 Data: <  I         p&  > C4 BF 49 00 04 00 00 00 06 00 00 00 70 26 E7 00 
{136} normal block at 0x00E72940, 24 bytes long.
 Data: <  ]             > 20 0B 5D 00 FF FF FF FF 00 00 00 00 00 00 00 00 
{42} normal block at 0x00E71AD0, 116 bytes long.
 Data: <                > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD 
Object dump complete.

>-----------------------------------------------------------------------<

 Thanks in advance again,
                          David Gonzalez

 P.D.: the new code is the following:

>-----------------------------------------------------------------------<

     ...

	volatile BOOL keepRunning;
	Snmpx* snmp;
	Mib* mib;
	RequestList* reqList;

     ...

 	int status;
	snmp=new Snmpx(status, 161);

	if(status!=SNMP_CLASS_SUCCESS)
	{
		AfxMessageBox("merda snmpx");
		return;
	}

	mib=new Mib;
	reqList=new RequestList;

	SetupMib();  // where I add MibLeafs to the mib
                     // but now I don't add any. 
                     // (i.e. void SetupMib(){ }  is empty)

	mib->set_request_list(reqList);
	reqList->set_snmp(snmp); 

     ...

	Request* req=NULL;

	keepRunning=TRUE;

// in these moments, the next fragment of code is commented because
// I just want to test the leaks
/*
	while(keepRunning)
	{
		req=reqList->receive(1);
		if(req)
		{
			mib->process_request(req);
			req=NULL;
		}
	}
*/

     ...

	delete mib;
	delete reqList;
	delete snmp;

     ...

>-----------------------------------------------------------------------<

 Looking forward to know from you,

                                   David.

 _________________________________________________________________________
 __/~~~~\___/~~~\__/~\_/~\_/~~~~~\_/~~~~\______/~~~\________/~\___________
 __/~\_/~\_/~\_/~\_/~\_/~\___/~\___/~\_/~\____/~\___________/~\___________
 __/~\_/~\_/~~~~~\_/~\_/~\___/~\___/~\_/~\____/~\_/~\_______/~\___________
 __/~\_/~\_/~\_/~\__/~~~\____/~\___/~\_/~\____/~\_/~\_/~~\__/~\_____/~~\__
 __/~~~~\__/~\_/~\___/~\___/~~~~~\_/~~~~\______/~~~~\_/~~\__/~~~~~\_/~~\__
 _________________________________________________________________________

 David Gonzalez i Lesmes                      e-mail: se04532 at salleURL.edu
                                              http:   //welcome.to/DavidGL
 Projecte FlowServer                          telf:     (+34) 93.290.24.28
 Centre de TeleVisió Digital (CeTVD)
 Enginyeria i Arquitectura La Salle. Universitat Ramon Llull






More information about the AGENTPP mailing list