Re: [Lazarus] Event handling example project
On 01/20/2011 08:01 AM, zeljko wrote: And where is that example project ? I can send it via email, if you want to have it. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Event handling example project: results for gtk2 and fpGUI
Some testing results with Lazarus revision 29134 and fpGUI revision as of 20110120: GTK2 fpGUI From a Thread====== Synchronize(*) OK PostMessageOK no function SendMessage(**)no function Dispatch (**)(***) QueueAsyncCall (*) () From a Timer Synchronize impossible PostMessageOK no function SendMessageOK no function Dispatch OK OK QueueAsyncCall OK (*) (*) The scheduled Events only are handled in the Main Thread when GUI Events for the Form are handled (**)Forbidden but eventually works, The scheduled Events only are handled in the Main Thread when GUI Events for the Form are handled (***) Forbidden; works doe some time, then SIGABRT () The scheduled Events only are handled in the Main Thread when the worker thread is terminated (*)Very funny: The scheduled Events only are handled in the Main Thread when e.g a completely unrelated worker thread is created and then terminated Hope this helps, -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event handling example project: results for gtk2 and fpGUI
Hello Lazarus-List, Thursday, January 20, 2011, 10:47:41 AM, you wrote: MS Some testing results with Lazarus revision 29134 and fpGUI revision as MS of 20110120: MS GTK2 fpGUI MS From a Thread====== MSSynchronize(*) OK MSPostMessageOK no function MSSendMessage(**)no function MSDispatch (**)(***) MSQueueAsyncCall (*) () MS From a Timer MSSynchronize impossible MSPostMessageOK no function MSSendMessageOK no function MSDispatch OK OK MSQueueAsyncCall OK (*) May you send me the test in order to test PostMessage and SendMessage at least under LCLfpGUI ? As you know it is very alpha :) Your test invironmen is Linux or Windows ? -- Best regards, José -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event handling example project: results for gtk2 and fpGUI
On 01/20/2011 12:08 PM, José Mejuto wrote: May you send me the test in order to test PostMessage and SendMessage at least under LCLfpGUI ? Done As you know it is very alpha :) Of course I know that, so I'm trying to help to improve it. (But as you see the gtk2 Widget Type does not work perfectly, either ;) ) Your test invironmen is Linux or Windows ? Linux, but the test program should work with Windows, as well. Here additionally, SendThreadMessage should automatically be enabled. BTW it's an LCL-fpGUI project :). -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Event handling example project
I did a small example project (in fact an enhancement of the example/messages/uasynccall.pas example in the svn). Same lets you select to test - TThread.Synchronize - TThread.Queue - PostMessage - PostThreadMessage - SendMessage - TForm.Dispatch - Application.QueuAsyncCall without parametersand - Application.QueuAsyncCall with parameters From - A thread - A timer event and - A button event If anybody might be inclined to put this project into the examples directory in the svn, I'd be happy to send the code. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event handling example project
On Wednesday 19 of January 2011 17:20:08 Michael Schnell wrote: I did a small example project (in fact an enhancement of the example/messages/uasynccall.pas example in the svn). Same lets you select to test - TThread.Synchronize - TThread.Queue - PostMessage - PostThreadMessage - SendMessage - TForm.Dispatch - Application.QueuAsyncCall without parametersand - Application.QueuAsyncCall with parameters From - A thread - A timer event and - A button event If anybody might be inclined to put this project into the examples directory in the svn, I'd be happy to send the code. And where is that example project ? zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus