Re: [fpc-pascal] replacement of MemAvail and MaxAvail

2014-05-30 Thread Mark Morgan Lloyd
On 30/05/2014 11:00, mokashe.ram wrote: Thanks For Your This Prompt Reply... but in promgram these functions are already used in my applcation developed in TP7, sonow i am migration this applcation to free pascal. how can i replace using free pascal? Don't. In the larger scale of things, peop

[fpc-pascal] Typinfo incompatibilities between FPC and Delphi

2014-05-30 Thread Kenneth Cochran
I'm attempting to port GExperts from Delphi to Lazaurus and noticed the definition of TPropInfo differs from Delphi's. In FPC's TPropInfo the PropType field is PTypeInfo whereas in Delphi it is PPTypeInfo. I'm not sure what is actually gained by this extra level of indirection but it exists none t

Re: [fpc-pascal] replacement of MemAvail and MaxAvail

2014-05-30 Thread waldo kitty
On 5/30/2014 5:37 AM, mokashe.ram wrote: Thanks For Your This Prompt Reply... but in promgram these functions are already used in my applcation developed in TP7, sonow i am migration this applcation to free pascal. how can i replace using free pascal? take them out... what do you need them fo

Re: [fpc-pascal] replacement of MemAvail and MaxAvail

2014-05-30 Thread Jonas Maebe
On 30 May 2014, at 11:37, mokashe.ram wrote: > but in promgram these functions are already used in my applcation developed > in TP7, sonow i am migration this applcation to free pascal. how can i > replace using free pascal? Set the global variable ReturnNilIfGrowHeapFails to true, and in all pl

[fpc-pascal] WST ERangeError RunError(201)

2014-05-30 Thread Dimitrios Chr. Ioannidis
Hi, when i'm trying to switch to debug an app which uses wst i always get a FPC_ANSISTR_RANGECHECK ( ERangeError ). Without debug enabled all is working fine. I'm using fpc 2.6.5 ( fixes branch ) and lazarus 1.2.3 at debian wheezy x86_64, and I made the following change all is working and

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

2014-05-30 Thread Sven Barth
Am 30.05.2014 13:09 schrieb "fredvs" : > Hum, so maybe, (im new in Java) use a Java-timer who calls > uos.checksynchro(); at regular time... If the timer event runs in the same thread as your current call to checksynchro resides then it will work. If it's executed by a different thread then not.

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

2014-05-30 Thread Ewald
On 05/30/2014 01:15 PM, fredvs wrote: > Please read my earlier post before this one > > @ Ewald, i have try with : > > While true do > Begin > ... code ... > > CheckSynchronize; > End; > > But this does not work... > The question here is: where

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

2014-05-30 Thread fredvs
Please read my earlier post before this one @ Ewald, i have try with : While true do Begin ... code ... CheckSynchronize; End; But this does not work... Thanks - Many thanks ;-) -- View this message in context: http://free-pascal-ge

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

2014-05-30 Thread fredvs
Yep, yep, yep some very good news... 1) Added a new procedure in fpc library: => procedure uos_checksynchro(PEnv: PJNIEnv; Obj: JObject) ; cdecl; begin checksynchronize(); end; 2) And, of course, in fpc library exported as: => exports ... uos_checksynchro name 'Java_uos_checksynchro', ... 3

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

2014-05-30 Thread Reinier Olislagers
On 27/05/2014 00:41, silvioprog wrote: > Perfect! :) Please feel free to open that bug report if you haven't already Thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] replacement of MemAvail and MaxAvail

2014-05-30 Thread Karoly Balogh (Charlie/SGR)
Hi, On Fri, 30 May 2014, mokashe.ram wrote: > Thanks For Your This Prompt Reply... > but in promgram these functions are already used in my applcation developed > in TP7, sonow i am migration this applcation to free pascal. how can i > replace using free pascal? Michael is right, there's no *re

Re: [fpc-pascal] FCGI TRequest URI

2014-05-30 Thread Michael Van Canneyt
On Fri, 30 May 2014, Dimitrios Chr. Ioannidis wrote: Hi, Στις 30/5/2014 12:57 μμ, ο/η Michael Van Canneyt έγραψε: On Fri, 30 May 2014, Dimitrios Chr. Ioannidis wrote: and when i'm trying to get the uri with something like ARequest.URI it's always empty. The BaseURL, Host etc are ok. A

Re: [fpc-pascal] FCGI TRequest URI

2014-05-30 Thread Dimitrios Chr. Ioannidis
Hi, Στις 30/5/2014 12:57 μμ, ο/η Michael Van Canneyt έγραψε: On Fri, 30 May 2014, Dimitrios Chr. Ioannidis wrote: and when i'm trying to get the uri with something like ARequest.URI it's always empty. The BaseURL, Host etc are ok. Any hints ? Nope. Seems like something that needs to be

Re: [fpc-pascal] FCGI TRequest URI

2014-05-30 Thread Michael Van Canneyt
On Fri, 30 May 2014, Dimitrios Chr. Ioannidis wrote: Hi, i'm trying to find out why the TRequest.URI property always return empty string in my setup. I have configured the web server apache like this SetHandler fcgid-script Order allow,deny Allow from all ScriptAlias /test /path/cgi

[fpc-pascal] FCGI TRequest URI

2014-05-30 Thread Dimitrios Chr. Ioannidis
Hi, i'm trying to find out why the TRequest.URI property always return empty string in my setup. I have configured the web server apache like this SetHandler fcgid-script Order allow,deny Allow from all ScriptAlias /test /path/cgi/dir/fpc-fcgi-app.fcgi and when i'm trying to get th

Re: [fpc-pascal] replacement of MemAvail and MaxAvail

2014-05-30 Thread mokashe.ram
Ok Thanks Michael ... Thanks, Sudarshan Mokashe -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/replacement-of-MemAvail-and-MaxAvail-tp5719435p5719440.html Sent from the Free Pascal - General mailing list archive at Nabble.com. __

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

2014-05-30 Thread Ewald
On 30 May 2014, at 10:46, fredvs wrote: > re-@ Ewald : > >>> It *must* be called in the context of the main thread (the thread that >>> loaded the library) > > OOps, so do you mean that CheckSynchronize must be called by Java ? > So i have to add a "custom" procedure in the fpc library (who wil

Re: [fpc-pascal] replacement of MemAvail and MaxAvail

2014-05-30 Thread Michael Van Canneyt
On Fri, 30 May 2014, mokashe.ram wrote: Thanks For Your This Prompt Reply... but in promgram these functions are already used in my applcation developed in TP7, sonow i am migration this applcation to free pascal. how can i replace using free pascal? Throw away the code that uses these funct

Re: [fpc-pascal] replacement of MemAvail and MaxAvail

2014-05-30 Thread mokashe.ram
Thanks For Your This Prompt Reply... but in promgram these functions are already used in my applcation developed in TP7, sonow i am migration this applcation to free pascal. how can i replace using free pascal? -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/r

Re: [fpc-pascal] replacement of MemAvail and MaxAvail

2014-05-30 Thread Michael Van Canneyt
On Fri, 30 May 2014, mokashe.ram wrote: Hi Could any one help me on the replacement of MemAvail and MaxAvail function in free pascal 32 bit OS(windows 7). These functions have almost no meaning in a modern OS. They depend on available RAM, OS usage, number of programs currently running, s

[fpc-pascal] replacement of MemAvail and MaxAvail

2014-05-30 Thread mokashe.ram
Hi Could any one help me on the replacement of MemAvail and MaxAvail function in free pascal 32 bit OS(windows 7). Thanks, Sudarshan Mokashe -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/replacement-of-MemAvail-and-MaxAvail-tp5719435.html Sent from the Fre

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

2014-05-30 Thread Michael Van Canneyt
On Fri, 30 May 2014, fredvs wrote: re-@ Ewald : It *must* be called in the context of the main thread (the thread that loaded the library) OOps, so do you mean that CheckSynchronize must be called by Java ? So i have to add a "custom" procedure in the fpc library (who will be only a fpc Ch

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

2014-05-30 Thread fredvs
re-@ Ewald : >> It *must* be called in the context of the main thread (the thread that >> loaded the library) OOps, so do you mean that CheckSynchronize must be called by Java ? So i have to add a "custom" procedure in the fpc library (who will be only a fpc CheckSynchronize()) ? Is it that that

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

2014-05-30 Thread Michael Van Canneyt
On Fri, 30 May 2014, fredvs wrote: @ Ewald => thanks. Hum, i did use checksynchronize but it did not help... When do you call it. Must it be used with fptimer.ontimer too ? No. And why fptimer.ontimer is not executed ? If CheckSynchronize is not executed at regular intervals, fptime

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

2014-05-30 Thread fredvs
@ Ewald => thanks. Hum, i did use checksynchronize but it did not help... Must it be used with fptimer.ontimer too ? And why fptimer.ontimer is not executed ? Will i have more luck with other timer like epiktimer from Graeme (or the new one from Michael) ? Thanks. PS : I will try with some more ch