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: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Thu, 09 Feb 2006 22:42:52 +0100
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.

Thanks for pointing to the problem, I've seen this behaviour before but didn't thought about the g_error() stuff ...

Regards, ULFL