Re: [Lazarus] Lazarus application crash. Is PostMessage thread safe?

2016-02-10 Thread Giuliano Colla
Il 10/02/2016 22:12, C Western ha scritto: My understanding is Application.ProcessMessages has to be reentrant for the clipboard to work, at least under X, as clipboard content is retrieved by receiving messages. See http://bugs.freepascal.org/view.php?id=26242 for a (fixed) bug that showed th

Re: [Lazarus] Lazarus application crash. Is PostMessage thread safe?

2016-02-10 Thread C Western
On 10/02/16 20:13, Giuliano Colla wrote: Il 10/02/2016 13:48, zeljko ha scritto: I believe that Application.ProcessMessages should protect itself too, avoiding to handle more than once the same message. But where ? In LCL or per widgetset ? I skimmed through the backtrace. It would appear th

Re: [Lazarus] Loading OpenGL error

2016-02-10 Thread Aradeonas
I done two more tests: Get Lazarus 1.6 RC2 and still have problem. Copy and recompile OpenGL package from 1.0 to 1.7 and still have problem. So it seems problem is not because of OpenGL package. Any idea? Regards, Ara -- http://www.fastmail.com - Access your email from home and the web -- __

Re: [Lazarus] Lazarus application crash. Is PostMessage thread safe?

2016-02-10 Thread Giuliano Colla
Il 10/02/2016 13:48, zeljko ha scritto: I believe that Application.ProcessMessages should protect itself too, avoiding to handle more than once the same message. But where ? In LCL or per widgetset ? I skimmed through the backtrace. It would appear that the recursion originates in g_main_co

[Lazarus] Loading OpenGL error

2016-02-10 Thread Aradeonas
Hi, I have a new Laptop and with new Windows 10 and tried my old working demos and I tried it with Last Lazarus Trunk 1.7 and FPC 3.1.1 and just tried to run it and its happen : > A dynamic link library (DLL) initialization routine failed It is because OpenGL loading error and I dont have clue how

Re: [Lazarus] Please move Mantis issue to correct project

2016-02-10 Thread Graeme Geldenhuys
On 2016-02-10 12:33, Vincent Snijders wrote: > I moved to the Lazarus project. If it is determined it should be FPC, we > can move it to FPC. Many thanks Vincent. Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org h

Re: [Lazarus] Lazarus application crash. Is PostMessage thread safe?

2016-02-10 Thread zeljko
On 02/10/2016 12:48 PM, Giuliano Colla wrote: Il 10/02/2016 12:31, zeljko ha scritto: On 02/10/2016 11:19 AM, Giuliano Colla wrote: This I believe to be the problem. From the observations from Denis I realized that my code isn't protected against recursion, but I believe that Application.Proce

Re: [Lazarus] Please move Mantis issue to correct project

2016-02-10 Thread Vincent Snijders
2016-02-10 10:46 GMT+01:00 Graeme Geldenhuys : > Hi, > > http://bugs.freepascal.org/view.php?id=29564 > > The reporter reported the above issue in the wrong Mantis project area. > The issue is specific to Lazarus IDE, so could somebody with Mantis > Admin rights please move this report to the "

Re: [Lazarus] Lazarus application crash. Is PostMessage thread safe?

2016-02-10 Thread Giuliano Colla
Il 10/02/2016 12:31, zeljko ha scritto: On 02/10/2016 11:19 AM, Giuliano Colla wrote: This I believe to be the problem. From the observations from Denis I realized that my code isn't protected against recursion, but I believe that Application.ProcessMessages should protect itself too, avoiding

Re: [Lazarus] Lazarus application crash. Is PostMessage thread safe?

2016-02-10 Thread zeljko
On 02/10/2016 11:19 AM, Giuliano Colla wrote: This I believe to be the problem. From the observations from Denis I realized that my code isn't protected against recursion, but I believe that Application.ProcessMessages should protect itself too, avoiding to handle more than once the same message

Re: [Lazarus] Lazarus application crash. Is PostMessage thread safe?

2016-02-10 Thread Giuliano Colla
Il 10/02/2016 08:44, zeljko ha scritto: 1.Your ErrList access does not look thread safe. It's a poor man's thread safe queue, implemented as a ring buffer, with two indexes, ErrGet and ErrPut. It's fully safe, provided the buffer is guaranteed not to overflow, and that ErrPut is updated only

Re: [Lazarus] Video Tutorial: Introducing Lazarus

2016-02-10 Thread Anthony Walter
Doh-oh, I posted the correction but have no idea how long AWS CloudFront takes to propagate changes. I was just using plain old S3, but I turned on CloudFront earlier tonight because I read they give you 50 gigs of transfer free every month. -- ___ Lazar

Re: [Lazarus] Lazarus application crash. Is PostMessage thread safe?

2016-02-10 Thread Giuliano Colla
Il 10/02/2016 00:22, Denis Kozlov ha scritto: You create a recursive scenario yourself by calling Application.ProcessMessages inside of ShowError inside of HandleError - which is the message handling procedure itself, which is triggered by Application.ProcessMessages. That's what I had guess

[Lazarus] Please move Mantis issue to correct project

2016-02-10 Thread Graeme Geldenhuys
Hi, http://bugs.freepascal.org/view.php?id=29564 The reporter reported the above issue in the wrong Mantis project area. The issue is specific to Lazarus IDE, so could somebody with Mantis Admin rights please move this report to the "Lazarus" project please. Many thanks. Regards, - Graeme -

Re: [Lazarus] Lazarus application crash. Is PostMessage thread safe?

2016-02-10 Thread Giuliano Colla
Il 10/02/2016 00:18, Denis Kozlov ha scritto: Is your LM_ERROR larger than LM_USER? Yes : const LM_ANSWER= LM_USER + 100; LM_MESSAGE = LM_USER + 101; LM_ERROR = LM_USER + 102; Giuliano -- ___ Lazarus mailing list

Re: [Lazarus] Video Tutorial: Introducing Lazarus

2016-02-10 Thread Andrea Mauri
very nice. simple and attractive. just one point. in the last message on video there is a typo (fourms instead of forums) andrea Il 09/02/2016 23:06, Dmitry Boyarintsev ha scritto: On Tue, Feb 9, 2016 at 4:59 PM, Anthony Walter > wrote: I have a friend who is a tele