Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Wireshark crash when quit while capturing

From: Alfred Alinazar <aalinazar@xxxxxxxxx>
Date: Fri, 15 May 2009 01:24:12 +0300
Here are the steps to reproduce it:
1. Open Wireshark
2. Start Capturing
3. Close Wireshark
4. It will prompt to save, and click save
5. type the filename
6. It will crash.

Here are the details of the system:
OS: Windows Vista
Wireshark Revision: 28365

I found that it crash when reach assertion on file.c:
cf_reset_state(capture_file *cf) because cf->state ==
FILE_READ_IN_PROGRESS.
It seems that the capturing should be stopped prior to save the file
so that cf->state will not be FILE_READ_IN_PROGRESS.
however I'm not sure where is the right place to put the code to stop
the capturing.

regards,

-Alfred-