Could be my failing ( as I introduced a new header - BadPacket.h — ) and did not run qmake…
but still the code was should still have worked ( as it compiled and linked fine …. BadPacket is in include path and all methods being inline ).
Maybe I will give it a check at some later point …
– cheers atul
atul wrote:
Dear all
While refactoring Gnutella/Packets/Packet and friends I made changes and gave it a go…
Somehow it started crashing mysteriously.. ( Data d member of Packet was not getting set ).. I reasoned about it but could not see how that could happen ( as every ctor carefully initializes d = new Data… )
I put a breakpoint in gdb but somehow gdb was not able to stop there ( the breakpoint was simply not effective )
Then to make sure I gave a make clean and then a make and things fell in place ( I ensured by running thru valgrind — as uninitialized vars can assume legal values ;-)
Have any of you seen this before….
— cheers atul
