[fpc-pascal] GDB for 64 bit Windows ?

2009-11-10 Thread Dimitrios Chr. Ioannidis
Hi, i have build a native ppcx64 in windows 7 64 bit. But i can't find a 64 bit version of GDB in http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw64. Is the 32 bit gdb in http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32 able to debug reliably a 64 bit process ? Or i

Re: [fpc-pascal] GDB for 64 bit Windows ?

2009-11-10 Thread Vincent Snijders
Dimitrios Chr. Ioannidis schreef: Hi, Is the 32 bit gdb in http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32 able to debug reliably a 64 bit process ? AFAIK you cannot use the 32 bits version. You can download gdb for win64 from SF. A tested version (but not the latest version)

[fpc-pascal] Compiler Warning: Constructor should be public

2009-11-10 Thread Anthony Walter
I've searched the list archives related to the subject of the fpc warning Constructor should be public and am unsure as to the resolution of this issue, or would perhaps like to revisit it. In my opinion the warning should be removed, or at least able to be suppress through a switch. I beginning

Re: [fpc-pascal] Compiler Warning: Constructor should be public

2009-11-10 Thread Jonas Maebe
On 10 Nov 2009, at 14:35, Anthony Walter wrote: In my opinion the warning should be removed, or at least able to be suppress through a switch. FPC 2.4.0 will include the ability to suppress individual messages. Use -vq to show the messages numbers, and -vmxxx to suppress a particular

Re: [fpc-pascal] Compiler Warning: Constructor should be public

2009-11-10 Thread Graeme Geldenhuys
Anthony Walter wrote: In my opinion the warning should be removed, or at least able to be suppress through a switch. I beginning to make the transition to cross The compiler is 100% and I think it should actually raise an Error instead of a Warning. Your code is flawed. Object Pascal is

Re: [fpc-pascal] Compiler Warning: Constructor should be public

2009-11-10 Thread Anthony Walter
Your argument is flawed. Visibility rules apply to identifiers, not keywords. Create // identifier CreateFromLine // different identifier No visibility is being changed by introducing a *new* identifier raise EAssertError.Create(Msg); // still visible raise EAssertError.CreateFromLine(Msg,

[fpc-pascal] h2pas truncates strings

2009-11-10 Thread Wimpie Nortje
Hallo I am trying to convert a .h to pascal with h2pas. The header file contains many declarations with lines of 400 characters or longer. h2pas creates the *.tmp.h file with all the code intact but the .pas file's lines are cut off at 256 characters. Is there an easy way around this

Re: [fpc-pascal] h2pas truncates strings

2009-11-10 Thread Henry Vermaak
2009/11/10 Wimpie Nortje wimpienor...@gmail.com: Hallo I am trying to convert a .h to pascal with h2pas. The header file contains many declarations with lines of 400 characters or longer. h2pas creates the *.tmp.h file with all the code intact but the .pas file's lines are cut off at 256

Re: [fpc-pascal] h2pas truncates strings

2009-11-10 Thread Wimpie Nortje
Thanks, I will try that. Henry Vermaak wrote: 2009/11/10 Wimpie Nortje wimpienor...@gmail.com: Hallo I am trying to convert a .h to pascal with h2pas. The header file contains many declarations with lines of 400 characters or longer. h2pas creates the *.tmp.h file with all the code intact

Re: [fpc-pascal] h2pas truncates strings

2009-11-10 Thread Wimpie Nortje
Ok, I've tried indent and it doesn't do the job because the comments are also 400 chars long. I also tried to add {$H+} to the top of h2pas.pas but the solution is not that easy. If someone could give me a pointer of where to start, maybe I can try to fix it. For starters, what is the yacc

Re: [fpc-pascal] h2pas truncates strings

2009-11-10 Thread Henry Vermaak
2009/11/10 Wimpie Nortje wimpienor...@gmail.com: Ok, I've tried indent and it doesn't do the job because the comments are also 400 chars long. From indent man page: -ln, --line-lengthn Set maximum line length for non-comment lines to n. See BREAKING LONG LINES. -lcn,

Re: [fpc-pascal] h2pas truncates strings

2009-11-10 Thread Wimpie Nortje
indent can only add or delete whitespace. Comments that start with // and extend beyond the -lcn limit are left alone. Henry Vermaak wrote: 2009/11/10 Wimpie Nortje wimpienor...@gmail.com: Ok, I've tried indent and it doesn't do the job because the comments are also 400 chars long.

Re: [fpc-pascal] Compiler Warning: Constructor should be public

2009-11-10 Thread Paul Nicholls
- Original Message - From: Anthony Walter sys...@gmail.com To: grae...@opensoft.homeip.net; FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Wednesday, November 11, 2009 1:07 AM Subject: Re: [fpc-pascal] Compiler Warning: Constructor should be public Your argument is

Re: [fpc-pascal] Compiler Warning: Constructor should be public

2009-11-10 Thread Anthony Walter
Sorry, Create is an identifier. constructor TSampleForm.Create(AOwner: TComponent); var Create: Integer; begin inherited; Create := Tag; Caption := IntToStr(Create); end; Aside from that, if you read you will see I used two identifiers ... one called Create and another called ... get

[fpc-pascal] Any Way to catch endless loop in fpc in Wince?

2009-11-10 Thread epergola
Hi Is there a way (or a 3rd party component or a library) to catch an endless loop after x seconds in applications running on arm Wince? -- View this message in context: http://old.nabble.com/Any-Way-to-catch-endless-loop-in-fpc-in-Wince--tp26293620p26293620.html Sent from the Free Pascal -

Re: [fpc-pascal] Compiler Warning: Constructor should be public

2009-11-10 Thread Flávio Etrusco
On Tue, Nov 10, 2009 at 10:56 AM, Graeme Geldenhuys gra...@mastermaths.co.za wrote: Anthony Walter wrote: In my opinion the warning should be removed, or at least able to be suppress through a switch. I beginning to make the transition to cross The compiler is 100% and I think it should

Re: [fpc-pascal] Compiler Warning: Constructor should be public

2009-11-10 Thread Anthony Walter
QFT, Flávio said: Graeme, I guess the OP didn't want to reintroduce the 'Create' constructor with lower visibility, just implement a second constructor (** with a different name **) with private visiblity. It can be useful when implementing singletons and factories to avoid some types of misuse