[AGENT++] Access Violations on delete.
Josh Pressnell
joshua.pressnell at rti-world.com
Tue Jan 31 20:36:13 CET 2006
Frank,
Yes. That is also the example that I'm basing our MIB from. One main
difference is that we're running the agent within a CWinThread object
which is started from a larger application. I am also using a mib and
request list which are local to that CWinThread object, rather than the
globals from the example. I tried using globals at one point, but that
did not seem to help.
Is it possible there are issues running an agent within a CWinThread in
an MFC project?
Also, I can browse and do GETs on the entire tree, but I can't seem to
receive any of the traps I'm sending in MIB Explorer. I'm searching
through the manuals now... but any pointers you might provide would be
greatly appreciated.
Thanks!
-Josh
Frank Fock wrote:
> Hi Josh,
>
> I would guess that the root cause for the memory corruption is not in
> the OctetStr
> or the Mib class. If you have changed any #define then you should
> recompile
> everything - otherwise using a memory checker might help to find the
> source of
> the problem. Have you tried to compile and run the ATM example yet?
>
> Best regards,
> Frank
>
> Josh Pressnell wrote:
>
>> Greetings all!
>>
>> I've been working on getting a V3 mib up and running. I now believe
>> I have the agent running, but when the agent exits and I call "delete
>> mib;", I get notifications of memory corruption shortly followed by
>> an access violation. I have tracked the issue to the MibContext
>> destructor. When the MibContext tries to destruct the OctetStr
>> "context", its smival appears corrupted.
>>
>> I've also had other problems when using OctetStr. In the initial
>> startup of the mib, the creation of a local OctetStr appears to
>> corrupt the stack and overwrite member variables in my thread class.
>>
>> Has anybody run into this problem before?
>>
>> Thanks in advance...
>>
>> -Josh
>>
>> --
>> -- Official RTI e-mail ---
>> --
>>
>>
>> _______________________________________________
>> AGENTPP mailing list
>> AGENTPP at agentpp.org
>> http://lists.agentpp.org/mailman/listinfo/agentpp
>>
>>
>
>
--
-- Official RTI e-mail ---
--
More information about the AGENTPP
mailing list