On Wed, 19 Jul 2006 22:54:00 +0800 Funky Beast <[EMAIL PROTECTED]> wrote:
> Hi, > > lfm streaming failed with TLabel in TTabsheet as the > first control or the ONLY control. > > Not sure if its just me, or anyone else experience this, > but here goes... > > Using 0.9.17 rev. 9631 > gtk1 on Gentoo Linux > > Steps to produce error: > > 1. Create new project. > 2. Place a TPageControl on the form and add a new page. > 3. Place a TLabel in the newly created page. > 4. Save the project. > 5. Reopen the project. > 6. Press F12 to view form. > > At step 6, the form designer will not show the form. > Instead the IDE opens the lfm file in the source editor. > > Below is what the commandline shows when F12 is pressed: > =========================================================================== > TMainIDE.DoLoadLFM A /home/funkybeast/Lazarus/Projects/Test/Unit1.pas > IsPartOfProject=True > > Gtk-CRITICAL **: file gtkstyle.c: line 514 (gtk_style_attach): assertion > `window != NULL' failed. Fixed. Autosizing is now delayed, until page handle is added to the parent handle. Mattias > > Gdk-CRITICAL **: file gdkwindow.c: line 1777 (gdk_window_get_events): > assertion `window != NULL' failed. > > Gdk-CRITICAL **: file gdkwindow.c: line 1804 (gdk_window_set_events): > assertion `window != NULL' failed. > > Gtk-CRITICAL **: file gtklabel.c: line 260 (gtk_label_set_text): > assertion `GTK_IS_LABEL (label)' failed. > > Gtk-CRITICAL **: file gtklabel.c: line 284 (gtk_label_set_pattern): > assertion `GTK_IS_LABEL (label)' failed. > > Gtk-CRITICAL **: file gtklabel.c: line 260 (gtk_label_set_text): > assertion `GTK_IS_LABEL (label)' failed. > > Gtk-CRITICAL **: file gtklabel.c: line 284 (gtk_label_set_pattern): > assertion `GTK_IS_LABEL (label)' failed. > [TJITComponentList.AddJITChildComponentFromStream] ERROR reading form > stream of Class 'TForm1' Error: Access violation > > Gtk-CRITICAL **: file gtkstyle.c: line 567 (gtk_style_detach): assertion > `style != NULL' failed. > > Gdk-CRITICAL **: file gdkwindow.c: line 726 (gdk_window_unref): > assertion `window != NULL' failed. > > Gtk-CRITICAL **: file gtkstyle.c: line 620 (gtk_style_unref): assertion > `style != NULL' failed. > ERROR: streaming failed > lfm="/home/funkybeast/Lazarus/Projects/Test/Unit1.lfm" > > =========================================================================== > > Note: TNotebook's TPage also presents the same senario. > > Also 0.9.16 stable release does not have such problem, > form is displayed successfully. > > Other controls does not present this senario, > so I'm guessing TLabel has problem streaming when > contained in TPage. > > Regards, > Funky Beast > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
