How Dbg call function lazarus / 12-Debugger ---------------------------------------------------------------------- Borneq · 2010-01-12 12:37 In http://husio.homelinux.com/blog/post/gdb-przyklad-uzycia/ we have: (gdb) p printf("\"%s\"\n", gtk_combo_box_get_active_text(app_conf->input_device)) I call: p OB.GETN and I see: "Cannot take address of method GETN" My code is Code: [Select] TMyClass=class   private     n: integer;   protected     function GetN: integer;   public     pubVar: integer;     property PropN: Integer read GetN;   end;  function TMyClass.GetN: integer; begin   result:=n;   inc(n); end; var   ob: TMyClass;   n: integer; begin   ob:=TMyClass.Create;   n:=ob.PropN;   n:=ob.PropN;   ob.Free; end. ---------------------------------------------------------------------- Borneq · 2010-01-12 13:15 (gdb) disassemble shows me: p TMYCLASS__GETN - shows function address p TMYCLASS__GETN(OB) - call ob.GetN I think better name for TMYCLASS__GETN should be TMYCLASS$GETN because _ is legal ident char ---------------------------------------------------------------------- marcov · 2010-01-12 14:38 See if this works better if you give set language pascal first.