Re: [fpc-pascal] Unknown runtime error 202

2006-07-26 Thread Vinzent Höfler
Wolfram Kläger wrote: I had this error two or three times these days. I managed to get rid > of it by moving a local method variable to a field. Example: class.method var d3 : array[ .., .., ..] of ... begin ... Works, if length(d3) < unknown limit. When I get the unknown runtime > error 20

[fpc-pascal] Unknown runtime error 202

2006-07-26 Thread Wolfram Kläger
I had this error two or three times these days. I managed to get rid of it by moving a local method variable to a field. Example: class.method var d3 : array[ .., .., ..] of ... begin ... Works, if length(d3) < unknown limit. When I get the unknown runtime error 202 instead, I rearrange d3 to

Re: [fpc-pascal] national support

2006-07-26 Thread DarekM
Friš Martin Mgr napisał(a): I give additional details. I write programs for mathematical linguistics. Especially program for frequency dictionary of chosen text. I write text to the editor. The text is in Czech. It displays correctly in editor window , i.e. with diacritics. Then follows tran

Re: [fpc-pascal] CRT (Console Unit) Problems with Fedora 5

2006-07-26 Thread Micha Nelissen
Jason P Sage wrote: > A good example is that FreeVision and the FPC IDE do not work on my Linux > either. Elaborate on "do not work" please ? Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/

Re: [fpc-pascal] Compiler Warning and Notices like unused variables etc.

2006-07-26 Thread Michael Van Canneyt
On Wed, 26 Jul 2006, Graeme Geldenhuys wrote: > > MyVariable:=MyVariable; // this is a workaround in rare cases. > > Can anybody that knowns the internals of FPC confirm if this will > create extra work/code for the compiler? It will. > I have been trying for a > long time to figure out a c

Re: [fpc-pascal] Compiler Warning and Notices like unused variables etc.

2006-07-26 Thread Vinzent Hoefler
On Wednesday 26 July 2006 12:49, Graeme Geldenhuys wrote: > > MyVariable:=MyVariable; // this is a workaround in rare cases. > > Can anybody that knowns the internals of FPC confirm if this will > create extra work/code for the compiler? It does create an assignment. At least with the fpc2.0.2

Re: [fpc-pascal] Compiler Warning and Notices like unused variables etc.

2006-07-26 Thread Graeme Geldenhuys
MyVariable:=MyVariable; // this is a workaround in rare cases. Can anybody that knowns the internals of FPC confirm if this will create extra work/code for the compiler? I have been trying for a long time to figure out a clean way of getting rid of some compiler warnings. Regards, Graeme.

[fpc-pascal] CRT (Console Unit) Problems with Fedora 5

2006-07-26 Thread Jason P Sage
Hi, It's me again. I was wondering if anyone has run into a problem where programs that used the CRT unit and have worked for both Linux and win32 find that these same programs no longer work on newer lynx's? I have this whole suite of code - literally megs of source code that works on Wi

Re: [fpc-pascal] MySQL4 Pascal Unit

2006-07-26 Thread Michael Van Canneyt
On Wed, 26 Jul 2006, Jason P Sage wrote: > I have tested the FPC supplied MySQL4 unit and I've admittedly haven't had a > ton of time to play with it yet. But I was curious if any of you had any > feedback about it. > > I wrote a wrapper for the FPC supplied MySQL3 a long time ago and it worked

[fpc-pascal] MySQL4 Pascal Unit

2006-07-26 Thread Jason P Sage
I have tested the FPC supplied MySQL4 unit and I've admittedly haven't had a ton of time to play with it yet. But I was curious if any of you had any feedback about it. I wrote a wrapper for the FPC supplied MySQL3 a long time ago and it worked awesome. I think I should do the same for MySQL4, and

[fpc-pascal] Compiler Warning and Notices like unused variables etc.

2006-07-26 Thread Jason P Sage
I just wanted to say I LOVE the fact that the compiler warns you of these mundane details. Personally, I don't consider my application at a good stopping point unless I can make all the warnings go away. Sometimes I even will put in (hopefully a low overhead thing when I do it) a meaningless com

Re[2]: [fpc-pascal] national support

2006-07-26 Thread Пётр Косаревский
> > What other details should I give for somebody to give me advice. > > I guess this might be enough for somebody to try - I personally have > absolutely no idea what kind of charset is used/expected when printing via > Write(Ln) to Lst under Windows, but this shouldn't be difficult to check?

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Vinzent Hoefler
On Wednesday 26 July 2006 10:00, Michael Van Canneyt wrote: > On Wed, 26 Jul 2006, Vinzent Hoefler wrote: > > On Wednesday 26 July 2006 09:46, Michael Van Canneyt wrote: > > > It seems obvious to me that a global function can be called in > > > parallel at any time. The compiler can perfectly dete

Re: [fpc-pascal] national support

2006-07-26 Thread Tomas Hajny
Fria Martin Mgr wrote: > I give additional details. I write programs for mathematical linguistics. > Especially program for frequency dictionary of chosen text. I write text > to the editor. The text is in Czech. It displays correctly in editor > window , i.e. with diacritics. Then follows transfor

Re: [fpc-pascal] Compiling the compiler

2006-07-26 Thread Tomas Hajny
Andreas Berger wrote: > Vincent Snijders wrote: >> Andreas Berger schreef: >>> Andreas Berger wrote: I have a problem compiling the compiler. After a lot of compilation it attempts to compile pp.pas and I get the following error: pp.pas(213,1) Error: Entrypoint start not defined.

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Michael Van Canneyt
On Wed, 26 Jul 2006, Vinzent Hoefler wrote: > On Wednesday 26 July 2006 09:46, Michael Van Canneyt wrote: > > > It seems obvious to me that a global function can be called in > > parallel at any time. The compiler can perfectly detect whether a > > global function writes to variables outside i

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Vinzent Hoefler
On Wednesday 26 July 2006 09:46, Michael Van Canneyt wrote: > It seems obvious to me that a global function can be called in > parallel at any time. The compiler can perfectly detect whether a > global function writes to variables outside it's own scope, in which > case it's probably a no-no to p

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Michael Van Canneyt
On Wed, 26 Jul 2006, Micha Nelissen wrote: > Michael Van Canneyt wrote: > >> The latter. > > > > Which is why I think that it's better to have them as local functions, > > instead of having to introduce a lot of new functions. > > There is no real reason to restrict 'parallel' to local functio

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Vinzent Hoefler
On Wednesday 26 July 2006 09:28, Steve Williams wrote: > Steve Williams wrote: > > *begin* > > SubTask(x); > > *end* /{Sub}/; > > > > *var* > > arr = *array*[0 .. ] *of* Float; > > *begin* / // Main program/ > > Sub (arr); > > *end*. > > Damn Thunderbird. Well, it tried

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Micha Nelissen
Michael Van Canneyt wrote: >> The latter. > > Which is why I think that it's better to have them as local functions, > instead of having to introduce a lot of new functions. There is no real reason to restrict 'parallel' to local functions, is there ? Micha __

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Vincent Snijders
Michael Van Canneyt schreef: On Wed, 26 Jul 2006, Vinzent Hoefler wrote: On Wednesday 26 July 2006 08:17, Micha Nelissen wrote: Vinzent Hoefler wrote: Well, I just added some stuff there, yesterday. It's far from being complete yet (it just covers a basic "parallel" construct), nor is it rea

Re: [fpc-pascal] Compiling the compiler

2006-07-26 Thread Andreas Berger
Florian Klaempfl wrote: Andreas Berger wrote: I am using the v20 base compiler The only supported bootstrapping compiler is the last release compiler, i.e. 2.0.2. That is what I am using. ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Vinzent Hoefler
On Wednesday 26 July 2006 09:25, Micha Nelissen wrote: > Vinzent Hoefler wrote: > > On Wednesday 26 July 2006 09:07, Micha Nelissen wrote: > >> How many copies ? > > > > Omp.Get_Num_Threads(), AFAICS. > > Ah the number of threads is determined by the RTL, and any parallel > block must be written fl

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Steve Williams
Steve Williams wrote: *begin* SubTask(x); *end* /{Sub}/; *var* arr = *array*[0 .. ] *of* Float; *begin* / // Main program/ Sub (arr); *end*. Damn Thunderbird. -- Sly This message and its attachments may contain legally privileged or confidential informati

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Steve Williams
Michael Van Canneyt wrote: Which is why I think that it's better to have them as local functions, instead of having to introduce a lot of new functions. Local functions are very pascal-ish. C doesn't have it, which is why they can't use it. Let's use the language features to their full extent.

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Vinzent Hoefler
On Wednesday 26 July 2006 09:00, Michael Van Canneyt wrote: > On Wed, 26 Jul 2006, Vinzent Hoefler wrote: > > On Wednesday 26 July 2006 08:17, Micha Nelissen wrote: > > > Vinzent Hoefler wrote: > > > > Well, I just added some stuff there, yesterday. It's far from > > > > being complete yet (it just

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Micha Nelissen
Vinzent Hoefler wrote: > On Wednesday 26 July 2006 09:07, Micha Nelissen wrote: >> How many copies ? > > Omp.Get_Num_Threads(), AFAICS. Ah the number of threads is determined by the RTL, and any parallel block must be written flexible, so that it can work for any given number of threads ? Micha

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Vincent Snijders
Micha Nelissen schreef: Vinzent Hoefler wrote: On Wednesday 26 July 2006 08:17, Micha Nelissen wrote: Does parallel mean all the statements in the block can be executed in parallel, or that multiple copies of the block of statements can be started in parallel ? The latter. Strange. How many

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Vinzent Hoefler
On Wednesday 26 July 2006 09:07, Micha Nelissen wrote: > Vinzent Hoefler wrote: > > On Wednesday 26 July 2006 08:17, Micha Nelissen wrote: > >> Does parallel mean all the statements in the block can be executed > >> in parallel, or that multiple copies of the block of statements > >> can be started

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Micha Nelissen
Vinzent Hoefler wrote: > On Wednesday 26 July 2006 08:17, Micha Nelissen wrote: >> Does parallel mean all the statements in the block can be executed in >> parallel, or that multiple copies of the block of statements can be >> started in parallel ? > > The latter. Strange. How many copies ? _

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Michael Van Canneyt
On Wed, 26 Jul 2006, Vinzent Hoefler wrote: > On Wednesday 26 July 2006 08:17, Micha Nelissen wrote: > > Vinzent Hoefler wrote: > > > Well, I just added some stuff there, yesterday. It's far from being > > > complete yet (it just covers a basic "parallel" construct), nor is > > > it really thoug

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Vinzent Hoefler
On Wednesday 26 July 2006 08:17, Micha Nelissen wrote: > Vinzent Hoefler wrote: > > Well, I just added some stuff there, yesterday. It's far from being > > complete yet (it just covers a basic "parallel" construct), nor is > > it really thought through yet, but well, it might be a start; > > someth

Re: [fpc-pascal] Apache processing cgi requests

2006-07-26 Thread Graeme Geldenhuys
On 7/26/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: They are processed at the same time. Apache works threaded, so multiple versions of your CGI script could be running at the same time. You could simply have used the GetTempFileName function from SysUtils to avoid concurrency problems. Al

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Micha Nelissen
Vinzent Hoefler wrote: > Well, I just added some stuff there, yesterday. It's far from being > complete yet (it just covers a basic "parallel" construct), nor is it > really thought through yet, but well, it might be a start; something to > begin with. > > Any suggestions are welcome, of course

Re: [fpc-pascal] Apache processing cgi requests

2006-07-26 Thread Michael Van Canneyt
On Wed, 26 Jul 2006, Graeme Geldenhuys wrote: > For all those Apache and CGI gurus... > > [This might be off-topic] > > I have written a CGI app for my client that decrypts a Macromedia > Flash files (*.swf) to a set path and name ("/flash/movie.swf"), I > then generate a html file to view tha

[fpc-pascal] Apache processing cgi requests

2006-07-26 Thread Graeme Geldenhuys
For all those Apache and CGI gurus... [This might be off-topic] I have written a CGI app for my client that decrypts a Macromedia Flash files (*.swf) to a set path and name ("/flash/movie.swf"), I then generate a html file to view that file, and the client (web browser) gets served. The average

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-26 Thread Vinzent Hoefler
On Monday 17 July 2006 19:12, Florian Klaempfl wrote: > I started also a wiki page about it > http://www.freepascal.org/wiki/index.php/OpenMP_support where ideas > can be written down and shared. Well, I just added some stuff there, yesterday. It's far from being complete yet (it just covers a b

Re: [fpc-pascal] national support

2006-07-26 Thread Michael Van Canneyt
On Wed, 26 Jul 2006, Friš Martin Mgr wrote: > I give additional details. I write programs for mathematical linguistics. > Especially program for frequency dictionary of chosen text. > I write text to the editor. The text is in Czech. It displays correctly in > editor window , > i.e. with dia

Re: [fpc-pascal] Compiling the compiler

2006-07-26 Thread Florian Klaempfl
Andreas Berger wrote: > I am using the v20 base compiler The only supported bootstrapping compiler is the last release compiler, i.e. 2.0.2. > with the v21 source. It should create a > v21 compiler. > > I get the same error compiling under DOS, Win98 and Win2K > > Regards, Andreas > > Lee, J

[fpc-pascal] national support

2006-07-26 Thread Friš Martin Mgr
I give additional details. I write programs for mathematical linguistics. Especially program for frequency dictionary of chosen text. I write text to the editor. The text is in Czech. It displays correctly in editor window , i.e. with diacritics. Then follows transformation into words. In p