TTrackBar error lazarus / 8-Other ---------------------------------------------------------------------- Michal_86 · 2007-03-02 15:57 If position of TTrackBar is on minimum I'm getting these errors: Code: [Select]michal@desktop:~/lazarus/test1$ ./project1 GTKWindowStateEventCB Form1:TForm1 new_window_state=0 changed_mask=1 GTKWindowStateEventCB Form1:TForm1 0 [RMVDStPr] TControl.BeginDrag trackbar:TTrackBar Immediate=False TControl.BeginDrag trackbar:TTrackBar Immediate=False TApplication.HandleException Division by zero   Stack trace:   $B7423645  PRINTERS_finalize,  line 221 of iphtml.pas   $B7CA3F3A  PRINTERS_finalize,  line 221 of iphtml.pas   $B7C71078  PRINTERS_finalize,  line 221 of iphtml.pas   $B7BF3469  PRINTERS_finalize,  line 221 of iphtml.pas   $B7C33B00  PRINTERS_finalize,  line 221 of iphtml.pas   $B7AC4FB9  PRINTERS_finalize,  line 221 of iphtml.pas   $B7AC687D  PRINTERS_finalize,  line 221 of iphtml.pas   $B7AD71E3  PRINTERS_finalize,  line 221 of iphtml.pas   $B7AD7E7F  PRINTERS_finalize,  line 221 of iphtml.pas   $B7AD8279  PRINTERS_finalize,  line 221 of iphtml.pas   $B7D475F8  PRINTERS_finalize,  line 221 of iphtml.pas   $B7B9DBA7  PRINTERS_finalize,  line 221 of iphtml.pas   $B7B9DC11  PRINTERS_finalize,  line 221 of iphtml.pas   $B7C20A3B  PRINTERS_finalize,  line 221 of iphtml.pas   $B7B9E5FB  PRINTERS_finalize,  line 221 of iphtml.pas   $B7B9E6EF  PRINTERS_finalize,  line 221 of iphtml.pas   $B7C20B17  PRINTERS_finalize,  line 221 of iphtml.pas [FORMS.PP] ExceptionOccurred   Sender=EAccessViolation   Exception=Access violation   Stack trace:   $B7AD7C0D  PRINTERS_finalize,  line 221 of iphtml.pas   $B7AD8279  PRINTERS_finalize,  line 221 of iphtml.pas   $B7ACAD11  PRINTERS_finalize,  line 221 of iphtml.pas   $B7AC756F  PRINTERS_finalize,  line 221 of iphtml.pas   $B7ACC156  PRINTERS_finalize,  line 221 of iphtml.pas   $B7ACC7E9  PRINTERS_finalize,  line 221 of iphtml.pas   $B7ACC8F0  PRINTERS_finalize,  line 221 of iphtml.pas   $B7E4CCB4  PRINTERS_finalize,  line 221 of iphtml.pas   $B7BF7651  PRINTERS_finalize,  line 221 of iphtml.pas   $B7BFE368  PRINTERS_finalize,  line 221 of iphtml.pas   $B7BFE689  PRINTERS_finalize,  line 221 of iphtml.pas   $B7BFA96D  PRINTERS_finalize,  line 221 of iphtml.pas   $080D1713  TGTK2WIDGETSET__LOADSTOCKPIXMAP,  line 527 of gtk2object.inc   $081057FD  LOADSTOCKPIXMAP,  line 323 of ./include/lclintf.inc   $08143CDF  TPROMPTDIALOG__CREATEMESSAGEDIALOG,  line 177 of ./include/promptdialog.inc   $08144632  SHOWPROMPTDIALOG,  line 389 of ./include/promptdialog.inc   $080829CC  TWIDGETSET__PROMPTUSER,  line 506 of ./include/intfbaselcl.inc TApplication.HandleException: there was another exception during showing the first exception [FORMS.PP] ExceptionOccurred [FORMS.PP] ExceptionOccurred Linux 2.6.17.11 @ Ubuntu 6.10 Lazarus 0.9.20 fpc 2.0.4 gtk 2 ---------------------------------------------------------------------- Michal_86 · 2007-03-03 16:56 Is it problem with Lazarus/fpc or maybe its something with GTK? ---------------------------------------------------------------------- Michal_86 · 2007-03-07 23:23 Any proposition? btw my gtk version is 2.10.6 should I upgrade it to newest version? -Michal p.s Thanks for your help. ---------------------------------------------------------------------- Vincent Snijders · 2007-03-08 06:37 Create a bug report with an example project. ---------------------------------------------------------------------- bajaatan · 2007-04-03 13:49 binary created for gtk2 don't work under gnome, program exit (crash) when trackbar is moved to minimal value, zero in my case (same binaries work under kde). gtk works fine. I didn't check with 9.22 for linux. 9.22 for win32 have new huge bug with trackbar. As you move slider or try to get .position it become 0. I moved back on 9.20 ---------------------------------------------------------------------- xbspiro · 2007-04-10 00:32 Win XP SP2, Lazarus 0.9.22, FPC 2.0.4. I experience that the TTrackBar.Position is always zero, no matter how the slide is moved or what kind of interval is set by min and max variables or what default position is set. ---------------------------------------------------------------------- Vincent Snijders · 2007-04-10 07:05 Quote from: "xbspiro"Win XP SP2, Lazarus 0.9.22, FPC 2.0.4. I experience that the TTrackBar.Position is always zero, no matter how the slide is moved or what kind of interval is set by min and max variables or what default position is set. This bug has been fixed in 0.9.23.