Ethereal-dev: Re: [Ethereal-dev] Help please - dissector not getting registered

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Peter Johansson <Peter.Johansson@xxxxxxxxxxxx>
Date: Sun, 04 Sep 2005 21:18:29 +0200
David.Kaatz@xxxxxxxxxxxx wrote:

Hello all,
Compiling with VC6 for Win32, my register function proto_register_MYPROTO gets placed into register.c correctly, and compiles correctly. But when I debug step through the register_all_protocols function, it is as if the source file is out of date with the compile. I get to the line to register MYPROTO, step INTO the code, and see it step into what should be the next line of code, that is, the one AFTER mine gets registered.

I know that the register.obj is getting updated (built) along with register.c. Also dissectors.lib. And my protocol dissector source is also getting compiled. I even forced combined source/assembly output from the compiler, and that looks good too.

Any ideas?
Thanks,
Dave

I have noticed problems like these before and have at all times been able to resolve them by removing libethereal.dll that reside in the top level development directory. There is yet another libethereal.dll in ./epan (the one that you just rebuilt). I have however not had the time to check when libethereal.dll is created (or perhaps copied) to the top development directory.

/ Peter