[fpc-pascal] Linux : Using SDL with GTK2 ?

2007-11-15 Thread Tom
Hi, I'm desperately trying to build a application mixing GTK with SDL for *Linux*. I know that's not always recommended as it involves 2 listening loops but it should work. I found some *C* snippets/applications (eg making window hacks) but I'm unable to translate them into Pascal.My goal is to di

[fpc-pascal] FPC + GTK2 : Using variable into a Widget name ?

2008-01-04 Thread tom
ly improve/reduce my code. But I'm able to achieve this. Does anyone know ? Thanks. Tom ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

RE: [fpc-pascal] Shared library with resources which contain bitmaps on Linux -- second try

2008-06-25 Thread Tom Carly
> With version 2.3.1, you can try the new support for resources, > and it should work "out of the box". How can you obtain 2.3.1? I cannot find it in the repository... BR Tom ___ fpc-pascal maillist - fpc-pascal@lists.fre

RE: [fpc-pascal] Shared library with resources which contain bitmaps on Linux -- second try

2008-06-25 Thread Tom Carly
On Tue, 24 Jun 2008, Tom Carly wrote: > > With version 2.3.1, you can try the new support for resources, > > and it should work "out of the box". > > How can you obtain 2.3.1? I cannot find it in the repository... > You can get 2.3.1 only from subversion. I don&

[fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Tom Verhoeff
the value of x, it also bombs out on the 8th pass. Note that x is actually a field in a record stored in a high-dimensional array that is dynamically allocated, accessed through a with statement. Using various levels of optimization does not matter. I am at a loss here, Tom -- E-M

[fpc-pascal] Re: Strange Floating Point Exception problem

2008-08-24 Thread Tom Verhoeff
On Sat, Aug 23, 2008 at 12:20:48AM +0200, Tom Verhoeff wrote: > I have an application (for optimizing decisions in the dice game Yahtzee) > that uses Real and runs well with FPC on Mac OS X (PPC), but that > fails with a Floating Point Exception (FPE) under Windows (FPC 2.2.0). I "

[fpc-pascal] Hudson and fpc

2008-09-02 Thread Tom Carly
udson plugins to do this? Thanks in advance, Tom ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Tom Verhoeff
also remove the .lazarus directory > in your home directory as described at the end. I guess most of your > problems are related to that one in fact. What about /etc/fpc.cfg? I don't see it mentioned in the uninstall. Is that location a legacy of older versions? Tom -- E-

[fpc-pascal] Speed difference between intel/ppc on intel Mac

2008-09-05 Thread Tom Verhoeff
. to find out which options are in effect, e.g. useful when both configuration file and command line options are being used)? The app does not use floating point operations. Anyone else have the same experience? Any suggestions? Thanks, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of

[fpc-pascal] License question; unit to view floating-point details

2008-09-05 Thread Tom Verhoeff
: Single): Single; { returns successor of x } function PredSingle ( const x: Single): Single; { returns predecessor of x } Best regards, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:

Re: [fpc-pascal] License question; unit to view floating-point details

2008-09-07 Thread Tom Verhoeff
in math. > > The "Tostring" stuff should go into sysutils or strutils. There are also some constants and (conversion) types shared by the mathematical operations and ToString operations. Where would they go? Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Com

Re: [fpc-pascal] License question; unit to view floating-point details

2008-09-07 Thread Tom Verhoeff
Therefore, I believe that my current implemenation is endian-safe on processors that exploit the IEEE 754 standard wisely. In particular, I tested it on Intel and PowerPC (which have opposite endianness; though PowerPC can switch endianness). The unit comes with a separate test driver. There are a

Re: [fpc-pascal] License question; unit to view floating-point details

2008-09-07 Thread Tom Verhoeff
On Sun, Sep 07, 2008 at 07:53:06AM -0300, Felipe Monteiro de Carvalho wrote: > I would suggest to put this routines in a new unit, to keep the > existing base units small and clean. How about naming them FloatUtils? Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Com

Re: [fpc-pascal] License question; unit to view floating-point details

2008-09-07 Thread Tom Verhoeff
free to incorporate it in the RTL. Best regards, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven http://www.win.

Re: [fpc-pascal] Install FPC/Lazarus for Win CE

2008-09-10 Thread Tom Verhoeff
its icon, and hold to see that option), and next time start it from there (you no longer need to open Terminal). Best regards, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:+31 40 247

[fpc-pascal] Question: range checking for string indexing

2008-10-29 Thread Tom Verhoeff
t; Length(s). Thanks, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.nl/~w

Re: [fpc-pascal] Question: range checking for string indexing

2008-10-30 Thread Tom Verhoeff
On Wed, Oct 29, 2008 at 09:58:10PM +0100, Vinzent Höfler wrote: > Tom Verhoeff wrote: > >> I am surprised that for ShortString, the range is not >> also 1 <= i <= Length(s). >> >> IIRC Turbo Pascal only allowed you to access s[0] when range checking >&

[fpc-pascal] writing to shared memory

2008-11-27 Thread Tom Carly
y but that doesn't seem to exist under freepascal. Thx, Tom Carly ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] order of unit tests

2008-12-07 Thread Tom Verhoeff
On Sun, Dec 07, 2008 at 11:10:19AM +0100, Marc Santhoff wrote: > > How could I solve this problem in a better way? By using SetUp and TearDown routines. Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Un

Re: [fpc-pascal] Web link to documentation

2009-03-20 Thread Tom Verhoeff
browsing the website (most > other website work like this). > > http://www.freepascal.org/docs/ > http://docs.freepascal.org Personally, I just go to the relevant home page and expect a naviation link with anchor text Documentation. For FPC that exists (and works :-). To

[fpc-pascal] sending signal to child process

2009-03-30 Thread Tom Carly
eems that the signal that is sent from process A to process B is not the same as when you kill it via the command line. Does anyone have an idea how to solve this? Thanks! Best regards, Tom ___ fpc-pascal maillist - fpc-pascal@lists

RE: [fpc-pascal] sending signal to child process

2009-03-31 Thread Tom Carly
Hi, I found that the problem is coming from the fact that I use process.Options := ProcessB.Options + [poUsePipes]; If I switch that off, process B does execute the signal handling code. Is this a bug or am I missing something? Thx, Tom -Original Message- From: fpc-pascal-boun

Re: [fpc-pascal] sparse matrix storage method

2009-06-09 Thread Tom Verhoeff
er, that compring storage needs to be done carefully because of the overhead in pointers and indexes. The program is written in Turbo Pascal, but it should not be hard to run it using FPC. Best regards, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHO

[fpc-pascal] If an Assert fails in constructor, then destructor called (?)

2009-06-29 Thread Tom Verhoeff
ds to rely on the fact that fields in a class get initialized in a predefined way, e.g. pointers are set to nil. Best regards, Tom Verhoeff -- program Assert_in_constructor; {$Mode Delphi} {$Assertions on} uses SysUtils, Classes; type PCell = ^ TCell; TCell = record // singly linked

Re: [fpc-pascal] If an Assert fails in constructor, then destructor called (?)

2009-07-01 Thread Tom Verhoeff
On Tue, Jun 30, 2009 at 07:58:47PM +0100, Inoussa OUEDRAOGO wrote: > 2009/6/29 Tom Verhoeff : > > While tracing a nasty bug (?), I discovered the hard way that when > > an Assert is done in a constructor, and it fails, then the destructor > > (Destroy) is automatically called.

Re: [fpc-pascal] If an Assert fails in constructor, then destructor called (?)

2009-07-02 Thread Tom Verhoeff
On Wed, Jul 01, 2009 at 01:15:29PM +0200, Michael Van Canneyt wrote: > On Wed, 1 Jul 2009, Tom Verhoeff wrote: >> >> Zoiets zou ook in de TObject.Create (RTL) doc. van FreePascal passen >> (lees: thuishoren). > > For non-dutch speakers: It says that this kind of informat

Re: [fpc-pascal] Profiller for Mac OS X

2009-09-03 Thread Tom Verhoeff
hat is stored/displayed can be customized using some constants. Works very well. Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:+31 40 247 54 04| PO Box 513, NL-5600

Re: [fpc-pascal] Division by Zero: EDivByZero and EZeroDivide

2009-10-18 Thread Tom Verhoeff
+ x = infinity, 1/infty = 0). That is precisely why IEEE 754 has infinities. Also see <http://www.cs.berkeley.edu/~wkahan/ieee754status/why-ieee.pdf> for other examples and further motivation. Unfortunately, many compilers still do not fully support the IEEE 754 floating-point stan

Re: [fpc-pascal] Division by Zero: EDivByZero and EZeroDivide

2009-10-19 Thread Tom Verhoeff
g community. Another (longish) "must read" about floating-point: David Goldberg. "What Every Computer Scientist Should Know about Floating-Point Arithmetic". <http://www.validlab.com/goldberg/paper.ps> Note that IEEE Std 754 was revised in 2008, see e.g. <http:/

Re: [fpc-pascal] Division by Zero: EDivByZero and EZeroDivide

2009-10-19 Thread Tom Verhoeff
On Mon, Oct 19, 2009 at 10:21:01AM +0200, Jonas Maebe wrote: > > On 18 Oct 2009, at 17:52, Tom Verhoeff wrote: > >> It would be nicer if one had the ability to make floating-point >> division >> by zero return an IEEE 754 plus/minus infinity, without raisin

Re: [fpc-pascal] Division by Zero: EDivByZero and EZeroDivide

2009-10-20 Thread Tom Verhoeff
On Mon, Oct 19, 2009 at 02:57:10PM -0300, Gustavo Enrique Jimenez wrote: > 2009/10/18 Tom Verhoeff : > > A simple example is the situation where one needs to calculate > > the replacement resistor value R for parallel resistors having > > values R1, R2, ..., Rk.  The formula

Re: [fpc-pascal] Division by Zero: EDivByZero and EZeroDivide

2009-10-20 Thread Tom Verhoeff
On Mon, Oct 19, 2009 at 11:20:50PM +0100, Frank Peelo wrote: > Gustavo Enrique Jimenez wrote: >> 2009/10/18 Tom Verhoeff : >>> A simple example is the situation where one needs to calculate >>> the replacement resistor value R for parallel resistors having >>>

[fpc-pascal] mysql query

2010-07-08 Thread Tom Carly
Hi, I'm using TMySQL50Connection and TSQLQuery to do a query on a mysql server. Is there a way that you can set a timeout on a query so that it also automatically kills the mysql process after the timeout and doesn't keep loading the mysql server? Th

[fpc-pascal] Remote FreePascal compile service, feedback requested

2005-12-05 Thread Tom Verhoeff
maybe there are ways to put together a malicious source file that makes the compiler misbehave ... 4. Whatever else comes to your mind ... Best regards, Tom Verhoeff -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science PHONE: +31 40 247 41 25| Eindh

Re: [fpc-pascal] Remote FreePascal compile service, feedback requested

2005-12-05 Thread Tom Verhoeff
> > I think it only compiles things, and does not execute them. Correct. It is compile only, without execution of the resulting binary. Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science PHONE: +31 40 247 41 25| Eindhoven University of Tech

Re: [fpc-pascal] Remote FreePascal compile service, feedback requested

2005-12-05 Thread Tom Verhoeff
ntention (as indicated in my original message): > ... You go to its web interface, browse for your source files > (possibly a whole zip archive) on your local machine, enter command-line > options, ... Thanks for all the useful comments, Tom -- E-MAIL: T.Verhoeff @ TUE.

Re: [fpc-pascal] Remote FreePascal compile service, feedback requested

2005-12-06 Thread Tom Verhoeff
On Mon, Dec 05, 2005 at 10:03:58AM -0500, Tony Pelton wrote: > On 12/5/05, Tom Verhoeff <[EMAIL PROTECTED]> wrote: > > Why do this? Because that way people can use/try FreePascal without > > installing anything. > > installing really isn't too complicated cu

Re: [fpc-pascal] parameter names local, global, glocal

2006-01-22 Thread Tom Verhoeff
an (s)ftp connection with automatic text translation (depending on preference settings). I get bitten by this too often. Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science PHONE: +31 40 247 41 25| Eindhoven University of Technology FAX:

[fpc-pascal] Floating-point number representation on various platforms

2006-02-05 Thread Tom Verhoeff
nterest in such a unit? Question 2: Any suggestions as to how to make it more platform independent, or how to support multiple platforms in an easy way? Looking forward to some feedback, Tom Verhoeff -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science PHONE: +3

Re: [fpc-pascal] Floating-point number representation on various platforms

2006-02-18 Thread Tom Verhoeff
On Sun, Feb 05, 2006 at 01:39:25PM +0100, Jonas Maebe wrote: > > On 05 Feb 2006, at 13:32, Tom Verhoeff wrote: > > >Question 2: Any suggestions as to how to make it more platform > >independent, > >or how to support multiple platforms in an easy way? > > Th

Re: [fpc-pascal] Floating-point number representation on various platforms

2006-02-18 Thread Tom Verhoeff
On Sat, Feb 18, 2006 at 09:43:31AM +0100, Tom Verhoeff wrote: > > So, here are some pieces of the code, it uses a variant array to > access the bits of the IEEE floating-point numbers in Single and Double: That should be 'record' insteady of 'array', of co

[fpc-pascal] When are used units recompiled?

2006-04-05 Thread Tom Verhoeff
*.ppu and *.o are already available? I couldn't find this in the documentation. Versions: I used FPC 2.0.1 to compile the units; the students used FPC 2.0.2 to compiler their programs. Thanks, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science PHONE: +3

Re: [fpc-pascal] When are used units recompiled? (more details)

2006-04-05 Thread Tom Verhoeff
On Wed, Apr 05, 2006 at 01:27:04PM +0200, Jonas Maebe wrote: > > On 5 apr 2006, at 13:22, Tom Verhoeff wrote: > > >In a programming course that I teach, some students are using > >Lazarus+FPC > >instead of Delphi. I made available two precompiled units, that

Re: [fpc-pascal] When are used units recompiled? (wiki page added)

2006-04-06 Thread Tom Verhoeff
recompiled unit needs to publish *.ppu and *.o files for ALL 'relevant' System units (and Target OSs, of course). This makes it much less attractive to release units without source code. That may be understandable from an open-source perspective, but in teaching I find it us

Re: [fpc-pascal] When are used units recompiled? (wiki page added)

2006-04-07 Thread Tom Verhoeff
On Thu, Apr 06, 2006 at 11:04:02PM +0200, Jonas Maebe wrote: > > On 6 apr 2006, at 22:59, Tom Verhoeff wrote: > > >This raises the concern that precompiled units become obsolete when > >the user of such a unit upgrades the compiler. The compiler > >apparently >

Re: [fpc-pascal] When are used units recompiled? (wiki page added)

2006-04-07 Thread Tom Verhoeff
27;s Manual as well (updated Section 3.3 on Compiling a unit). Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science PHONE: +31 40 247 41 25| Eindhoven University of Technology FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven ht

Re: [fpc-pascal] When are used units recompiled? (wiki page added)

2006-04-07 Thread Tom Verhoeff
On Fri, Apr 07, 2006 at 01:25:52PM +0200, Michael Van Canneyt wrote: > > On Fri, 7 Apr 2006, Tom Verhoeff wrote: > > >I just happened to be bitten by it in an unexpected way. If it is > >properly documented, then there is no issue. I have tried to remedy > >that b

Re: [fpc-pascal] When are used units recompiled? (wiki page added)

2006-04-10 Thread Tom Verhoeff
On Sun, Apr 09, 2006 at 10:58:09PM +0200, Giovanni Premuda wrote: > Tom Verhoeff ha scritto: > >This makes it much less attractive to release units without source > >code. That may be understandable from an open-source perspective, > >but in teaching I find it useful or even

Re: [fpc-pascal] Set format

2006-11-14 Thread Tom Verhoeff
ads in the old format and writes out the new format. Thanks for enquiring, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science PHONE: +31 40 247 41 25| Eindhoven University of Technology FAX:+31 40 247 54 04| PO Box 513, NL

Re: [fpc-pascal] Pascal is alive!!??

2007-02-25 Thread Tom Verhoeff
useable > for people knowledged with FPC to work around the limitations. Once again, a sore point, indeed. The IDE is an issue, especially for "beginners". Personally, I have been very happy to use vi(m) under contest conditions. > Perhaps we should ask Tom Verhoeff, he is ver

[fpc-pascal] Re: [fpc-devel] Submitted bug report on option order -Sa -Sg-

2007-04-15 Thread Tom Verhoeff
(Discussion switched from fpc-devel to fpc-pascal, because it might be of more general interest.) On Sat, Apr 14, 2007 at 06:56:12PM +0200, Jonas Maebe wrote: > > On 13 Apr 2007, at 17:38, Tom Verhoeff wrote: > > >The order -Sa -Sg- fails to generate assertion checking code, whe

Re: [fpc-pascal] Dynamic array as return type of functions

2007-05-23 Thread Tom Verhoeff
record types. Insisting on a type name seems unneeded. I.e. the typing of the "parameters" of . is not so strict; it occurs in a context record . fieldname_of_this_record_type The record is not a parameter of . in the usual sense. I haven't checked the FPC documentation on all

Re: [fpc-pascal] Dynamic array as return type of functions

2007-05-24 Thread Tom Verhoeff
On Wed, May 23, 2007 at 05:48:32PM +0300, Christos Chryssochoidis wrote: > > On 23 Μαϊ 2007, at 3:05 ΜΜ, Tom Verhoeff wrote: > > >It is not a trick, but has to do with type compatibility issues > >(and history, I guess). > > I see. If I understand well, Pascal us

[fpc-pascal] Search order for libraries, how to influence; using GMP

2007-06-12 Thread Tom Verhoeff
'out of nowhere', then there are the two options from the command line, and then the one from /etc/fpc.cfg, followed by a long list of directories named /usr/lib/fpc/* . Where do the first three come from? Can those be (re)moved? Thanks, Tom -- E-MAIL: T.Verhoeff @ TUE.NL

[fpc-pascal] fpcunit documentation?

2007-06-12 Thread Tom Verhoeff
it is here <http://www.freepascal.org/docs-html/fpcunit.pdf> but that directory does not list it. That is a pity. Can someone educate me (or update the site)? Is there any more up-to-date documentation. I know some people enhanced fpcunit after Michael's article from 9 October 2005.

Re: [fpc-pascal] fpcunit documentation?

2007-06-13 Thread Tom Verhoeff
e wiki. If someone tells me the overall structure of the FCL, then I could update the wiki somewhat more. How do I find out which units are there? Looking at the svn repository, it is still not obvious to me. Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHON

Re: [fpc-pascal] Search order for libraries, how to influence; using GMP

2007-06-13 Thread Tom Verhoeff
P does. Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.nl/~wstomv/ | The N

[fpc-pascal] Metaware

2007-06-18 Thread Tom Walsh
tion); type int = LongInt; program libdos4_unit; with defstd4, dospriv; var KeySaveChar: char; function DosKeyCharHave: boolean; begin return(FromC.rdchk(0) = 1); end; == snip = Anyhow, any thoughts that someone may have would be greatly appreciated!

Re: [fpc-pascal] Metaware

2007-06-18 Thread Tom Verhoeff
On Mon, Jun 18, 2007 at 10:26:06AM -0400, Tom Walsh wrote: > Heh, if you are reading this then you may know what Metaware is? Unfortunately for you, I have no such experience; never heard of it. > Another "interesting feature" is a #define statement which is very much

Re: [fpc-pascal] Metaware

2007-06-18 Thread Tom Walsh
nagement will keep shoveling money into it... TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net http://cyberiansoftware.com http://openzipit.org "Windows? No thanks, I have work to do..." __

Re: [fpc-pascal] Metaware

2007-06-19 Thread Tom Walsh
7;t write financial code... TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net http://cyberiansoftware.com http://openzipit.org "Windows? No thanks, I have work to do..."

Re: [fpc-pascal] Metaware

2007-06-19 Thread Tom Walsh
se, this is definately on a unix box. TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net http://cyberiansoftware.com http://openzipit.org "Windows? No thanks, I have work to do..."

Re: [fpc-pascal] Metaware

2007-06-19 Thread Tom Walsh
Tom Walsh wrote: Mark Wood wrote: I have found that there are some functional differences that Metaware has over fpc, one example is the yield() function which returns the intermediate result of a function call. ? '?' indeed! I am fascinated! What does yield

Re: [fpc-pascal] Interesting namespace question

2007-06-21 Thread Tom York
iteln (namespace_test.test); // calls the public function finally c_test.free; end; end. Tom ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Starting new threads

2007-06-21 Thread Tom York
an email belongs (and this header is wrong if you reply). I assume that is directed at me. :) My apologies. I was attempting to respond to "Interesting namespace question", but I was not a member of the list yet, so I attempted to duplicate the subject. I should have known bet

Re: [fpc-pascal] Starting new threads

2007-06-21 Thread Tom York
By the way is NNTP forbidden? I would much rather use NNTP over a mailing list. Thanks, Tom ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to analyze a core dump?

2007-06-25 Thread Tom Walsh
ommunicates with pascal either through stdin/stdout redirection or with a socket. Bye IIRC, it is 'gcc -c ' TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net http://cyberiansoftware.com http://openzipit.or

Re: [fpc-pascal] How to analyze a core dump?

2007-06-25 Thread Tom Walsh
ommunicates with pascal either through stdin/stdout redirection or with a socket. Bye Nope, it is 'gdb -c '. Sorry :-( TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net http://cyberiansoftware.com http://openzipit.or

[fpc-pascal] How do I join the Lazarus list?

2007-07-03 Thread Tom York
I cannot seem to find a way to join the mailing list. TIA, Tom ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] USB Printers

2007-07-10 Thread Tom York
ndPagePrinter(Handle); EndDocPrinter(Handle); ClosePrinter(Handle); end; (End Procedure) Tom Roberto Gonçalves Barreiro wrote: I'm a delphi programmer. I'm printing a report using: assign(wPrinter,'Lpt1:') and it goes ok in paralel priner. I did assign(wPrinter,'USB001

Re: [fpc-pascal] USB Printers

2007-07-10 Thread Tom York
Disregard my prior post. It does not work unless the Windows Spooler API is converted. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] USB Printers

2007-07-10 Thread Tom York
Disregard my prior post. It does not work unless the Windows Spooler API is converted. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] USB Printers

2007-07-10 Thread Tom York
Disregard my prior post, it is Delphi specific. I did find this one. (http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/components/printers/samples/rawmode/unitmain.pas?root=lazarus&rev=10129&view=markup) procedure WritePrinter; var sTemp: String; Written: Integer; begin Written := 0; sTe

Re: [fpc-pascal] USB Printers

2007-07-10 Thread Tom York
Sorry for all of these replies, I think my ISP (webhost) is working on their mail servers. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] fpc make vs. gnu make

2007-07-12 Thread Tom Walsh
Is there any benefit to the fpc make? Regards, TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net http://cyberiansoftware.com http://openzipit.org "Windows? No thanks, I have

Re: [fpc-pascal] Need three things (follow-up on contracts)

2007-08-12 Thread Tom Verhoeff
ow things have been implemented. Maybe a developer can take a look, and we can discuss off-line whether to merge this, and if so, how to proceed. Best regards, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Univer

Re: [fpc-pascal] OT: Rename for Pascal

2007-08-13 Thread Tom Walsh
rate. If you renamed it to the "Open Source Pascal Compiler" it would be more accurate? Oh, and please, please change the name soon, ok? I have a lot more of these reports to write... Regards, TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.n

Re: [fpc-pascal] OT: Rename for Pascal

2007-08-13 Thread Tom Walsh
uot;something of so little value that you can afford to give it away". Perhaps in German it has a different connotation, or in British English... Regards, TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net http://cyberiansoftware.com http://op

[fpc-pascal] Help needed with (JEDI-)SDL on Mac OS X with FPC 2.0.4 powerpc

2007-08-17 Thread Tom Verhoeff
oa -Mdelphi demo02 The program demo2.pp contains {$linklib gcc} {$linklib SDLmain} Uses SDL, crt; This program was grabbed from <http://userpage.fu-berlin.de/~molski/fpsdl/> and then adapted according to <http://wiki.freepascal.org/index.php/FPC_and_SDL> Your advice would be greatly a

Re: [fpc-pascal] Re: Help needed with (JEDI-)SDL on Mac OS X with FPC 2.0.4 powerpc

2007-08-18 Thread Tom Verhoeff
On Fri, Aug 17, 2007 at 10:47:27PM +0100, Milan Marusinec wrote: > Tom Verhoeff wrote: > >Any idea what I messed up? > > > >This is what my command line looks like: > > > >fpc -Fu/Users/wstomv/Download/JEDI-SDLv1.0/SDL/Pas -Fl/usr/X11R6/lib > >-XMSDL_main -k

[fpc-pascal] FreePascal mentioned in Yahtzee book

2007-10-02 Thread Tom Verhoeff
book's Introduction (p.6). Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.n

Re: [fpc-pascal] Serial port interrupts?

2007-10-10 Thread Tom Walsh
ake up the full attention of the kernel for any significant amount of time. Even under an interrupt driven service there would be jitter and an unpredictable response time before the service routine is actually run. TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openha

Re: [fpc-pascal] Re: Why this evaluates on "if" wrong ?

2007-10-29 Thread Tom Verhoeff
most of those texts are not so accessible to the layman. I have written a short article on it for secondary educations, that I hope is more accessible: Gyula Horvath, Tom Verhoeff. ``Numerical Difficulties in Pre-University Informatics Education and Competition

Re: [fpc-pascal] Re: Why this evaluates on "if" wrong ? (GMP)

2007-10-29 Thread Tom Verhoeff
to make the GMP functions available as operators under GNU Pascal. The (ultimate) goal is that you can simply write things like r := (a + b) * c where a, b, and c have a GMP number type, instead of writing things like mpq_add ( r, a, b ) ; mpq_mul ( r, r, c ) . Tom -- E-MAIL: T.Verhoeff @ TUE.

Re: [fpc-pascal] Re: Why this evaluates on "if" wrong ? (more pi fun)

2007-10-31 Thread Tom Verhoeff
otnote in a book on VLSI design): "pi = sqrt(10) for small values of pi" With apologies for the increasing off-topicness, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:

Re: [fpc-pascal] copy(), length(), and setlength() is not mentioned in fpc docs?

2007-12-05 Thread Tom Verhoeff
formed > > as a link. > > http://www.freepascal.org/docs-html/rtl/system/stringfunctions.html These functions are not only for strings, but (more generally) for dynamic arrays (as well). I haven't checked to see if they are documented there, but one would expect/hope so.

[fpc-pascal] 2x HeapTrc: output with -gl on ppcx64; QuickTrace/KeepReleased bug?

2007-12-14 Thread Tom Verhoeff
QuickTrace := False KeepReleased := False { default } does not produce these error lines. This second problem also appears on FPC 2.0.4 under Mac OS X. Thanks for any feedback, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 4

Re: [fpc-pascal] 2x HeapTrc: output with -gl on ppcx64; QuickTrace/KeepReleased bug?

2007-12-15 Thread Tom Verhoeff
On Fri, Dec 14, 2007 at 12:28:04PM +0100, Vincent Snijders wrote: > Tom Verhoeff schreef: > >We use the HeapTrc facility in our education to get an impression of > >memory management issues in programs submitted for assignments. > > > >Typically our Peach.win.tue.nl s

Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-07 Thread Tom Verhoeff
itory root on <http://svn.freepascal.org/cgi-bin/viewvc.cgi/> ? Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven http://w

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-11 Thread Tom York
n Linux servers and backup using gbak. Tom ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] pascal on macbook

2008-04-26 Thread Tom Verhoeff
ly some other languages like Eiffel, ...). For Pascal, you can also consider LWP (Light-Weight Pascal) at <http://www.pascal-central.com/lwp/lightweight.html> Have fun, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25

[fpc-pascal]No line numbers shown when Format raises an exception, compiled with -gl

2004-01-22 Thread Tom Verhoeff
ng formatexception Linking formatexception 7 Lines compiled, 0.3 sec [EMAIL PROTECTED](230) ./formatexception An unhandled exception occurred at 0x0805093B : ECONVERTERROR : Invalid argument index in format "" 0x0805093B Thanks, Tom ___

Re: [fpc-pascal] Any Carbon users around?

2004-11-18 Thread Tom Verhoeff
ife has become "somewhat" more complicated. I have yet to try FreePascal with XCode. I have only used XCode for some Eiffel programming (a very nice system, by the way). Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science PHONE: +31 40 247 41 25

[fpc-pascal] Assert (in System) overhead

2005-04-03 Thread Tom Verhoeff
mpression that the check is inlined and the message parameter is evaluated only on failure. Can someone confirm that this is indeed always the way it is handled? Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science PHONE: +31 40 247 41 25| Eindhoven

[fpc-pascal] TObjectList in Contnrs in FCL (doc, usage)?

2005-05-31 Thread Tom Verhoeff
undary is between RTL and FCL. Classes is listed under FCL, and is documented under RTL. Thanks, Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science PHONE: +31 40 247 41 25| Eindhoven University of Technology FAX:+31 40 247 54 04| PO Box

Re: [fpc-pascal] TObjectList in Contnrs in FCL (doc, usage)?

2005-06-03 Thread Tom Verhoeff
efer to the Delphi documentation. If I understand the situation better, I will contribute an article about FCL to the Wiki (there is an FCL entry, but it only contains a question, not useful information). Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science PH

[fpc-pascal] Calling unassigned procedure gives no stack trace with -gl

2005-07-13 Thread Tom Verhoeff
problem remains when SysUtils is used as well. This makes it very awkward to find the source of such unhandled exceptions. (Something similar seems to happen with incorrect calls to Format.) Is there any workaround? Tom -- program UnassignedProcedureBug; { compile with -gl -Mdelphi

Re: [fpc-pascal] Calling unassigned procedure gives no stack trace with -gl

2005-07-13 Thread Tom Verhoeff
On Thu, Jul 14, 2005 at 01:12:23AM +0200, Marcel Martin wrote: > Tom Verhoeff a écrit : > >begin > > VMyClass := TMyClass.Create; > > //VMyClass.FP := VMyClass.P; { with this assignment, it works } > > VMyClass.FP; { this causes an Access Violation } > >

Re: [fpc-pascal] Calling unassigned procedure gives no stack trace with -gl

2005-07-14 Thread Tom Verhoeff
On Thu, Jul 14, 2005 at 10:27:01AM +0200, Peter Vreman wrote: > > Tom Verhoeff a écrit : > > > > The point is that there is no stack trace with line numbers on the > > (obviously correct) exception, in spite of the option -gl (even when > > explicitly using SysUtils)

[fpc-pascal] Reading past end of file, no error

2005-09-07 Thread Tom Verhoeff
runtime error. This is the behavior I would in fact expect. At some point in the 1.9 branch, this changed (and now it bites me). Now it silently assigns 0 to i on the second read. Even with -Ci as option or {$I+}. Can anyone comment on this? Should I submit a bug report? Tom -- E-MAIL

  1   2   >