[AGENT++] Bug in NotificationOriginator->add_v3_trap_destination()?
Josh Pressnell
joshua.pressnell at rti-world.com
Wed Feb 8 16:07:18 CET 2006
SUCCESS!!!!
Some legacy code in our common structures (not written by or looked at
by myself) was using the pragma pack directive to turn off memory
padding in structures. This was inconsistent with the way the SNMP
libraries were built and so the sizing of structures was grossly
inconsistent, depending on the byte-alignment of the object in
question. The result was that sizeof(object) would return the unpacked
size while the new operator would allocate memory for the packed size,
thus corrupting the heck out of the heap.
It turns out that our VC++ project are fine... our code and usage of the
SNMP libraries are fine. The darned compiler was simply being told to
screw with my head under-the-covers elsewhere in our code.
So... thanks so much for all the help!! Now that I've gotten this last
hurdle crossed.... the agent works like a champ!
-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