Re: [fpc-pascal] flag or exception?

2006-09-01 Thread Bisma Jayadi
Depends on taste, and they have both advantages and disadvantages. I've been googling for this subject, but so far I can't find any satisfying explanation about the advantages and disadvantages of each mechanism or a comprehensive comparison between the two. Any URL for this? TIA. -Bee- ha

Re: [fpc-pascal] Slow compilation

2006-09-01 Thread suryono_03
> On 9/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Hi, does anyone know why lazarus have a slow compilation? > > I suppose you are talking about windows, right? > > Then it´s a faq: > > http://wiki.lazarus.freepascal.org/Lazarus_Faq#Why_is_the_linking_so_slow_on_Windows.3F > Nope, i'm not

Re: [fpc-pascal] Slow compilation

2006-09-01 Thread Felipe Monteiro de Carvalho
On 9/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, does anyone know why lazarus have a slow compilation? I suppose you are talking about windows, right? Then it´s a faq: http://wiki.lazarus.freepascal.org/Lazarus_Faq#Why_is_the_linking_so_slow_on_Windows.3F -- Felipe Monteiro de Car

[fpc-pascal] Slow compilation

2006-09-01 Thread suryono_03
Hi, does anyone know why lazarus have a slow compilation? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Find the nature of a pointer

2006-09-01 Thread Mattias Gaertner
On Fri, 1 Sep 2006 20:08:30 +0200 (CEST) [EMAIL PROTECTED] (Marco van de Voort) wrote: > > I have a function that will receive a Handle. That handle could be a > > pointer to a structure, or a object. Is there any safe way to > > discover it's nature? > > No you can't. > > > The following code

Re: [fpc-pascal] Httpd (apache modules)

2006-09-01 Thread Jesus Reyes
--- "Leonardo M. Ramé" <[EMAIL PROTECTED]> escribió: > Thanks Felipe, i'll try with Apache 2.0.x (i don't really need > 2.2.x). > also, don't forget the bug reports in the wiki page: http://www.freepascal.org/wiki/index.php/FPC_and_Apache_Modules#Bug_Reporting Jesus Reyes A.

Re: [fpc-pascal] Find the nature of a pointer

2006-09-01 Thread Marco van de Voort
> I have a function that will receive a Handle. That handle could be a > pointer to a structure, or a object. Is there any safe way to discover > it's nature? No you can't. > The following code will work when the Handle is an Object or nil, but > will crash the application when the Handle is a s

Re: [fpc-pascal] Find the nature of a pointer

2006-09-01 Thread Jonas Maebe
On 1 sep 2006, at 19:54, Felipe Monteiro de Carvalho wrote: I have a function that will receive a Handle. That handle could be a pointer to a structure, or a object. Is there any safe way to discover it's nature? No, if only because there is no generic way to distinguish a random record whi

[fpc-pascal] Find the nature of a pointer

2006-09-01 Thread Felipe Monteiro de Carvalho
Hello, I have a function that will receive a Handle. That handle could be a pointer to a structure, or a object. Is there any safe way to discover it's nature? The following code will work when the Handle is an Object or nil, but will crash the application when the Handle is a structure: functi

Re: [fpc-pascal] Httpd (apache modules)

2006-09-01 Thread Leonardo M. Ram
Thanks Felipe, i'll try with Apache 2.0.x (i don't really need 2.2.x). --- Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: > On 9/1/06, Leonardo M. Ramé <[EMAIL PROTECTED]> wrote: > > Are there any known bugs with Apache 2.2? or the example doesn't works > > anymore? > > The current bin

Re: [fpc-pascal] Timer for Windows/Linux

2006-09-01 Thread Felipe Monteiro de Carvalho
On 9/1/06, "Fabrício F. Kammer" <[EMAIL PROTECTED]> wrote: Where are you from? I'm from São Paulo. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Timer for Windows/Linux

2006-09-01 Thread Fabrício F. Kammer
Thank you very much Felipe. Where are you from? I'm Brazilian too, from Conchal/SP. []s Fabrício Felipe Monteiro de Carvalho escreveu: On 9/1/06, "Fabrício F. Kammer" <[EMAIL PROTECTED]> wrote: Do you have an example of how to use this loop on a thread? Sorry, but I don't know threads very

Re: [fpc-pascal] Ansi strings

2006-09-01 Thread Marc Santhoff
Am Freitag, den 01.09.2006, 11:50 +0200 schrieb Michael Van Canneyt: > > On Fri, 1 Sep 2006, Carsten Bager wrote: > > >> Hi, > >> > >> sorry, I cannot answer your question, but may I as: > >> > >> > >> Am Donnerstag, den 31.08.2006, 13:13 +0200 schrieb Carsten Bager: > >> > >>> I am using the com

Re: [fpc-pascal] Httpd (apache modules)

2006-09-01 Thread Felipe Monteiro de Carvalho
On 9/1/06, Leonardo M. Ramé <[EMAIL PROTECTED]> wrote: Are there any known bugs with Apache 2.2? or the example doesn't works anymore? The current bindings only work for Apache 2.0.x I am working on converting the headers for 2.2.x. They should be available for download in 1 week (just a prev

Re: [fpc-pascal] Timer for Windows/Linux

2006-09-01 Thread Felipe Monteiro de Carvalho
On 9/1/06, "Fabrício F. Kammer" <[EMAIL PROTECTED]> wrote: Do you have an example of how to use this loop on a thread? Sorry, but I don't know threads very well. Yes, I have a very big example. It´s a GUI for a digital oscilloscope board. The thread code is on the medidor.pas unit You can do

Re: [fpc-pascal] Timer for Windows/Linux

2006-09-01 Thread Fabrício F. Kammer
Thanks Felipe, Do you have an example of how to use this loop on a thread? Sorry, but I don't know threads very well. regards Fabrício Felipe Monteiro de Carvalho escreveu: On 9/1/06, "Fabrício F. Kammer" <[EMAIL PROTECTED]> wrote: I need to implement a routine on my sofware to be executed e

[fpc-pascal] Httpd (apache modules)

2006-09-01 Thread Leonardo M. Ram
I downloaded the httpd wrapper and examples from http://www.freepascal.org/wiki/index.php/FPC_and_Apache_Modules and can't start my Apache 2.2.3 server on Win2k SP4 when i include the mod_hello.so file compiled with FPC 2.1.1 and 2.0.4 Are there any known bugs with Apache 2.2? or the example doe

Re: [fpc-pascal] Timer for Windows/Linux

2006-09-01 Thread Felipe Monteiro de Carvalho
On 9/1/06, "Fabrício F. Kammer" <[EMAIL PROTECTED]> wrote: I need to implement a routine on my sofware to be executed each 5 minutes. Write a loop that first stores the current time, then executed whatever you need, and then sleeps until current_time - previous_time = 5 minutes. Like this:

[fpc-pascal] Timer for Windows/Linux

2006-09-01 Thread Fabrício F. Kammer
Hi all, I need to implement a routine on my sofware to be executed each 5 minutes. I'm using just FPC (without lazarus) becuase my software will run as a console application and because I don't have graphical inteface on the machine that I'm using. How can I make a routine that works on both

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Felipe Monteiro de Carvalho
On 9/1/06, Rainer Stratmann <[EMAIL PROTECTED]> wrote: Has someone another opinion, or is it only allowed to say something if someone has the same opinion??? Of course it´s allowed! I for example disagree. That´s why I created the bounties: http://wiki.lazarus.freepascal.org/Bounties -- Feli

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Rainer Stratmann
Am Freitag, 1. September 2006 13:52 schrieb Leonardo M. RamX: > Maybe a third party can distribute a commercial version of FreePascal / > Lazarus and share profits with the FPC community/team. Just like many linux > distributions do (think of something like RedHat, Debian, etc.). Maybe it can be a

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Rainer Stratmann
Am Freitag, 1. September 2006 14:37 schrieb Jonas Maebe: > On 1 sep 2006, at 14:40, Rainer Stratmann wrote: > >> Who said you or someone else cannot say anything because you have a > >> different opinion? > > > > May be that is an aspect of Mailing lists in general. > > It is not an aspect of this

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Jonas Maebe
On 1 sep 2006, at 14:40, Rainer Stratmann wrote: Who said you or someone else cannot say anything because you have a different opinion? May be that is an aspect of Mailing lists in general. It is not an aspect of this mailing list. Please don't be so prejudiced. Jonas

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Rainer Stratmann
Am Freitag, 1. September 2006 14:15 schrieb Leonardo M. RamX: > Yes, of course. Buf i think if you make money from an open source software > it's your responsibility to compensate in some way to the developers of > that software. ...can you explain it a little more? May be my english is not the bes

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Rainer Stratmann
Am Freitag, 1. September 2006 14:01 schrieb Jonas Maebe: > On 1 sep 2006, at 13:46, Rainer Stratmann wrote: > >>> Then it gets a duty and gets boring. > >> > >> I so agree with that! :-) > > > > Has someone another opinion, or is it only allowed to say something > > if someone > > has the same opi

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Leonardo M. Ram
Yes, of course. Buf i think if you make money from an open source software it's your responsibility to compensate in some way to the developers of that software. --- "Leonardo M. Ramé" <[EMAIL PROTECTED]> wrote: > Yes, of course. But if i > > --- Jonas Maebe <[EMAIL PROTECTED]> wrote: > > >

Re: [fpc-pascal] flag or exception?

2006-09-01 Thread Michael Van Canneyt
On Fri, 1 Sep 2006, Bisma Jayadi wrote: Hi all... I've always been confused about this subject... flag or exception for error handling? Can anyone share knowledges and ideas about when and where and why a (pascal) developer should chose one over another? This is highly developer dependent

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Leonardo M. Ram
Yes, of course. But if i --- Jonas Maebe <[EMAIL PROTECTED]> wrote: > > On 1 sep 2006, at 13:52, Leonardo M. RamX wrote: > > > Maybe a third party can distribute a commercial version of > > FreePascal / Lazarus and share profits > > with the FPC community/team. Just like many linux distributi

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Michael Van Canneyt
On Fri, 1 Sep 2006, Rainer Stratmann wrote: Am Freitag, 1. September 2006 13:27 schrieb Graeme Geldenhuys: On 9/1/06, Florian Klaempfl <[EMAIL PROTECTED]> wrote: So why not make a commercial Version of it, if it is better? Then you can concentrate more on your work and the work you like! T

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Jonas Maebe
On 1 sep 2006, at 13:52, Leonardo M. RamX wrote: Maybe a third party can distribute a commercial version of FreePascal / Lazarus and share profits with the FPC community/team. Just like many linux distributions do (think of something like RedHat, Debian, etc.). They can even do that witho

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Jonas Maebe
On 1 sep 2006, at 13:46, Rainer Stratmann wrote: Then it gets a duty and gets boring. I so agree with that! :-) Has someone another opinion, or is it only allowed to say something if someone has the same opinion??? Who said you or someone else cannot say anything because you have a

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Jonas Maebe
On 1 sep 2006, at 13:37, Rainer Stratmann wrote: No, because then you also have to concentrate on the commercial/ business aspects. If you want to sell less quality products thats right. It is much more easyer if you have products that have a good quality and if you have people who are i

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Leonardo M. Ram
Maybe a third party can distribute a commercial version of FreePascal / Lazarus and share profits with the FPC community/team. Just like many linux distributions do (think of something like RedHat, Debian, etc.). My opinion. --- Rainer Stratmann <[EMAIL PROTECTED]> wrote: > Am Freitag, 1. Sept

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Rainer Stratmann
Am Freitag, 1. September 2006 13:27 schrieb Graeme Geldenhuys: > On 9/1/06, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > > So why not make a commercial Version of it, if it is better? > > > Then you can concentrate more on your work and the work you like! > > > > Then it gets a duty and gets bor

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Graeme Geldenhuys
On 9/1/06, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > So why not make a commercial Version of it, if it is better? > Then you can concentrate more on your work and the work you like! Then it gets a duty and gets boring. I so agree with that! :-) Graeme. ___

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Rainer Stratmann
Am Freitag, 1. September 2006 13:00 schrieb Jonas Maebe: > On 1 sep 2006, at 12:20, Rainer Stratmann wrote: > >> It does not really compile faster. > >> In most cases it does link faster, but that will be remedied soon :-) > > > > So why not make a commercial Version of it, if it is better? > > The

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Florian Klaempfl
Rainer Stratmann wrote: Am Freitag, 1. September 2006 11:51 schrieb Michael Van Canneyt: On Fri, 1 Sep 2006, Rainer Stratmann wrote: Am Freitag, 1. September 2006 05:12 schrieb Bisma Jayadi: http://blogs.borland.com/nickhodges/archive/2006/08/26/27022.aspx#FeedBa ck What do you think? :) Wha

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Jonas Maebe
On 1 sep 2006, at 12:20, Rainer Stratmann wrote: It does not really compile faster. In most cases it does link faster, but that will be remedied soon :-) So why not make a commercial Version of it, if it is better? Then you can concentrate more on your work and the work you like! No, because

Re: [fpc-pascal] flag or exception?

2006-09-01 Thread Micha Nelissen
Bisma Jayadi wrote: > Hi all... > > I've always been confused about this subject... flag or exception for > error handling? Can anyone share knowledges and ideas about when and > where and why a (pascal) developer should chose one over another? Depends on taste, and they have both advantages and

[fpc-pascal] flag or exception?

2006-09-01 Thread Bisma Jayadi
Hi all... I've always been confused about this subject... flag or exception for error handling? Can anyone share knowledges and ideas about when and where and why a (pascal) developer should chose one over another? TIA. -Bee- has Bee.ography at: http://beeography.wordpress.com _

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Rainer Stratmann
Am Freitag, 1. September 2006 11:51 schrieb Michael Van Canneyt: > On Fri, 1 Sep 2006, Rainer Stratmann wrote: > > Am Freitag, 1. September 2006 05:12 schrieb Bisma Jayadi: > >> http://blogs.borland.com/nickhodges/archive/2006/08/26/27022.aspx#FeedBa > >>ck > >> > >> What do you think? :) > > > > W

Re: [fpc-pascal] Ansi strings

2006-09-01 Thread Carsten Bager
> > On 31 aug 2006, at 13:13, Carsten Bager wrote: > > > Here is 2 examples of how the fpc compiler dos when comparing a > > string constant with a pchar . The first is compiled with the 204 > > compiler and second one is compiled with the 202 compiler. > > The reason we now favour ansistring of

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Michael Van Canneyt
On Fri, 1 Sep 2006, Rainer Stratmann wrote: Am Freitag, 1. September 2006 05:12 schrieb Bisma Jayadi: http://blogs.borland.com/nickhodges/archive/2006/08/26/27022.aspx#FeedBack What do you think? :) What is the advantage of the Delphi IDE? Imo that's the (only?) advantage Delphi has (and fa

Re: [fpc-pascal] Ansi strings

2006-09-01 Thread Jonas Maebe
On 31 aug 2006, at 13:13, Carsten Bager wrote: Here is 2 examples of how the fpc compiler dos when comparing a string constant with a pchar . The first is compiled with the 204 compiler and second one is compiled with the 202 compiler. The reason we now favour ansistring of shortstring in cas

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Rainer Stratmann
Am Freitag, 1. September 2006 05:12 schrieb Bisma Jayadi: > http://blogs.borland.com/nickhodges/archive/2006/08/26/27022.aspx#FeedBack > > What do you think? :) What is the advantage of the Delphi IDE? Imo that's the (only?) advantage Delphi has (and faster compilation). Rainer ___

Re: [fpc-pascal] Ansi strings

2006-09-01 Thread Michael Van Canneyt
On Fri, 1 Sep 2006, Carsten Bager wrote: Hi, sorry, I cannot answer your question, but may I as: Am Donnerstag, den 31.08.2006, 13:13 +0200 schrieb Carsten Bager: I am using the compiler on an embedded Arm 7 platform and Ansi strings is not an option. How can you do this? The 2.0.2 su

Re: [fpc-pascal] Ansi strings

2006-09-01 Thread Carsten Bager
> Hi, > > sorry, I cannot answer your question, but may I as: > > > Am Donnerstag, den 31.08.2006, 13:13 +0200 schrieb Carsten Bager: > > > I am using the compiler on an embedded Arm 7 platform and Ansi > > strings is not an option. > > How can you do this? The 2.0.2 supports the ARM proces