[Mono-dev] Emailing: project.zip
Kornél Pál
kornelpal at hotmail.com
Tue Feb 7 06:21:40 EST 2006
Hi,
System.Windows.Forms.Timer uses the underlying windowing system. On Windows
the windowing system is available anyway (for ASP.NET as well). But on Linux
it is requires you to load an X-Server.
Use System.Threading.Timer or System.Timers.Timer to get a timer
functionality.
Kornél
----- Original Message -----
From: "Arnhoffer Károly" <karnhoffer at ecron.hu>
To: <mono-devel-list at lists.ximian.com>
Sent: Tuesday, February 07, 2006 11:41 AM
Subject: [Mono-dev] Emailing: project.zip
Hi,
It may be illogical but when I use System.Windows.Forms.Timer:Start in an
ASP.Net page it causes an exception with Linux/Mono (detailed message
attached):
Server error in '/c' application
Description: Error processing request.
Error Message: HTTP 500.
Stack Trace:
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Windows.Forms.XplatUI --->
System.ArgumentNullException: Could not open display (X-Server required.
Check you DISPLAY environment variable)
....
The only reason why I send this for discussion is it works with
Windows/.Net. Test VS.Net project is attached.
Károly
<<project.zip>>
--------------------------------------------------------------------------------
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
More information about the Mono-devel-list
mailing list