Re: [fpc-pascal] Java crash when fpc library CallVoidMethod in a thread.

2014-05-26 Thread Sven Barth
On 26.05.2014 21:47, fredvs wrote: Yep, Michael, thanks... Ok then for Nil owner... Hum, checksynchronize(), i do not realy understand how to use in the thread/loop... In the loop i do not use synchronize, because the procedure that is called is a java/method and synchronize is for procedure of

Re: [fpc-pascal] [ANN] Brook 3.0.0 release!

2014-05-26 Thread silvioprog
[...] Added an issue: https://github.com/silvioprog/brookframework/issues/99 Thank a lot friends! -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-b

Re: [fpc-pascal] TZipper and special file names like "atenção.txt" (#26213)

2014-05-26 Thread silvioprog
2014-05-24 5:02 GMT-03:00 Reinier Olislagers : > On 24/05/2014 08:33, Michael Van Canneyt wrote: > > On Fri, 23 May 2014, Craig Peterson wrote: > >> The Info-zip project maintains an annotated Appnote that lists a bunch > >> of the extra fields that various vendors use here: > >> http://www.info-z

Re: [fpc-pascal] Java crash when fpc library CallVoidMethod in a thread.

2014-05-26 Thread fredvs
Yep, Michael, thanks... Ok then for Nil owner... Hum, checksynchronize(), i do not realy understand how to use in the thread/loop... In the loop i do not use synchronize, because the procedure that is called is a java/method and synchronize is for procedure of object outside the thread... (Or i mi

Re: [fpc-pascal] Java crash when fpc library CallVoidMethod in a thread.

2014-05-26 Thread Michael Van Canneyt
On Mon, 26 May 2014, fredvs wrote: Hello. What is the best way to unthread a procedure ? I have try with a fptimer outside the thread but the thing that disturb me is that you need a tcomponent as owner to create it. And in the library i do not use any tcomponent... How to create a fptimer wi

Re: [fpc-pascal] Java crash when fpc library CallVoidMethod in a thread.

2014-05-26 Thread fredvs
Hello. What is the best way to unthread a procedure ? I have try with a fptimer outside the thread but the thing that disturb me is that you need a tcomponent as owner to create it. And in the library i do not use any tcomponent... How to create a fptimer without owner ? I have try with fptimer.cr

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Sven Barth
On 26.05.2014 15:07, Michael Schnell wrote: On 05/26/2014 02:23 PM, Sven Barth wrote: I don't see a need for this in the FCL yet. At least not until the dust that you are whirling up has settled down as FPC has a quite slow release cycle. I absolutely agree. Nonetheless I feel that (a decen

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Dmitry Boyarintsev
On Mon, May 26, 2014 at 12:17 PM, Craig Peterson wrote: > Dmitry, no offense, but you're making a lot of assumptions about our > code with no basis to do so, and I'm honestly not interested in getting > into a philosophical debate about the "correct" way to develop software. > There are cases whe

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Craig Peterson
On 5/26/2014 10:02 AM, Dmitry Boyarintsev wrote: Ugh, but with anonymous functions replacing ShowMyDialog vs ShowMyDialogDone, you're in much worse positions. It's likely that you would have to the duplicate code. I'd assume that "after modal dialog" code is somehow matches to some other code i

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Dmitry Boyarintsev
On Fri, May 16, 2014 at 11:45 AM, Craig Peterson wrote: > 1) I want to use the OmniThreadLibrary. Setting up objects and thread > descendents is fine in moderation, but it's too much of a hassle when > you just want a quick parallel for loop. > Anonymous functions are bad for unit testing. Why?

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Dmitry Boyarintsev
On Fri, May 16, 2014 at 11:45 AM, Craig Peterson wrote: > 2) Our application has multiple independent top-level windows, like a > web browser. There is no "MainForm". Each window can show modal > dialogs that only disable that specific window. > > [snip] > > Ugh, but with anonymous functions rep

Re: [fpc-pascal] fpc stderr broken?

2014-05-26 Thread Mattias Gaertner
On Mon, 26 May 2014 16:46:01 +0200 (CEST) Michael Van Canneyt wrote: > > > On Mon, 26 May 2014, Mattias Gaertner wrote: > > > Hi all, > > > > When I compile a program with a duplicate $R > > directive fpc (2.6.4) gives an error. Unlike other error messages this > > error is written to stderr (

Re: [fpc-pascal] fpc stderr broken?

2014-05-26 Thread Michael Van Canneyt
On Mon, 26 May 2014, Mattias Gaertner wrote: Hi all, When I compile a program with a duplicate $R directive fpc (2.6.4) gives an error. Unlike other error messages this error is written to stderr (under Linux and OS X). Running fpc in a shell seems to always work. The output/stdout and stderr

Re: [fpc-pascal] How to get the borders and background color of the Message Box

2014-05-26 Thread Tomas Hajny
On Mon, May 26, 2014 15:29, nitinjain wrote: Hi Nitin, > Actually I tried with video unit, but on freepascal.org site > (http://www.freepascal.org/docs-html/rtl/video ) I was read that “The > video > unit should not be used together with the crt unit”. And I am using CRT > unit > as well. I post

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Dmitry Boyarintsev
Sorry, you've actually somehow answered my questions earlier... I'm rereading the thread now. On Mon, May 26, 2014 at 9:53 AM, Dmitry Boyarintsev < skalogryz.li...@gmail.com> wrote: > I might be wrong, but reading through OmniThreadLibrary - the usage of > anonymous functions is optional. > The

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Dmitry Boyarintsev
I might be wrong, but reading through OmniThreadLibrary - the usage of anonymous functions is optional. The regular language structures could be used: global functions/object methods. Why having anonymous support is critical for the usage of the library? thanks, Dmitry On Mon, May 26, 2014 at 9

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Craig Peterson
On 5/26/2014 8:43 AM, Michael Schnell wrote: Nice ! I did not know that. I understand that you mean this without the Prism compatible syntax candy for t futures and parallel loops ?!?!? Yes. The syntax isn't as nice, but it works: Parallel.ForEach(1, testSize).Execute( procedure (const

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Michael Schnell
On 05/26/2014 03:32 PM, Craig Peterson wrote: In any case, neither Free Pascal nor Delphi support OpenMP right now, but Delphi does support futures and parallel loops using the OmniThreadLibrary, ... Nice ! I did not know that. I understand that you mean this without the Prism compatible synta

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Craig Peterson
> On May 26, 2014, at 2:52 AM, Michael Schnell wrote: > I understand that "anonymous functions" is some kind of "syntax candy" for > stuff that - with some additional typing - could be done without, "OpenMP > support" is about allowing parallel work - especially useful on the now > ubiquitous m

Re: [fpc-pascal] How to get the borders and background color of the Message Box

2014-05-26 Thread nitinjain
Thanks Tomas Hajny-2, Actually I tried with video unit, but on freepascal.org site (http://www.freepascal.org/docs-html/rtl/video ) I was read that “The video unit should not be used together with the crt unit”. And I am using CRT unit as well. I posted same issue on previous blog also, but not ge

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Michael Schnell
On 05/26/2014 03:20 PM, Craig Peterson wrote: RadPHP was originally marketed under the name "Delphi for PHP". very funny stuff :-) . -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/list

[fpc-pascal] fpc stderr broken?

2014-05-26 Thread Mattias Gaertner
Hi all, When I compile a program with a duplicate $R directive fpc (2.6.4) gives an error. Unlike other error messages this error is written to stderr (under Linux and OS X). Running fpc in a shell seems to always work. The output/stdout and stderr are both written nicely together. But when the st

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Craig Peterson
> On May 26, 2014, at 7:47 AM, Michael Schnell wrote: >> neither we are compatible with 3rd rail or radphp. > I never heard somebody call one of these "Delphi". RadPHP was originally marketed under the name "Delphi for PHP". -- Craig Peterson Scooter Software _

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Michael Schnell
On 05/26/2014 02:23 PM, Sven Barth wrote: I don't see a need for this in the FCL yet. At least not until the dust that you are whirling up has settled down as FPC has a quite slow release cycle. I absolutely agree. Nonetheless I feel that (a decently multi-arch enabled version) of TEpikT

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Michael Schnell
On 05/26/2014 02:06 PM, Tomas Hajny wrote: You don't need to do that - the new addition may be enabled selectively for the CPU+OS combinations for which it has been already tested successfully (and this approach is preferred over enabling it for everything after testing just a small subset of a

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Michael Schnell
On 05/26/2014 02:03 PM, Marco van de Voort wrote: neither we are compatible with 3rd rail or radphp. I never heard somebody call one of these "Delphi". -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cg

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Sven Barth
Am 26.05.2014 12:12 schrieb "Michael Schnell" : > > On 05/26/2014 11:55 AM, Reinier Olislagers wrote: >> >> >> I don't understand exactly what you are trying to say. Is this: >> - a request to Graeme >> - a promise that you are going to provide a patch to the FPC RTL >> - a remark >> - something el

Re: [fpc-pascal] How to get the borders and background color of the Message Box

2014-05-26 Thread Tomas Hajny
On Mon, May 26, 2014 14:04, nitinjain wrote: > Hi, > > Looking for guidance on formatting of the attached application Output > snippet. I'm having trouble on getting the borders and background color > of > the Message Box to display correctly. Any help will be appreciated. > > Nitin >

Re: [fpc-pascal] AnsiStrupper Error

2014-05-26 Thread Daniel Gaspary
On Mon, May 26, 2014 at 3:04 AM, Jonas Maebe wrote: > And that corruption is now caught: > http://wiki.freepascal.org/User_Changes_Trunk#Literal_storage_memory_has_been_made_read-only Thank You, Jonas. ___ fpc-pascal maillist - fpc-pascal@lists.freep

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Tomas Hajny
On Mon, May 26, 2014 13:12, Michael Schnell wrote: . . > A big problem with EpikTimer is that is _should_ be decently useful with > all archs and OSes. > > This might be a nightmare to test. You don't need to do that - the new addition may be enabled selectively for the CPU+OS combinations for w

[fpc-pascal] How to get the borders and background color of the Message Box

2014-05-26 Thread nitinjain
Hi, Looking for guidance on formatting of the attached application Output snippet. I'm having trouble on getting the borders and background color of the Message Box to display correctly. Any help will be appreciated. Nitin

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Marco van de Voort
In our previous episode, Michael Schnell said: > > using it on Windows for the foreseeable future. > Hmmm > > "parallel loop" and "future" in fact _is_ "compatible with Delphi": here > Delphi Prism. (It's not the fault of Lazarus, that Delphi is not > compatible with itself :-( .) It is not a p

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Michael Schnell
On 05/26/2014 12:42 PM, Reinier Olislagers wrote: Well, the normal procedure for doing this is to submit a patch if you want something to be added to FPC. Thanks for your hints. As I locally do use svn, I suppose I will be able to do a patch for a not yet existing file :) I can't do a patch

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Michael Schnell
On 05/26/2014 12:42 PM, Reinier Olislagers wrote: Well, the normal procedure for doing this is to submit a patch if you want something to be added to FPC. Thanks for your hints. As I locally do use svn, I suppose I will be able to do a patch for a not yet existing file :) I can't do a patch

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Reinier Olislagers
On 26/05/2014 12:12, Michael Schnell wrote: > On 05/26/2014 11:55 AM, Reinier Olislagers wrote: > I meant this as a general request to the "powers" of the fpc (rtl) > project with svn write access to allow Greame, Tom (or maybe myself) to > include the TEpikTimer class in the next release of the o

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Michael Schnell
On 05/26/2014 11:55 AM, Reinier Olislagers wrote: I don't understand exactly what you are trying to say. Is this: - a request to Graeme - a promise that you are going to provide a patch to the FPC RTL - a remark - something else Sorry for being unclear. I meant this as a general request to the

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Reinier Olislagers
On 26/05/2014 11:14, Michael Schnell wrote: > While I am happy about your move to do an "official release of > EpikTimer. I'd like to add that IMHO it would be appropriate to have the > file "epiktimer.pas" that is independent of Lazarus and makes sense to > be use in not Lazarus based projects in

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Michael Schnell
On 05/26/2014 11:35 AM, Sven Barth wrote: That's because "Delphi Prism" is not "Delphi". It's a product they licensed and added the name "Delphi Prism" on. Oxygene (what Prism is based on) was never intended to stay Delphi compatible. Of course I do know this, But They decided to call It "D

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Sven Barth
Am 26.05.2014 09:52 schrieb "Michael Schnell" : > > On 05/23/2014 05:46 PM, Craig Peterson wrote: >> >> On 5/23/2014 2:09 AM, Michael Schnell wrote: >>> >>> rather simple: >>> - declaring the event method as something like "closure" resulting it >>> having it do an auto-free on exit. >>> >>> more

Re: [fpc-pascal] EpikTimer v1.0.1 released

2014-05-26 Thread Michael Schnell
On 05/24/2014 01:55 PM, Graeme Geldenhuys wrote: I've spoken to Tom and he agreed. We moved the EpikTimer repository to Github. The Lazarus-CCR version will be deleted by Tom in due time. While I am happy about your move to do an "official release of EpikTimer. I'd like to add that IMHO it woul

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Michael Schnell
On 05/23/2014 05:46 PM, Craig Peterson wrote: On 5/23/2014 2:09 AM, Michael Schnell wrote: rather simple: - declaring the event method as something like "closure" resulting it having it do an auto-free on exit. more advanced (needing the RTL to provide pool of threads to fire on demand): -