Wireshark-dev: Re: [Wireshark-dev] Windows build crashing

From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Date: Tue, 03 Jul 2007 09:39:06 +0100
Jim Pickering wrote:
> The build environment is Visual C++ 2005 Express Edition.
> 
> I built adns_dll.dll with Visual C++ 2005 Express Edition and relinked
> wireshark, as suggested.
> 
> Wireshark still crashes when loading a previously saved capture file or
> when starting a new capture.
>

Are you sure that the new dll is being used, i.e. that it is in the dir where
wireshark.exe is located?  You might have do do a clean (nmake -f
makefile.nmake clean) and then a rebuild.

If you are using the new dll, then you will have to do a little more work in
order to identify where the problem is, by using the VS debugger

The procedure I use is to run wireshark out of the build tree
(wireshark-gtk2\wireshark.exe) fire up VS and from the Tools Menu choose
"Attach to Process".  Select wireshark.exe from the list, then do whatever you
need to cause a crash.  VS may ask you for the path to the sources.  To help
with the debugging, make sure you have a symbol cache setup pointing to the MS
Symbol Server (Tools | Options | Debugging | Symbols and then F1 for the help,
read this and then look for "How to: Use a Symbol Server").

-- 
Regards,

Graham Bloice