Ethereal-dev: Re: [Ethereal-dev] Lua for windows, need help

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

From: "Lars Roland" <Lars.Roland@xxxxxxx>
Date: Sat, 11 Feb 2006 04:56:01 +0100
Am 09.02.2006, 22:42 Uhr, schrieb Ulf Lamping <ulf.lamping@xxxxxx>:

Lars Roland wrote:
Additionally there is a problem with g_error calls in the hot area.
As I'm making good progress with dumpcap, we might not have a "hot area"
in the next days any longer :-)
On win32 the error message isn't displayed and ethereal terminates
immediately without giving any useful information.

This happens for example in proto_register_protocol() in proto.c:3245.

IMO we should have a log handler for such terminating events, which
makes sure that the console with the error message is displayed before
ethereal is closed.

The log handler itself exists for a long time.

I've added two things in this case:

- open a console regardless of the user settings (if it's not already open)
- wait for a key press before actually terminating

This should solve the problem.


I had to do an additional change to make it work. See revision 17248.
Can you verify that this change doesn't interfere with anything else, especially the capture stuff?

Regards,
Lars