Ethereal-dev: [Ethereal-dev] patch to fix runtime problems with Visual Studio > 6

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

From: "RABRET Laurent RD-MAPS-ISS" <laurent.rabret@xxxxxxxxxxxxxxxxx>
Date: Tue, 7 Mar 2006 14:14:00 +0100
Hi,
Please find enclosed a patch fixing problems with Ethereal compiled with
Visual Studio > 6. In the code I fixed, when "glib" >= 2.6 was used,
some macros forced file operations to be process through glib. The
problem was that glib is compiled with VS6. Hence, there was a run time
lib mismatch problem causing Ethereal to crash at runtime. I've added
some "#pragma comment" in the code because when glib will (if ever...)
be compiled with VS > 6, symmetrical problem will occur (...but for
Ethereal compiled with VS6).  My feeling is that to avoid such problems,
it is probably better to never use glib for file operations (on Windows
at least). However, it's certainly a bad idea if glib provides many
advantages (I don't know). If you also think it's better to suppress
glib file operations on Windows, you would just have to slightly modify
this patch... 
Best regards
Laurent

PS: don't you think it's time to officially support/distribute Ethereal
compiled with an "up to date" VS compiler on Windows?

Attachment: VS2003compatible.patch
Description: VS2003compatible.patch