[fpc-pascal] Create appending data to existing exe file?

2008-12-13 Thread Lee Jenkins
Hi all, Is it possible to append data to an existing executable file and have that file run correctly? I'm adding scripting features to one of our products and I wanted it so that our software can create a standalone executable for the end user. My plan was to create the base executable fi

Re: [fpc-pascal] number of cpu cores

2008-12-13 Thread Marc Weustink
Mattias Gaertner wrote: At the moment I have the attached function. It returns only 4 on a 2 x quad core Mac. Maybe someone can test under windows? returns 4 on a quadcore xp64 Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:/

Re: [fpc-pascal] number of cpu cores

2008-12-13 Thread Howard Page-Clark
On Sat, 13 Dec 2008 17:17:31 +0100 Mattias Gaertner wrote: > Thanks for all the hints. > > At the moment I have the attached function. > It returns only 4 on a 2 x quad core Mac. > Maybe someone can test under windows? The function returns 2 on my Pentium 4 (Win XP) Howard Page-Clark _

Re: [fpc-pascal] Options for enabling output buffering

2008-12-13 Thread Tomas Hajny
On 12 Dec 08, at 22:12, leledumbo wrote: . . > OK, for a real world apps that's true. I guess I still have to write those > things myself. Btw, is there any difference between code in an > initialization section of a unit with the one at the beginning of a program? The only difference is that

Re: [fpc-pascal] number of cpu cores

2008-12-13 Thread Robert Wolfe
On 12/13/2008 11:17 AM, Mattias Gaertner wrote: On Sat, 29 Nov 2008 19:14:39 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: In our previous episode, Michalis Kamburelis said: [ Charset ISO-8859-1 unsupported, converting... ] Florian Klaempfl wrote: Mattias Gaertner

Re[2]: [fpc-pascal] number of cpu cores

2008-12-13 Thread JoshyFun
Hello Mattias, Saturday, December 13, 2008, 5:17:31 PM, you wrote: MG> At the moment I have the attached function. MG> It returns only 4 on a 2 x quad core Mac. MG> Maybe someone can test under windows? Windows XP running P3000 hyperthreading returns 2 cores (as expected) but using FPC 2.2.2 the

Re: [fpc-pascal] number of cpu cores

2008-12-13 Thread Mattias Gaertner
On Sat, 29 Nov 2008 19:14:39 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: > In our previous episode, Michalis Kamburelis said: > [ Charset ISO-8859-1 unsupported, converting... ] > > Florian Klaempfl wrote: > > > Mattias Gaertner schrieb: > > >> I need a default value of the number of m

Re: [fpc-pascal] TProcess question

2008-12-13 Thread Michael Van Canneyt
On Fri, 12 Dec 2008, Bart wrote: > Hi, > > Just played with TProcess for the first time. (I come from Delphi 3) > I observed some oddities (?, or maybe I'm just dumb ...). > > If you try to execute a process that is non-executable (like for > example a word doc), then on Windows an exception i