Re: [fpc-pascal] overloading function

2014-05-02 Thread LacaK
>> I am trying understand how FPC determines which version of >>overloaded>> function to call.>> Take as example these 2 functions (from SysUtils):>> 1. function StrPLCopy(Dest: PChar; Source: string; MaxLen: >>SizeUInt):>> PChar; overload;>> 2. function StrPLCopy(Dest: PWideChar; const Source: Uni

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

2014-05-02 Thread Michael Van Canneyt
On Fri, 2 May 2014, patspiper wrote: dumping, try "ulimit -c unlimited" before starting Java again Did you use AttachCurrentThread and DetachCurrentThread? That is probably the "additional glue code" I was talking about in my reply. Michael. ___

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

2014-05-02 Thread patspiper
On 02/05/14 02:22, fredvs wrote: Hello. When a java class use a fpc library that call jni.CallVoidMethod inside a thread it crash the application. If the fpc library call jni.CallVoidMethod directly (not via a thread) => perfect, it works. Is that a known problem ? Maybe does it exist someth

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

2014-05-02 Thread fredvs
>> In general, libraries and threading is not an easy story. Ok,..., but what is your advice to do a CallVoidMethod inside a thread ? PS: Everything, inside the thread is working perfectly, only CallVoidMethod does crash... Do you think i could have better result with a kind of post-messages ?

Re: [fpc-pascal] FCGI MultiThreaded

2014-05-02 Thread Michael Van Canneyt
On Fri, 2 May 2014, Michael Schnell wrote: On 05/02/2014 12:44 PM, Michael Van Canneyt wrote: I see you are still determined to push your ideas. Is it nasty "pushing" just to state what you think is going to be useful for the community, when the chance occurs ? It becomes nasty, if you r

Re: [fpc-pascal] FCGI MultiThreaded

2014-05-02 Thread Michael Schnell
On 05/02/2014 12:44 PM, Michael Van Canneyt wrote: I see you are still determined to push your ideas. Is it nasty "pushing" just to state what you think is going to be useful for the community, when the chance occurs ? Please, Please, please, do everyone a favour and get started on it. In f

Re: [fpc-pascal] FCGI MultiThreaded

2014-05-02 Thread Michael Van Canneyt
On Fri, 2 May 2014, Dimitrios Chr. Ioannidis wrote: Ηι, Στις 2/5/2014 12:05 μμ, ο/η Michael Van Canneyt έγραψε:. On Fri, 2 May 2014, Dimitrios Chr. Ioannidis wrote: Hi, does anyone know if the TCustomFCgiApplication is multithreaded ? No, it is not. It's on my todo list, but has low

Re: [fpc-pascal] FCGI MultiThreaded

2014-05-02 Thread Michael Van Canneyt
On Fri, 2 May 2014, Michael Schnell wrote: On 05/02/2014 11:05 AM, Michael Van Canneyt wrote: does anyone know if the TCustomFCgiApplication is multithreaded ? No, it is not. It's on my todo list, but has low priority. While enhancing TCustomFCgiApplication regarding threads, TThre

Re: [fpc-pascal] FCGI MultiThreaded

2014-05-02 Thread Michael Schnell
On 05/02/2014 12:22 PM, Dimitrios Chr. Ioannidis wrote: I'll try to see if i can help, do you have any hints or tips reg. the source ? Let me know what you are about to do. Maybe I can be helpful on that behalf. -Michael ___ fpc-pascal maillist

Re: [fpc-pascal] FCGI MultiThreaded

2014-05-02 Thread Dimitrios Chr. Ioannidis
Ηι, Στις 2/5/2014 12:05 μμ, ο/η Michael Van Canneyt έγραψε:. On Fri, 2 May 2014, Dimitrios Chr. Ioannidis wrote: Hi, does anyone know if the TCustomFCgiApplication is multithreaded ? No, it is not. It's on my todo list, but has low priority. I'll try to see if i can help, do you have a

Re: [fpc-pascal] FCGI MultiThreaded

2014-05-02 Thread Michael Schnell
On 05/02/2014 11:05 AM, Michael Van Canneyt wrote: does anyone know if the TCustomFCgiApplication is multithreaded ? No, it is not. It's on my todo list, but has low priority. While enhancing TCustomFCgiApplication regarding threads, TThread.Synchronize, TThread.Queue would need to be

Re: [fpc-pascal] Inconsistent results currency - extended ?

2014-05-02 Thread Bruno Krayenbuhl
Tested with FPC 2.6.4 . LacaK are you sure you compile with the same version. To me everything looks fine. program test_Currency; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} SysUtils; var s: string; c: currency; e: extended; d: double; i64:

Re: [fpc-pascal] FCGI MultiThreaded

2014-05-02 Thread Michael Van Canneyt
On Fri, 2 May 2014, Dimitrios Chr. Ioannidis wrote: Hi, does anyone know if the TCustomFCgiApplication is multithreaded ? No, it is not. It's on my todo list, but has low priority. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] FCGI MultiThreaded

2014-05-02 Thread Michael Schnell
On 05/02/2014 10:00 AM, Dimitrios Chr. Ioannidis wrote: does anyone know if the TCustomFCgiApplication is multithreaded ? What do you mean by "is multithreaded" ? -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.f

[fpc-pascal] FCGI MultiThreaded

2014-05-02 Thread Dimitrios Chr. Ioannidis
Hi, does anyone know if the TCustomFCgiApplication is multithreaded ? Regards, -- Dimitrios Chr. Ioannidis smime.p7s Description: Κρυπτογραφημένη υπογραφή S/MIME ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepasc