I’ve noticed that I’m getting the following errors with Gtk+
(3.1.18-23-gb53a66b) and MS VC++. Am I missing something during the build
process or indeed those variables are not initialized? Can I simply ignore
run-time checks? Exception occurs around line 2169 in gtktreeviewcolumn.c when
calling gdk_window_move_resize() from gtk3-demo.exe .
---->8--------------------------------------------------8<--------
---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Error!
Program: C:\gtkmm\bin\gtk3-demo.exe
Module: C:\gtkmm\bin\gtk-3.1-vc90-d.dll
File:
Run-Time Check Failure #3 - The variable 'allocation' is being used without
being initialized.
(Press Retry to debug the application)
---------------------------
Abort Retry Ignore
---------------------------
---->8--------------------------------------------------8<--------
I can avoid this error with something like
---->8--------------------------------------------------8<--------
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index af79da7..f8a32a3 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -2138,7 +2138,7 @@ _gtk_tree_view_column_allocate (GtkTreeViewColumn
*tree_column,
int width)
{
GtkTreeViewColumnPrivate *priv;
- GtkAllocation allocation;
+ GtkAllocation allocation = {0};
gboolean rtl;
g_return_if_fail (GTK_IS_TREE_VIEW_COLUMN (tree_column));
---->8--------------------------------------------------8<--------
Mikhail
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list