Ethereal-dev: [Ethereal-dev] Access violation with "Save As" dialog

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

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Fri, 09 Jan 2004 13:34:31 +0100
Hi!

Everytime I do the following, I get an access violation:

Open a capture file
File->Save As (do nothing, leave this dialog on screen)
Close the capture file
Press 'Ok' at the Save As dialog

The access violation is because we are trying to save a file, which is
no longer available.

I tried other dialogs the same way, but they seemed to be ok.

I would tend to close the Save As dialog, when a capture file is closed,
as the "root" of the Save As action is gone.

To do that, the cf_close() function could call a new
destroy_cfile_wins() function instead of destroy_packet_wins(),
doing all the jobs that needs to be done.

Any comments, or an even better way to do it?

Regards, ULFL