Ethereal-dev: RE: [Ethereal-dev] ethereal crash

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

From: "Francisco Alcoba (TS/EEM)" <francisco.alcoba@xxxxxxxxxxxx>
Date: Tue, 4 Jan 2005 07:47:26 +0100
> I'm trying to write a new dissector. when I open a file with 
> more than around 40 packets, ethereal crash. I don't do any 
> memory allocation, but it seems like memory leaks somewhere. 
> Is there anyway I can debug the dissector I just wrote? I'm 
> using nmake in windows xp.

Hi,

You can create a Visual C project of type "Makefile" giving the 
makefile.nmake file as an argument. It will not incorporate the sources
to the project tree, but if you open any of the files -e.g. your dissector-
you can set a breakpoint and continue debugging from there.

I've found it easier to compile from the command line and debug in the GUI
afterwards, I never get environment variables right in Visual -although 
incremental compilations usually work-.

Regards,
  Francisco