Ethereal-dev: [Ethereal-dev] Ethereal Crash when setting preferences on Win32.

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

From: "Greg Morris" <GMORRIS@xxxxxxxxxx>
Date: Tue, 24 Sep 2002 08:38:16 -0600
Editing the preferences and then clicking the save button generates an exception on Win32 with the latest CVS. The crash occurs due to code in prefs.c
 
/* write the capture options */
  if (prefs.capture_device != NULL) {
    fprintf(pf, "\n# Default capture device\n");
    fprintf(pf, PRS_CAP_DEVICE ": %s\n", prefs.capture_device); <--- Debugger shows exception here
  }
 
prefs.capture_device = 0x00000001 <--- This is the cause of the crash
 
Once the crash has occured then you can no longer open the preferences due to the prefs file being corrupt. Either editing the prefs file manually will resolve the problem. Deleting and having Ethereal recreate will not resolve the problem.
 
Please contact me if you need anymore information,
Greg