Re: dependencies getting screwed up

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

Would you like to post a relpy?


This post is a reply to:
dependencies getting screwed up
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 (more...)

Follow-ups:
Re: Re: dependencies getting screwed up
Hi Atul, Yes, dependencies got messed up when you change the includes of a file because Makefile does not get rebuilt. It is necessary to run qmake again to create an (more...)