Re: [fpc-pascal] Ansi strings
> 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 processor (for Linux). You can download it from the Free Pascal site (http://www.freepascal.org/download.html) If you are interested in embedded programming, I will in short time put together a starters kit based on the 2.0.2 compiler. If you are interested send a mail (in plain text) to [EMAIL PROTECTED] with the text SUBSCRIBE ARM7 When I have the kit ready, I will send a announcement when and where you can get the starters kit. > > In fpc 2.0.2 I see no support for ARM CPU, but I am strongly itnerested > in using this processor, too. > > TIA, > Marc > > > > $ fpc -i > Free Pascal Compiler version 2.0.2 > > Compiler Date : 2005/11/17 > Compiler CPU Target: i386 > > Supported targets: > GO32 V2 DOS extender > Linux for i386 > OS/2 > Win32 for i386 > FreeBSD/ELF for i386 > Solaris for i386 (under development) > Beos for i386 (under development) > NetBSD for i386 (under development) > Netware for i386(clib) > WDOSX DOS extender > OpenBSD for i386 (under development) > OS/2 via EMX > Watcom compatible DOS extenders > Netware for i386(libc) > Linux for x64_6432 > > Supported CPU instruction sets: > 386 > PENTIUM > PENTIUM2 > PENTIUM3 > PENTIUM4 > > Supported FPU instruction sets: > SOFT > X87 > SSE > SSE2 > > This program comes under the GNU General Public Licence > For more information read COPYING.FPC > > Report bugs,suggestions etc to: > [EMAIL PROTECTED] > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Ansi strings
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 supports the ARM processor (for Linux). You can download it from the Free Pascal site (http://www.freepascal.org/download.html) If you are interested in embedded programming, I will in short time put together a starters kit based on the 2.0.2 compiler. If you are interested send a mail (in plain text) to [EMAIL PROTECTED] with the text SUBSCRIBE ARM7 Why not use the newly released 2.0.4 compiler? it supports arm too ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Ansi strings
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 case of pchars is that pchars can be longer than 255 characters. In the particular case you mention (comparing a pchar with a constant string < 255 characters) a shortstring would be possible too, but the type conversion code here does not look at the contents of the nodes, only a their types. I am using the compiler on an embedded Arm 7 platform and Ansi strings is not an option. I want to force the 204 compiler to use short strings but the only option I can se, that have anything to do with strings is the (-Sh use ansistrings) and that is just the opposite of what I want. Any hints? You cannot force this other than by explicitly typecasting the pchar to shortstring in the comparison. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 faster compilation). It does not really compile faster. In most cases it does link faster, but that will be remedied soon :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Ansi strings
> > 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 case of pchars > is that pchars can be longer than 255 characters. In the particular > case you mention (comparing a pchar with a constant string < 255 > characters) a shortstring would be possible too, but the type > conversion code here does not look at the contents of the nodes, only > a their types. > > > I am using the compiler on an embedded Arm 7 platform and Ansi > > strings is not an option. > > I want to force the 204 compiler to use short strings but the only > > option I can se, that have anything to do with strings is the (-Sh use > > ansistrings) and that is just the opposite of what I want. > > Any hints? > > You cannot force this other than by explicitly typecasting the pchar > to shortstring in the comparison. I have discovered that I can use the {$LONGSTRINGS OFF} directive, is this a god way or should I typecast? It would be nice if there were a switch that could be put in the CFG file that forced the compiler to use short strings. > > > Jonas > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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? :) > > > > What is the advantage of the Delphi IDE? > > Imo that's the (only?) advantage Delphi has (and faster compilation). > > 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! Rainer > Michael. > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] flag or exception?
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 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] flag or exception?
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 disadvantages. For example, it's easy to see when flag-using code is coded correctly (are the return values checked and handled?), while it's hard for exception-using code. Exceptions are usually slower as well. Exceptions are also not compatible to other languages, usually. OTOH, using exceptions is lazier/easier. If an error should never occur, then using exceptions will have more readable code, as not every function calling this must handle the possible error flag. Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 then you also have to concentrate on the commercial/ business aspects. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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? :) What is the advantage of the Delphi IDE? Imo that's the (only?) advantage Delphi has (and faster compilation). 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! Then it gets a duty and gets boring. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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? > > Then you can concentrate more on your work and the work you like! > > 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 interested in it. It will guarantee also that people who rely on the compiler that they have more security or may be they feel that someone is responsible for it. Absolute security is impossible. I don't know how you get your money for your life, but you can spend much time in a thing doing it good with less financial support, it works, but you have to make too many compromises in the rest of your life. That is my experience. Anyway I would like to spend (some) money for it because it is worth it. And you are free to feel dutiful or not (that is in your mind, not in my). Rainer > > Jonas > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 boring. > > I so agree with that! :-) Has someone another opinion, or is it only allowed to say something if someone has the same opinion??? sorry :-( Rainer > Graeme. > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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. 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 boring. > > > > I so agree with that! :-) > > Has someone another opinion, or is it only allowed to say something if > someone > has the same opinion??? > > sorry :-( > > Rainer > > Graeme. > > ___ > > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 interested in it. You always have to do book keeping, tax administration etc. I don't know how you get your money for your life, but you can spend much time in a thing doing it good with less financial support, it works, but you have to make too many compromises in the rest of your life. That is my experience. This is simply a hobby of mine. I don't feel like I'm compromising anything. I'm also not getting financial support to read books or go to movies, nor would I want it (because then I'd be forced to go, even if I don't feel like it). Right now I'm fairly active again in FPC, but there have been periods where I was less active because I didn't feel like working on it. Thanks to the fact that I have no obligations, this is no problem. Anyway I would like to spend (some) money for it because it is worth it. I'm happy you like it! At this time, there is no way to speed up or improve development by spending money on FPC-related things though. Maybe that will change at some point in the future, but for now that's how it is. And you are free to feel dutiful or not (that is in your mind, not in my). If I would ask money for something, I would feel responsible for it. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 different opinion? Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 without sharing any profits with us if they want to. And they can provide professional support for it and anything else they want. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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! 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??? sorry :-( Nono, Each can have his opinion. In general, the attitude of the FPC core group has always been that they do this for fun, and have no intention to start any commercial - or even official, non-profit - activities related to FPC. It is a hobby which is fun and should remain fun. It has been explained several times that if the FPC users want some extra 'official' structures, they must do it themselves. We can provide webspace and a DNS name for such user-efforts, and I personally am ready to act as a contact person, but that is as far as it will go... Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 distributions do > > (think of something like > > RedHat, Debian, etc.). > > They can even do that without sharing any profits with us if they > want to. And they can provide professional support for it and > anything else they want. > > > Jonas > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] flag or exception?
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. I personally prefer exception-based code. I find it more clear and readable (less IF's), and more structured (easier cleanup in case of error, etc.) But this is a personal opinion. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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: > > > > > 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 without sharing any profits with us if they > > want to. And they can provide professional support for it and > > anything else they want. > > > > > > Jonas > > ___ > > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > > > > Leonardo M. Ramé > http://leonardorame.blogspot.com > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 opinion??? > > 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. > > Jonas > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 best... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 mailing list. Please don't be so prejudiced. My opinion is that it is a general aspect of (any) mailing listst, sorry. Rainer > > Jonas > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 (first) step. Imo it is better the FPC community/team gets direct support. Because (forgive me) what has a third party to do with it, except that they benefit from it? This may be gets a negative dynamic. In another way may be it can be positive if there is a powerful responsible party behind it that does not influence the community by their strange views of capitalism. I don't know about functioning models to support a good thing in a community environment (correct distribution of the support) but what I know is that it is not possible to make a good thing without support (I repeat that is my experience). In other words saying the project will be even better if there is enough support. And that should be possible in some way, because people use it and they are satisfied with it! May be I'm wrong, but that is my opinion. May be a simple donations Button can be a solution. Rainer P.S. Yes someone have to write a book and keep it in order. Not the whole day, but this has to be done. > My opinion. > > --- Rainer Stratmann <[EMAIL PROTECTED]> 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! > > > > > > > > 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??? > > > > sorry :-( > > > > Rainer > > > > > Graeme. > > > ___ > > > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > > > ___ > > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > Leonardo M. Ramé > http://leonardorame.blogspot.com > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
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 -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Timer for Windows/Linux
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 OS (Linux/Windows) like a TTimer of the Delphi? Regards, Fabrício F. Kammer ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Timer for Windows/Linux
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: while (not Terminated) do begin PreviousTime := Now; // Do what you need to do {-- "sleeps" while currentTime - PreviousTime isn´t bigger then 5 minutes --} while (Now - PreviousTime < 5 minutes) do begin Sleep(1000); // May be bigger end; end; You can use the Now function here because 5 minutes a lot of time, and so you don´t really need a lot of precision. If you needed a nanosecond precision on your loop you could use the powerful EpikTimer component: http://wiki.lazarus.freepascal.org/EpikTimer If you want to receive user input while your loop runs, then put the loop on a separate thread. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Httpd (apache modules)
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 doesn't works anymore? Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Timer for Windows/Linux
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 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: while (not Terminated) do begin PreviousTime := Now; // Do what you need to do {-- "sleeps" while currentTime - PreviousTime isn´t bigger then 5 minutes --} while (Now - PreviousTime < 5 minutes) do begin Sleep(1000); // May be bigger end; end; You can use the Now function here because 5 minutes a lot of time, and so you don´t really need a lot of precision. If you needed a nanosecond precision on your loop you could use the powerful EpikTimer component: http://wiki.lazarus.freepascal.org/EpikTimer If you want to receive user input while your loop runs, then put the loop on a separate thread. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Timer for Windows/Linux
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 download it´s source code and full documentation here: http://eletronicalivre.incubadora.fapesp.br/portal/english/oscilloscope/ -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Httpd (apache modules)
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 prevision, could be more or less). -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Ansi strings
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 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 processor (for Linux). You can > > download it from the Free Pascal site > > (http://www.freepascal.org/download.html) > > If you are interested in embedded programming, I will in short time > > put together a starters kit based on the 2.0.2 compiler. If you are > > interested send a mail (in plain text) to [EMAIL PROTECTED] with the text > > SUBSCRIBE ARM7 > > Why not use the newly released 2.0.4 compiler? it supports arm too ? 1. I can't switch compiler versions at any time. 2. I don't want to fiddle with two of them (been there done that ;) 3. I'm curious and want to know how this guy does magic with fpc. ;) 4. Until the ARM board is ready I'm looking for anything regarding fpc and arm cpu. 5. I wouldn't have known about Carsten Bager doing something on arm if I did not ask. ... ;)) Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Timer for Windows/Linux
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 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 download it´s source code and full documentation here: http://eletronicalivre.incubadora.fapesp.br/portal/english/oscilloscope/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Timer for Windows/Linux
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] Httpd (apache modules)
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 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 prevision, could be more or > less). > > -- > Felipe Monteiro de Carvalho > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Find the nature of a pointer
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: function TQtWidgetSet.IsValidGDIObject(const GDIObject: HGDIOBJ): Boolean; var aObject: TObject; begin Result := False; if GDIObject = 0 then Exit; aObject := TObject(GDIObject); if aObject is TObject then begin Result := (aObject is TQtFont) or (aObject is TQtBrush); end; end; thanks, -- Felipe Monteiro de Carvalho ___ 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
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 which just looks like an object (because it happens to contain the right bytes at the right place) and a genuine object (or anything else for that matter). The only way would be to make sure all objects are allocated from a separate memory pool, and checking whether the passed address lies in this pool. Jonas ___ 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
> 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 structure: It is not even 100% save for that, some systems use other values instead of nil/0. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Httpd (apache modules)
--- "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. ___ Do You Yahoo!? La mejor conexión a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx ___ 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
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 will work when the Handle is an Object or nil, > > but will crash the application when the Handle is a structure: > > It is not even 100% save for that, some systems use other values > instead of nil/0. For example? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Slow compilation
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] Slow compilation
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 Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Slow compilation
> 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 used it on windows. I used it with Mandrake Linux 9.2. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] flag or exception?
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- has Bee.ography at: http://beeography.wordpress.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal