[AGENT++] Bug in NotificationOriginator->add_v3_trap_destination()?
Josh Pressnell
joshua.pressnell at rti-world.com
Wed Feb 8 14:52:25 CET 2006
Well... I got frustrated yesterday and upgraded my development machine
to VS7 and used the projects downloaded from the agentpp website to
build the libraries. That met with full success. I then went through
and upgraded our code to comply with the new compiler and everything
compiles.
Still the same error.
I have had what I believe is a breakthrough this morning, however. If I
step into the new operator when agent++ objects are allocated, the nsize
parameter passed into "new" is consistently 4 bytes SMALLER than what
sizeof(object) returns! If I break at the beginning of the new and then
modify the nsize parameter to match what sizeof returns, then the error
is gone and I can happily create and delete anything I wish. This does
explain the heap corruption that I've been tracking for several weeks.
Unfortunately, I have no idea why new thinks the object is smaller than
it is.
Any ideas?
-Josh
Jochen Katz wrote:
> Hi Josh,
>
>
>> Since there are no build instructions or setup instructions for VC++ 6.0
>> (other than the very basic setup in the FAQ), I acknowledge that it is
>> possible that I've misconfigured something or am missing something
>> critical to make this all work. Could someone maybe post a simple
>> step-by-step of what should be included in a new VC++ 6.0 static library
>> project to make this work?
>>
>
> I've built vc6 projects some time ago according to the instructions in
> the faq (maybe I had some advantage... ;-)
>
> Try the projects from http://sa-ha.de/snmp/contrib/msvc6_projects.tar.gz
>
> Regards,
> Jochen
>
> #ifdef _MSC_VER
> #define strcasecmp _stricmp
> #endif
> _______________________________________________
> 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