Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-07 Thread Martin
On 07/08/2012 18:25, Rainer Stratmann wrote: Am Tuesday 07 August 2012 19:13:29 schrieb Martin: On 07/08/2012 17:58, Rainer Stratmann wrote: function s( str : pchar ) : pchar; calleradresstable; Then the compiler makes a table of all calleradresses and also the amount of s() in the program. I

[fpc-pascal] /docs-html/rtl/system/get_caller_addr.html

2012-08-07 Thread Howard Page-Clark
There is a typo in this documentation. The Description field refers to get_caller_frame when get_caller_addr is surely meant. Howard ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-07 Thread Rainer Stratmann
Am Tuesday 07 August 2012 19:13:29 schrieb Martin: > On 07/08/2012 17:58, Rainer Stratmann wrote: > > With the compiler keyword 'calleradresstable'; > > > > function s( str : pchar ) : pchar; calleradresstable; > > > > Then the compiler makes a table of all calleradresses and also the amount > > of

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-07 Thread Martin
On 07/08/2012 17:58, Rainer Stratmann wrote: With the compiler keyword 'calleradresstable'; function s( str : pchar ) : pchar; calleradresstable; Then the compiler makes a table of all calleradresses and also the amount of s() in the program. With the rtl function getcalleradresstable() then I

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-07 Thread Rainer Stratmann
Am Tuesday 07 August 2012 11:34:10 schrieb Martin: > > With all caller adresses OR all numbers (see down) I have the whole > > amount of snippets that I want to have. > > How? With the compiler keyword 'calleradresstable'; function s( str : pchar ) : pchar; calleradresstable; Then the compiler m

Re: [fpc-pascal] Compiling on Raspberry Pi

2012-08-07 Thread Paul Breneman
Hi Koenraad, I recently recieved my Raspberry PI. That's an arm-linux device. I downloaded the easyfpgui-package from http://www.turbocontrol.com/easyfpgui.htm. I can't compile the dbgterm, I get errors on baudrates that seem undefined. In the sources these baudrates are enclosed in IFDEF's. H

Re: [fpc-pascal] How to find a graphic element in the form editor?

2012-08-07 Thread Mattias Gaertner
Graeme Geldenhuys hat am 7. August 2012 um 16:48 geschrieben:> On 7 August 2012 13:20, Howard Page-Clark wrote: > > Use View | Components (shortcut Ctrl Alt P), and type 'filen' in the filter > > edit. > > Wow, and so we learn something new. :-) Maybe interesting: http://wiki.lazarus.freepasca

Re: [fpc-pascal] Compiling on Raspberry Pi

2012-08-07 Thread Mattias Gaertner
Graeme Geldenhuys hat am 7. August 2012 um 16:45 geschrieben:> Hi, > > On 7 August 2012 11:54, Koenraad Lelong > wrote: > > The rest of the apps compile fine although I had no possibility to test them > > since I don't yet have a suitable video-cable. > > > I had to delay my Raspberry Pi order

Re: [fpc-pascal] How to find a graphic element in the form editor?

2012-08-07 Thread Graeme Geldenhuys
On 7 August 2012 13:20, Howard Page-Clark wrote: > Use View | Components (shortcut Ctrl Alt P), and type 'filen' in the filter > edit. Wow, and so we learn something new. :-) -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI to

Re: [fpc-pascal] Compiling on Raspberry Pi

2012-08-07 Thread Graeme Geldenhuys
Hi, On 7 August 2012 11:54, Koenraad Lelong wrote: > The rest of the apps compile fine although I had no possibility to test them > since I don't yet have a suitable video-cable. I had to delay my Raspberry Pi order until I moved to the UK. I can't wait to receive mine now. :-D You mention you

Re: [fpc-pascal] How to find a graphic element in the form editor?

2012-08-07 Thread Jürgen Hestermann
Am 2012-08-07 14:20, schrieb Howard Page-Clark: On 07/8/12 1:10, Jürgen Hestermann wrote: When I want to add a graphic element like TFileNameEdit which I have already used in other programs in the form editor I don't know how to find it in the menu. Although this is the fpc list you mention

Re: [fpc-pascal] How to find a graphic element in the form editor?

2012-08-07 Thread Howard Page-Clark
On 07/8/12 1:10, Jürgen Hestermann wrote: When I want to add a graphic element like TFileNameEdit which I have already used in other programs in the form editor I don't know how to find it in the menu. Although this is the fpc list you mention a LCL component and the form editor, so I presume

[fpc-pascal] How to find a graphic element in the form editor?

2012-08-07 Thread Jürgen Hestermann
When I want to add a graphic element like TFileNameEdit which I have already used in other programs in the form editor I don't know how to find it in the menu. I am clicking on each tab one after the other then hovering over each element to see whether it is what I am searching for. This is more

[fpc-pascal] Compiling on Raspberry Pi

2012-08-07 Thread Koenraad Lelong
Hi, I recently recieved my Raspberry PI. That's an arm-linux device. I downloaded the easyfpgui-package from http://www.turbocontrol.com/easyfpgui.htm. I can't compile the dbgterm, I get errors on baudrates that seem undefined. In the sources these baudrates are enclosed in IFDEF's. How can I

Re: [fpc-pascal] class of a class function

2012-08-07 Thread CA Gorski
Yes, you are right. Due to the problem that I couldn't store a class function in a var of type function of object (I reported earlier) I found a workaround: var MyVar: function: boolean of object; ... MyVar:=@TSomeClass(nil).MyClassFunc; and that's why Self is nil. But I can do My

Re: [fpc-pascal] class of a class function

2012-08-07 Thread Jonas Maebe
CA Gorski wrote on Tue, 07 Aug 2012: I tried that already, but at least in my case Self is Nil inside the class function. Compiler (fpc 2.6.1 ) bug? It does not return nil for me: *** {$mode objfpc} type TSomething = class class function GetMyClass: TClass; end; class function TS

Re: [fpc-pascal] class of a class function

2012-08-07 Thread CA Gorski
I tried that already, but at least in my case Self is Nil inside the class function. Compiler (fpc 2.6.1 ) bug? On 07.08.2012 11:22, Jonas Maebe wrote: CA Gorski wrote on Tue, 07 Aug 2012: How can I get the actual class a class function is called in? Via "self". Jonas _

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-07 Thread Martin
On 07/08/2012 08:22, Rainer Stratmann wrote: Am Tuesday 07 August 2012 00:02:02 schrieb Martin: I still do not understand what is so special about the caller address? Furthermore, you said yourself, you do not need it. You can also live withe a "number that the compiler generates at compilation

Re: [fpc-pascal] class of a class function

2012-08-07 Thread Jonas Maebe
CA Gorski wrote on Tue, 07 Aug 2012: How can I get the actual class a class function is called in? Via "self". Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] class of a class function

2012-08-07 Thread CA Gorski
How can I get the actual class a class function is called in? TSomething = class class function GetMyClass: TClass; end; TOtherthing = class(TSomething) end; ... class function TSomething.GetMyClass: TClass; begin Result:=???; end; ... var MyVar: TClass; MyVar:=TOtherthing.Get

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-07 Thread Rainer Stratmann
Am Tuesday 07 August 2012 00:02:02 schrieb Martin: > I still do not understand what is so special about the caller address? > Furthermore, you said yourself, you do not need it. You can also live > withe a "number that the compiler generates at compilation time". With all caller adresses OR all nu