[Mono-list] problem with simple one window application based on GTK#

Ivan Turcan iturcan@drake.sk
Sat, 4 Dec 2004 17:38:32 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0030_01C4DA28.12AEF760
Content-Type: text/plain;
 charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Hi friends,

I have installed gtk# for visual studio.net and tried to build simple =
one window application (nothing special, only one form) when i build in =
Visual Studio.Net this application it work correctly.
I tried to execute same application under mono , used  command "mono =
myapplication.exe"   all on windows XP... and this application execute =
show me form and then close without to stay to be openned. In command =
prompt i have following error:

Unhandled Exception: System.NullRefferenceException: Object reference =
not set to an instance of an object in <0xffde7998> <wrapper =
managed-to-native> SignalConnector:glade_xml_signal_autoconnect_full =
(intptr,GLade.XML/SignalCOnnector/RawXMLConnectFunc,intptr) =
in...................................

Same problem i have when i build peditgtk sample from gtk# and then when =
i try that bulded sample under mono.


I have installed mono-1.1.2-gtksharp-1.9-win32-0.3.exe which i have used =
for test in this project
and gtksharp-1.0.2-win32-0.6.exe which is used within Visual Studio =
2003.Net

could somebody help me how can  i run my application correctly?

thanks in advance

        Ivan


------=_NextPart_000_0030_01C4DA28.12AEF760
Content-Type: text/html;
 charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 6.00.2900.2523" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#f2e7cc>
<DIV><FONT face=3DArial size=3D2>Hi friends,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have installed gtk# for visual =
studio.net and=20
tried to build simple one window application (nothing special, only one =
form)=20
when i build in Visual Studio.Net this application it work=20
correctly.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I tried to execute same application =
under mono ,=20
used&nbsp; command "mono myapplication.exe"&nbsp;&nbsp; all on windows =
XP... and=20
this application execute show me form and then close without to stay to =
be=20
openned. In command prompt i have following error:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Unhandled Exception:=20
System.NullRefferenceException: Object reference not set to an instance =
of an=20
object in &lt;0xffde7998&gt; &lt;wrapper managed-to-native&gt;=20
SignalConnector:glade_xml_signal_autoconnect_full=20
(intptr,GLade.XML/SignalCOnnector/RawXMLConnectFunc,intptr)=20
in...................................</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Same problem i have when i build =
peditgtk sample=20
from gtk# and then when i try that bulded sample under =
mono.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>I have installed=20
mono-1.1.2-gtksharp-1.9-win32-0.3.exe which i have used for test in this =

project</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and =
gtksharp-1.0.2-win32-0.6.exe&nbsp;which is used=20
within Visual Studio 2003.Net</FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>could somebody help me how can&nbsp; i =
run my=20
application correctly?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks in advance</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
Ivan</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0030_01C4DA28.12AEF760--