[Gtk-sharp-list] Re: Gtk Idle handler and Win32.

Fabien Penso Fabien Penso <fabienpenso@gmail.com>
Mon, 2 May 2005 12:06:17 +0200


> I am unable to reproduce the problem with Mono 1.1.6:
>=20
> > > > Can someone confirm WakeupMain() is supposed to work even I don't h=
ave
> > > > focus on the GTK application ? My example doesn't and works only wh=
en
> > > > I move the mouse over the gtk application (the method addLineT isn'=
t
> > > > called at all).
> > >
> > > Is this on Windows?   I heard that apparently there is a problem with
> > > Idle events not being dispatched on Windows.
> >
> > Yes it is. What can I do to help ?
> >
> > It's really an important feature, I don't understand noone had the
> > problem before.
>=20
> I wrote a small Gtk# program and am running Mono 1.1.6, and the Idle
> handler is working just fine for me.
>=20
> To compile use:
>=20
>         mcs -pkg:gtk-sharp t.cs
>=20
> To run:
>=20
>         mono t.exe
>=20
> Maybe you have an old version of Mono installed?

I have just installed mono 1.1.6, and tried the .exe compiled under
visual with the microsoft compiler, and it works fine. But if I run
the exe with the microsoft interpreter, it doesn't. It may have been
working already with 1.1.4 but I have not tried (I was using the ms
plateform).

So basicly it works with Mono, but not .net/MS. It's difficult to tell
my boss customers have to install Mono for the application to work...
:-) Do you think we could try to find the bug, or should I just keep
with WinForms under Windows, and GTK for Linux only ?

Thanks.

--=20
http://penso.info/