RE: snmp_sess_close()

This is a discussion on RE: snmp_sess_close() within the SNMP Coders forums, part of the Networking and Network Related category; On Tue, 2005-11-08 at 16:23 -0500, Haizhu Liu wrote: > I have a member function closeSession() and ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-09-2005
Dave Shield
 
Posts: n/a
Default RE: snmp_sess_close()

On Tue, 2005-11-08 at 16:23 -0500, Haizhu Liu wrote:
> I have a member function closeSession() and destructor that calls
> closeSession()

[snip]

> If I comment out the actions in destructor, the code runs fine.
> I don't understand why. The core seems to yell on double free.


All I can suggest is that you run this code under a debugger,
and set a breakpoint in 'snmp_sess_close' (or possibly
'snmp_free_session')

Then issue a backtrace to detect where this is being called from.
That might help in tracking down what's happening.

Dave


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0