Re: compile glib success but failure on run-time with every version
- From: codekiddy <codekiddy gmail com>
- To: Fan Chun-wei <fanc999 yahoo com tw>, gtk-list gnome org
- Subject: Re: compile glib success but failure on run-time with every version
- Date: Thu, 12 Feb 2015 16:19:19 +0100
Hello again, I would just like to say that "I think" I found a problem in gio.dll
I Created created a test project for glib, gio and gobject, for glib-2.42.1 package where gio test fails in following function in
glib-2.42.1\gobject\tests\object.c:
#ifdef G_OS_WIN32
static gboolean
recv_windows_message (GIOChannel *channel,
GIOCondition cond,
gpointer data)
{
GIOError error;
MSG msg;
guint nb;
while (1)
{
error = g_io_channel_read (channel, &msg, sizeof (MSG), &nb);
if (error != G_IO_ERROR_NONE)
{
g_print ("gio-test: ...reading Windows message: G_IO_ERROR_%s\n",
(error == G_IO_ERROR_AGAIN ? "AGAIN" :
(error == G_IO_ERROR_INVAL ? "INVAL" :
(error == G_IO_ERROR_UNKNOWN ? "UNKNOWN" : "???"))));
if (error == G_IO_ERROR_AGAIN)
continue;
}
break;
}
g_print ("gio-test: ...Windows message for %#x: %d,%d,%d\n",
msg.hwnd, msg.message, msg.wParam, msg.lParam);
return TRUE;
}
RESULT:
Run-Time Check Failure #2 - Stack around the variable 'nb' was corrupted.
It looks the best way for now would be to compile some older version or maybe newer unstable version for now, since I have no time to debug code I'm not familiar with.
Have anyone of you be able to compile glib-2.42.1 with msvc-120?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]