[fpc-pascal] locale solution for unix systems

2009-03-18 Thread Graeme Geldenhuys
[moved the conversation from Lazarus mailing list] On Wed, Mar 18, 2009 at 7:29 PM, Bart wrote: > > Yes, i see. I have those files on Suse too. > Not sure what package is responsible. > An rpm -q locale (or locales) reveals nothing. I'm pretty sure rpm must have a way to query it by giv

Re[2]: [fpc-pascal] Windows find out if an application already is running

2009-03-18 Thread Fantomas
Thank you all for the useful info. In view of aforesaid named objects seem to be the simplest and the most reliable way to pevent running multiple instances af an application under Win32/ -- Best regards, Fantomas ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Array initialization

2009-03-18 Thread Jürgen Hestermann
A "fillword" procedure does not exist. It seems I was wrong about this. A "fillword" procedure DOES exist. I just discovered this myself. But then the range (size of variable) you want to fill has to be an even number of bytes. In general this may not be guaranteed. Jürgen Hestermann. _

Re: [fpc-pascal] Array initialization

2009-03-18 Thread Marco van de Voort
In our previous episode, J?rgen Hestermann said: > >> FillChar(Values,SizeOf(Values),0) > > That worked. > > However, for an integer is fillword better? > > A "fillword" procedure does not exist. http://www.freepascal.org/docs-html/rtl/system/fillbyte.html http://www.freepascal.org/docs-html/rtl/

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread Krishna
On Wed, Mar 18, 2009 at 10:50 PM, Krishna wrote: > On Wed, Mar 18, 2009 at 9:04 PM, Marco van de Voort wrote: >> In our previous episode, Krishna said: >>> > >>> > I'm new to fpc and pascal, i.e. I've never done a project in it, but >>> > i've been following the lists for a while and dabbling. >>

Re: [fpc-pascal] Array initialization

2009-03-18 Thread Jürgen Hestermann
FillChar(Values,SizeOf(Values),0) That worked. However, for an integer is fillword better? A "fillword" procedure does not exist. FillChar is an anchient Pascal function to simply fill any arbitrary memory location of any size (determined by a variable) with all the same byte. It is very f

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread Krishna
On Wed, Mar 18, 2009 at 9:04 PM, Marco van de Voort wrote: > In our previous episode, Krishna said: >> > >> > I'm new to fpc and pascal, i.e. I've never done a project in it, but >> > i've been following the lists for a while and dabbling. >> > >> > I like using a garbage collector and I know you

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread ritchie turner
Hi Adrian, Guilty! bd. On Wed, 2009-03-18 at 17:03 +0100, Adrian Veith wrote: > ritchie turner schrieb: > > Thanks all, I've got something to go on now. > > > > bd. > > > bye the way - are you black dog from the haxe list ? > > Cheers, > > Adrian. > ___

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread Adrian Veith
ritchie turner schrieb: > Thanks all, I've got something to go on now. > > bd. > bye the way - are you black dog from the haxe list ? Cheers, Adrian. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/lis

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread Adrian Veith
ritchie turner schrieb: > I'm new to fpc and pascal, i.e. I've never done a project in it, but > i've been following the lists for a while and dabbling. > > I like using a garbage collector and I know you can replace the memory > manager in fpc so i guess it's probably trivial to replace the stand

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread ritchie turner
Thanks all, I've got something to go on now. bd. On Wed, 2009-03-18 at 16:34 +0100, Marco van de Voort wrote: > In our previous episode, Krishna said: > > > > > > I'm new to fpc and pascal, i.e. I've never done a project in it, but > > > i've been following the lists for a while and dabbling. >

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread Marco van de Voort
In our previous episode, Krishna said: > > > > I'm new to fpc and pascal, i.e. I've never done a project in it, but > > i've been following the lists for a while and dabbling. > > > > I like using a garbage collector and I know you can replace the memory > > manager in fpc so i guess it's probably

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread Krishna
On Wed, Mar 18, 2009 at 7:07 PM, ritchie turner wrote: > > I'm new to fpc and pascal, i.e. I've never done a project in it, but > i've been following the lists for a while and dabbling. > > I like using a garbage collector and I know you can replace the memory > manager in fpc so i guess it's prob

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread Marco van de Voort
In our previous episode, ritchie turner said: > > I'm new to fpc and pascal, i.e. I've never done a project in it, but > i've been following the lists for a while and dabbling. > > I like using a garbage collector and I know you can replace the memory > manager in fpc so i guess it's probably tri

Re: [fpc-pascal] Windows find out if an application already is running

2009-03-18 Thread Luca Olivetti
En/na leledumbo ha escrit: Is it the same technique used by http://wiki.lazarus.freepascal.org/UniqueInstance UniqueInstance ? No, UniqueInstance uses an IpcServer/IpcClient, so it is cross-platform. Bye -- Luca ___ fpc-pascal maillist - fpc-pasc

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread ritchie turner
I know it has limitations and downsides but I have to respectfully disagree it's the worst programming idea ever. For the stuff I do which is high level applications I don't believe it's going to affect me badly; If i were writing codecs or an operating system then i would find it hard to justify

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread Jonas Maebe
Adriaan van Os wrote on wo, 18 mrt 2009: The main issue is that garbage collection is the worst programming idea ever. It lets you get away with bad program design at the cost of slow execution. Please post remarks like that to the fpc-other list instead. This list is not about advocacy, but

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread Adriaan van Os
ritchie turner wrote: I'm new to fpc and pascal, i.e. I've never done a project in it, but i've been following the lists for a while and dabbling. I like using a garbage collector and I know you can replace the memory manager in fpc so i guess it's probably trivial to replace the standard with b

[fpc-pascal] Boehm GC

2009-03-18 Thread ritchie turner
I'm new to fpc and pascal, i.e. I've never done a project in it, but i've been following the lists for a while and dabbling. I like using a garbage collector and I know you can replace the memory manager in fpc so i guess it's probably trivial to replace the standard with boehm. Wondered if anyon

Re: [fpc-pascal] Array initialization

2009-03-18 Thread Francisco Reyes
Fantomas writes: As far as I know, global variables are initialised with zeros when an application starts. Gives a warning when I don't initialize it. split.pas(31,55) Warning: Variable "Values" does not seem to be initialized FillChar(Values,SizeOf(Values),0) That worked. However, for

Re: [fpc-pascal] Windows find out if an application already is running

2009-03-18 Thread leledumbo
Is it the same technique used by http://wiki.lazarus.freepascal.org/UniqueInstance UniqueInstance ? -- View this message in context: http://www.nabble.com/Windows-find-out-if-an-application-already-is-running-tp22526930p22577639.html Sent from the Free Pascal - General mailing list archive at

Re: [fpc-pascal] Windows find out if an application already is running

2009-03-18 Thread Frank Peelo
Fantomas wrote: Hello, Rainer! Sunday, March 15, 2009, 10:22:04 PM, you wrote: I tried system.hprevinst, but this shows always 0. If there are more copys of the program then hinstance is always the same value. hPrevInst does not work under Win32. It is only for Win16, AFAIK. Use a named m