<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.18.1">
</HEAD>
<BODY>
<BR>
Hello!<BR>
<BR>
I'm creating the bindings for a Gtk Timescale written in C.<BR>
This timescale is a simple widget witch allows to adjust the inbounds and the outbounds of a segment of time. It has 2 pointers witch delimits the segment and emits 2 signal in_changed and out_changed with the new limits when a pointer is moved.<BR>
I've used the gapi tools to get the c# bindings and the widget is working properly on Linux.<BR>
On Windows I also get it working, but when the widget emits a signal and this signal is rised on the app, the program finish without any debug info.<BR>
<BR>
This the output when I execute a test window with the widget. When I move one of the cursors I get this:<BR>
<BR>
<I><FONT SIZE="1">Method (wrapper runtime-invoke) System.Object:runtime_invoke_void_string (object,intptr,intptr,intptr) emitted at 00F60028 to 00F600BD(codelength 149) [test.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method System.OutOfMemoryException:.ctor (string) emitted at 00F600C0 to 00F600E3 (code length 35) [test.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method System.SystemException:.ctor (string) emitted at 00F60100 to 00F60123 (code length 35) [test.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method System.Exception:.ctor (string) emitted at 00F60130 to 00F60148 (code length 24) [test.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method System.Exception:set_HResult (int) emitted at 00F60148 to 00F60156 (codelength 14) [test.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method System.NullReferenceException:.ctor (string) emitted at 00F60158 to 00F6017E (code length 38) [test.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method System.StackOverflowException:.ctor (string) emitted at 00F60180 to 00F60196 (code length 22) [test.exe]</FONT></I><BR>
<BR>
When I execute my aplication I get this:<BR>
<BR>
<I><FONT SIZE="1">Method LongoMatch.GtkTimescale:OutChangedSignalCallback (intptr,double,intptr) emitted at 00FDAEC0 to 00FDB05B (code length 411) [LongoMatch.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method LongoMatch.OutChangedArgs:.ctor () emitted at 00FDB068 to 00FDB076 (codelength 14) [LongoMatch.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method LongoMatch.TimeLine:OnStopValueChanged(object,LongoMatch.OutChangedArgs)emitted at 00FDB078 to 00FDB1BE (code length 326) [LongoMatch.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method LongoMatch.OutChangedArgs:get_Val () emitted at 00FDB1D0to00FDB234 (code length 100) [LongoMatch.exe]</FONT></I><BR>
<I><FONT SIZE="1">MethodLongoMatch.MainWindow:OnTimeScaleTimeNodeChanged(LongoMatch.TimeNode,object) emitted at 00FDB238 to 00FDB3A2 (codelength 362) [LongoMatch.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method CesarPlayer.PlayerBin:UpdateSegmentStopTime (long) emitted at 00FDB500 to00FDB51F (code length 31) [LongoMatch.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method CesarPlayer.GstPlayer:UpdateSegmentStopTime (long) emitted at 00FDB520 to00FDB545 (code length 37) [LongoMatch.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method(wrappermanaged-to-native)CesarPlayer.GstPlayer:bacon_video_widget_segment_stop_update (intptr,long) emitted at 00FDB558 to 00FDB5B0 (code length 88) [</FONT></I><BR>
<I><FONT SIZE="1">LongoMatch.exe]</FONT></I><BR>
<BR>
<I><FONT SIZE="1">Stacktrace:</FONT></I><BR>
<I><FONT SIZE="1">at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004></FONT></I><BR>
<I><FONT SIZE="1">at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff></FONT></I><BR>
<I><FONT SIZE="1">at Gtk.Application.Run () <0x00007></FONT></I><BR>
<I><FONT SIZE="1">at LongoMatch.MainClass.Main (string[]) <0x000a6></FONT></I><BR>
<I><FONT SIZE="1">at (wrapper runtime-invoke) LongoMatch.MainClass.runtime_invoke_void_string[](object,intptr,intptr,intptr) <0xffffffff></FONT></I><BR>
<I><FONT SIZE="1">This application has requested the Runtime to terminate it in an unusual way.</FONT></I><BR>
<I><FONT SIZE="1">Please contact the application's support team for more information.</FONT></I><BR>
<BR>
As you can see the signal is rised and processed:<BR>
<I><FONT SIZE="1">Method LongoMatch.GtkTimescale:OutChangedSignalCallback (intptr,double,intptr) emitted at 00FDAEC0 to 00FDB05B (code length 411) [LongoMatch.exe]</FONT></I><BR>
<I><FONT SIZE="1">Method LongoMatch.OutChangedArgs:.ctor () emitted at 00FDB068 to 00FDB076 (codelength 14) [LongoMatch.exe]</FONT></I><BR>
<BR>
Last week I had no problems with this and the only thing that changes between Windows and Linux is the compilation of the lib "libtimescale", so I think I'm missing something at the compilation time.<BR>
To compile I use mingw/Msys linking to the Gtk binaries provided with Mono with this flags:<BR>
-DWIN32 -mno-cygwin -mms-bitfields<BR>
<BR>
Thanks<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>