[Mono-list] window

2005-05-26 Thread sabri safaa
sabri safaa <[EMAIL PROTECTED]> a écrit:

hello 
when I start the application like this 
>mono main.exe
the window apear few second and die and i dont know why
and i have yhis message 
Unhandled Exception: Glade.HandlerNotFoundException: No handler calculer found for signal clickedin <0x002fb> SignalConnector:ConnectFunc (string,intptr,string,string,intptr,int,intptr)
in <0x0007c> (wrapper native-to-managed) SignalConnector:ConnectFunc (intptr,intptr,intptr,intptr,intptr,int,intptr)
in (unmanaged) 02201B5F
in <0x4> (wrapper managed-to-native) SignalConnector:glade_xml_signal_autoconnect_full (intptr,Glade.XML/SignalConnector/RawXMLConnectFunc,intptr)
in <0x00056> SignalConnector:Autoconnect ()
in <0x00045> Glade.XML:Autoconnect (object)
in <0x00045> Calculatrice:.ctor ()
in <0x00016> Calculatrice:Main ()
 
the code of my main.cs is 
 
using System;using Gtk; using Glade; 
public class Calculatrice {     [Widget] Gtk.Entry entry1;     [Widget] Gtk.Entry entry2;     [Widget] Gtk.Label label2;      public static void Main()     {     new Calculatrice();     }     public Calculatrice ()      {     Application.Init();     Glade.XML gxml = new Glade.XML ("calc.glade", "window1", null);     gxml.Autoconnect(this);   Console.Out.WriteLine("hello1");    Application.Run();     }     public void Calculer(object sender, EventArgs args)     {
     double val1 = Double.Parse(entry1.Text);     double val2 = Double.Parse(entry2.Text);     label2.Text = ""+(val1 + val2);     }  private void OnWindowDeleteEvent (object sender, DeleteEventArgs a)     {    Application.Quit ();    a.RetVal = true;    }}


Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos !Créez votre Yahoo! Mail 
		 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos !Créez votre Yahoo! Mail 
 
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] window

2005-05-26 Thread Rodolfo Campero
Hi,

C# is case sensitive, try to rename your handler in the glade file to
"Calculer" instead of "calculer" (or do the opposite change in the
code).

On 5/26/05, sabri safaa <[EMAIL PROTECTED]> wrote:
> 
> 
> sabri safaa <[EMAIL PROTECTED]> a écrit: 
>  
> hello 
> when I start the application like this 
> >mono main.exe 
> the window apear few second and die and i dont know why 
> and i have yhis message 
> Unhandled Exception: Glade.HandlerNotFoundException: No handler calculer
> found for signal clicked
> in <0x002fb> SignalConnector:ConnectFunc
> (string,intptr,string,string,intptr,int,intptr) 
> 
> in <0x0007c> (wrapper native-to-managed) SignalConnector:ConnectFunc
> (intptr,intptr,intptr,intptr,intptr,int,intptr) 
> 
> in (unmanaged) 02201B5F 
> 
> in <0x4> (wrapper managed-to-native)
> SignalConnector:glade_xml_signal_autoconnect_full
> (intptr,Glade.XML/SignalConnector/RawXMLConnectFunc,intptr)
> 
> in <0x00056> SignalConnector:Autoconnect () 
> 
> in <0x00045> Glade.XML:Autoconnect (object) 
> 
> in <0x00045> Calculatrice:.ctor () 
> 
> in <0x00016> Calculatrice:Main () 
>   
> the code of my main.cs is 
>   
> using System;
> using Gtk; 
> using Glade; 
> public class Calculatrice 
> { 
> [Widget] Gtk.Entry entry1; 
> [Widget] Gtk.Entry entry2; 
> [Widget] Gtk.Label label2; 
>  
> public static void Main() 
> { 
> new Calculatrice(); 
> } 
> public Calculatrice ()  
> { 
> Application.Init(); 
> Glade.XML gxml = new Glade.XML ("calc.glade", "window1", null); 
> gxml.Autoconnect(this); 
>   Console.Out.WriteLine("hello1");
> Application.Run(); 
> } 
> public void Calculer(object sender, EventArgs args) 
> { 
> double val1 = Double.Parse(entry1.Text); 
> double val2 = Double.Parse(entry2.Text); 
> label2.Text = ""+(val1 + val2); 
> } 
>  private void OnWindowDeleteEvent (object sender, DeleteEventArgs a) 
> {
> Application.Quit ();
> a.RetVal = true;
> }
> }
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Change Website Content without rebooting XSP/Apache/mod mono.

2005-05-26 Thread Gonzalo Paniagua Javier
On Tue, 2005-05-24 at 14:28 +0100, Howard Cole wrote:
> Hi,
> 
> Whenever I make modifications to a mono asp website, I stop apache, kill 
> any running mono processes and then copy the new files to the server. I 
> then restart apache.
> 
> Do I need to kill both to serve the new aspx and html files?

No. You can use the mod-mono control panel to restart mod-mono-server
only.

http://taubz.for.net/blog/?entry=tag:blogger.com,1999:blog-6956298/2a8999e1-6f32-459d-a25a-0033d84a72c3

-Gonzalo


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mod_mono problems

2005-05-26 Thread Gonzalo Paniagua Javier
On Tue, 2005-05-24 at 11:06 +0100, Chris Aitken wrote:
> Hi Neale,
> 
> Sorry to contact you offlist. The problem you had here:
> http://galactus.ximian.com/pipermail/mono-list/2005-April/026637.html
> 
> Other than rebuilding from SVN - was there any cure? 
> 
> I have installed monobundle 1.1.7, and have been running mod_mono 1.0.5-2
> (from FC2 rpm). I have upgraded to 1.0.9-0 (from FC3 rpm), and like you, I
> have the following message in /var/log/apache2/error.log:
> 
> [Tue May 24 11:01:02 2005] [notice] Apache/2.0.54 (Debian GNU/Linux)
> mod_mono/1.0.9 PHP/4.3.10-13 configured -- resuming normal operations
> Another mod-mono-server with the same arguments is already running.
> Another mod-mono-server with the same arguments is already running.
> Another mod-mono-server with the same arguments is already running.
> Another mod-mono-server with the same arguments is already running.

That message is just informative. It means that apache spawned a few
childs and when each of them loaded mod_mono, they tried to spawn
mod-mono-server. In the end only one succeeds and the others print that.

-Gonzalo


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Multipart e-mails question

2005-05-26 Thread Kirill

Hello,


Is anyone aware of a free library for sending multipart e-mail messages 
for .NET/Mono? I was trying to find one, but so far have discovered  
nothing, except quite expensive commercial packages and advises to do it 
through the CDO bindings in .NET.



Thanks.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Can I split a namespace across cs files?

2005-05-26 Thread Eric Damron
Will mono allow me to spit a namespace across multiple files?  If so, how?

Thanks
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list