Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-07

how to...

12 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Pavlovic Ivan
to Marc Weustink: + From: Pavlovic Ivan + > pfew... I'm not sure if the problems are related. The + >…

Here's the output I get when I compile with make ide OPT=dTRACE:

ERROR: [TgtkObject.CreateFontIndirect] No fontname An unhandled exception occurred at 0x7620726F :
Access violation
0x7620726F
0x080C56B6
0x00000001
0x0810BB20

An unhandled exception occurred at 0x72617A61 :
Access violation
0x72617A61
0xBFFFF6DC
An unhandled exception occurred at 0x080CEF5A :
Access violation
0x080CEF5A
0x3020200C
0x00000000

[TgtkObject.Destroy] WARNING: There are 2 unreleased DCs and 9 unreleased GDIObjects
[TgtkObject.Destroy] WARNING: There are 2 messages left in the queue! I'll free them

As you can see it's pretty much the same :)) (exactly the same)

Pavlovic Ivan
---------------------------------
E-mail:
----------

Homepage:
----------
www.tisoft.cjb.net

Earlier message 40 lines
----- Original Message ----- From: Marc Weustink To: Sent: Wednesday, 05 July, 2000 10:34 Subject: RE: [lazarus] how to... > + From: Pavlovic Ivan > > + > pfew... I'm not sure if the problems are related. The > + > missing fontname is indeed an error and the reason for > + > that is known. The code around it can handle it and > + > should not dump. > + > + OK... What do I do to code around it??? (where should I look > + for the error) > > You don't need to code around it. The error you see is probably not related > to the missing font, but somewhere further in the code. The error message is > the last one you see. > > + > + > - can you remake lazarus with the trace option and look if > + > the output is different ? > + > + The output look pretty much the same... I can send you what it wrote if > you > + want... > > Please send it to > > Marc > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Pavlovic Ivan
to Marc Weustink: + From: Pavlovic Ivan + > pfew... I'm not sure if the problems are related. The + >…

Here's the output... I missed the "-" sign :(((

This time I even saw the splash screen for about half a second :)

Pavlovic Ivan
---------------------------------
E-mail:
----------

Homepage:
----------
www.tisoft.cjb.net

Earlier message 225 lines
----- Original Message ----- From: Marc Weustink To: Sent: Wednesday, 05 July, 2000 10:34 Subject: RE: [lazarus] how to... > + From: Pavlovic Ivan > > + > pfew... I'm not sure if the problems are related. The > + > missing fontname is indeed an error and the reason for > + > that is known. The code around it can handle it and > + > should not dump. > + > + OK... What do I do to code around it??? (where should I look > + for the error) > > You don't need to code around it. The error you see is probably not related > to the missing font, but somewhere further in the code. The error message is > the last one you see. > > + > + > - can you remake lazarus with the trace option and look if > + > the output is different ? > + > + The output look pretty much the same... I can send you what it wrote if > you > + want... > > Please send it to > > Marc > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > Message recieved Compiler Options Class Created in TWinControl Constructor TWinControl Constructor inherited create complete Message recieved [TgtkObject.IntSendMessage3] TSPLASHFORM --> Sent LM_Message: $101B (LM_SetColor); Data: 0 [TWinControl.WMWindowPosChanged] TSPLASHFORM [TControl.WMWindowPosChanged] TSPLASHFORM [TWinControl.WMWindowPosChanged] TSPLASHFORM [TControl.WMWindowPosChanged] TSPLASHFORM [TWinControl.WMWindowPosChanged] TSPLASHFORM [TControl.WMWindowPosChanged] TSPLASHFORM [TWinControl.WMWindowPosChanged] TSPLASHFORM [TControl.WMWindowPosChanged] TSPLASHFORM [TWinControl.WMWindowPosChanged] TSPLASHFORM [TControl.WMWindowPosChanged] TSPLASHFORM [TWinControl.WMWindowPosChanged] TSPLASHFORM [TControl.WMWindowPosChanged] TSPLASHFORM In TTimer.SetInterval SETTING TIMER CALLBACK Message recieved [TgtkObject.IntSendMessage3] TTIMER --> Sent LM_Message: $1001 (LM_Create); Data: 0 Callling CreateComponent In CreateComponet ----------------------Creating component in TgtkObject- STR = Unknown- 1 Creating a timer in CreateComponent Called CreateComponent In TTimer.SetEnabled Message recieved [TgtkObject.IntSendMessage3] TTIMER --> Sent LM_Message: $402 (Unkown message 0x402 (1026)); Data: 0 removing timer!!! [TWinControl.Show] TSPLASHFORM() Message recieved [TgtkObject.IntSendMessage3] TSPLASHFORM --> Sent LM_Message: $1001 (LM_Create); Data: 0 Callling CreateComponent In CreateComponet [TControl.GetText] <TControl.GetText> End ----------------------Creating component in TgtkObject- STR = Lazarus- 1 Called CreateComponent [TWinControl.AttachSignals] TSPLASHFORM [TGTKObject.SetCallback] TSPLASHFORM signal <destroy> [TGTKObject.SetCallback] TSPLASHFORM signal <show> [TGTKObject.SetCallback] TSPLASHFORM signal <hide> [TGTKObject.SetCallback] TSPLASHFORM signal <focus-in-event> [TGTKObject.SetCallback] TSPLASHFORM signal <focus-out-event> [TGTKObject.SetCallback] TSPLASHFORM signal <size-allocate> [TGTKObject.SetCallback] TSPLASHFORM signal <expose-event> [TGTKObject.SetCallback] TSPLASHFORM signal <draw> [TGTKObject.SetCallback] TSPLASHFORM signal <key-press-event> [TGTKObject.SetCallback] TSPLASHFORM signal <key-release-event> WARNING: [TGTKObject.SetCallback] TSPLASHFORM signal <key-press-event> set twice WARNING: [TGTKObject.SetCallback] TSPLASHFORM signal <key-release-event> set twice WARNING: [TGTKObject.SetCallback] TSPLASHFORM signal <key-press-event> set twice WARNING: [TGTKObject.SetCallback] TSPLASHFORM signal <key-release-event> set twice [TGTKObject.SetCallback] TSPLASHFORM signal <motion-notify-event> [TGTKObject.SetCallback] TSPLASHFORM signal <button-press-event> [TGTKObject.SetCallback] TSPLASHFORM signal <button-release-event> WARNING: [TGTKObject.SetCallback] TSPLASHFORM signal <button-press-event> set twice WARNING: [TGTKObject.SetCallback] TSPLASHFORM signal <button-release-event> set twice WARNING: [TGTKObject.SetCallback] TSPLASHFORM signal <button-press-event> set twice WARNING: [TGTKObject.SetCallback] TSPLASHFORM signal <button-release-event> set twice WARNING: [TGTKObject.SetCallback] TSPLASHFORM signal <button-press-event> set twice [TGTKObject.SetCallback] TSPLASHFORM signal <configure-event> [TGTKObject.SetCallback] TSPLASHFORM signal <delete-event> [TWinControl.InitializeWnd] TSPLASHFORM TODO: [TWinControl.InitializeWnd] move this code to the interface Message recieved [TgtkObject.IntSendMessage3] TSPLASHFORM --> Sent LM_Message: $1008 (LM_Setsize); Data: -1073745348 [TgtkObject.IntSendMessage3] TSPLASHFORM --> LM_SetSize(1, 1, 240, 180) [TgtkObject.ResizeChild] TSPLASHFORM --> Resize Message recieved [TgtkObject.IntSendMessage3] TSPLASHFORM --> Sent LM_Message: $100E (LM_ShowHide); Data: 0 [TgtkObject.IntSendMessage3] TSPLASHFORM --> Show/Hide Event [size-allocate] fired for TSPLASHFORM [gtksize_allocateCB] TSPLASHFORM --> X: 1, Y: 1, Width: 240, Height: 180 [gtksize_allocateCB] DeliverMessage LM_WINDOWPOSCHANGED [TWinControl.WMWindowPosChanged] TSPLASHFORM [TControl.WMWindowPosChanged] TSPLASHFORM [gtksize_allocateCB] DeliverMessage LM_SIZE [gtksize_allocateCB] DeliverMessage LM_MOVE Event [realize] fired Event [show] fired for TSPLASHFORM LM_SHOWWINDOW RECEIVED!!!!!!!!!!! [TCustomForm.LMShowWindow] Show TSPLASHFORM Message recieved [TgtkObject.IntSendMessage3] TSPLASHFORM --> Sent LM_Message: $101B (LM_SetColor); Data: 0 [TgtkObject.SetBKColor] [TgtkObject.IsValidDC] got --> False Message recieved [TgtkObject.IntSendMessage3] TSPLASHFORM --> Sent LM_Message: $1002 (LM_SetLabel); Data: 135362856 [TControl.GetText] <TControl.GetText> End [TgtkObject.SetLabel] TSPLASHFORM --> label Lazarus Setting Str1 in SetLabel [TgtkObject.SetLabel] TSPLASHFORM --> END SETPROP********************************************** [TCustomForm.CreateWnd] FMenu.HandleNeeded Message recieved [TgtkObject.IntSendMessage3] TSPLASHFORM --> Sent LM_Message: $100E (LM_ShowHide); Data: 0 [TgtkObject.IntSendMessage3] TSPLASHFORM --> Show/Hide [TgtkObject.GetSystemMetrics] [TgtkObject.GetSystemMetrics] Message recieved [TgtkObject.IntSendMessage3] TSPLASHFORM --> Sent LM_Message: $1008 (LM_Setsize); Data: -1073744884 [TgtkObject.IntSendMessage3] TSPLASHFORM --> LM_SetSize(392, 294, 240, 180) [TgtkObject.ResizeChild] TSPLASHFORM --> Resize [TgtkObject.CreateCompatibleDC] [TgtkObject.IsValidDC] got --> False [TgtkObject.IsValidDC] got --> False [TgtkObject.IsValidGDIObject] got --> False [TgtkObject.SelectObject] Bitmap [TgtkObject.CreateBrushIndirect] Style: 0, Color: FFFFFF [TgtkObject.CreateBrushIndirect] Allocated R: FFFF, G: FFFF, B: FFFF [TgtkObject.CreateBrushIndirect] Got --> 8118C94 [TgtkObject.IsValidDC] got --> False [TgtkObject.IsValidGDIObject] got --> False [TgtkObject.SelectObject] Brush [TgtkObject.GetDC] Got 0x8118C44 ERROR: [TgtkObject.CreateFontIndirect] No fontname [TgtkObject.IsValidDC] got --> False [TgtkObject.IsValidGDIObject] got --> False [TgtkObject.SetTextColor] [TgtkObject.IsValidDC] got --> False [TgtkObject.CreateBrushIndirect] Style: 0, Color: FFFFFF [TgtkObject.CreateBrushIndirect] Allocated R: FFFF, G: FFFF, B: FFFF [TgtkObject.CreateBrushIndirect] Got --> 8118E24 [TgtkObject.IsValidDC] got --> False [TgtkObject.IsValidGDIObject] got --> False [TgtkObject.SelectObject] Brush [TgtkObject.IsValidDC] got --> False [TgtkObject.IsValidDC] got --> False in TWinControl Constructor TWinControl Constructor inherited create complete Message recieved [TgtkObject.IntSendMessage3] TFORM1 --> Sent LM_Message: $101B (LM_SetColor); Data: 0 [TWinControl.WMWindowPosChanged] TFORM1 [TControl.WMWindowPosChanged] TFORM1 [TWinControl.WMWindowPosChanged] TFORM1 [TControl.WMWindowPosChanged] TFORM1 [TWinControl.WMWindowPosChanged] TFORM1 [TControl.WMWindowPosChanged] TFORM1 [TWinControl.WMWindowPosChanged] TFORM1 [TControl.WMWindowPosChanged] TFORM1 [TWinControl.WMWindowPosChanged] TFORM1 [TControl.WMWindowPosChanged] TFORM1 [TWinControl.WMWindowPosChanged] TFORM1 [TControl.WMWindowPosChanged] TFORM1 [TgtkObject.GetSystemMetrics] [TWinControl.WMWindowPosChanged] TFORM1 [TControl.WMWindowPosChanged] TFORM1 [TWinControl.WMWindowPosChanged] TFORM1 [TControl.WMWindowPosChanged] TFORM1 An unhandled exception occurred at 0x080D8435 : Access violation 0x080D8435 0x080C1F7E 0x080CC6C6 0x080B1C87 0x080B1C28 0x080B230E 0x0000000D 0x00000001 An unhandled exception occurred at 0x080D5F6A : Access violation 0x080D5F6A 0x3020200C 0x00000000 An unhandled exception occurred at 0x54205D64 : Access violation 0x54205D64 0xBFFFF5B0 An unhandled exception occurred at 0x080D5F6A : Access violation 0x080D5F6A 0x3020200C 0x00000000 [TgtkObject.Destroy] WARNING: There are 2 unreleased DCs and 9 unreleased GDIObjects [TgtkObject.Destroy] WARNING: There are 2 messages left in the queue! I'll free them

Reply by email

Stefan Hille
to Marc Weustink: What's the output on your console. If it is a large bunch, can you mail them to me in…

Hi

Jean SUZINEAU wrote 7 lines
I experience a similar problem. I put at http://www.mars42.com/trace.txt the output I get with a make clean; make ide OPT=-dTRACE In ddd, I found that the exception occurs in TComponent constructor, at fpc/fcl/inc/compon.inc. I haven't found yet a way to display the call stack in ddd (is it possible ?),

Choose "Status" "Backtrace" from the menu

Show quoted text 8 lines
here is a call stack written by hand: TComponent.Create compon.inc:355 TMenu.Create menu.inc:13 TMainMenu.Create mainmenu.inc:13 TForm1.LoadMainMenu main.pp:670 TForm1.Create main.pp:202 TApplication.CreateForm application.inc:220 (Application.CreateForm( TForm1, Form1)) lazarus.pp:55

Hmm, I can't reproduce the crash but have experienced some strange behaviour of menus few days ago. In my case the menu will not always be displayed. May this be related?

bye,

Stefan

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Pavlovic Ivan
to Marc Weustink: What's the output on your console. If it is a large bunch, can you mail them to me in…
pfew... I'm not sure if the problems are related. The missing fontname is indeed an error and the reason for that is known. The code around it can handle it and should not dump.

OK... What do I do to code around it??? (where should I look for the error)

A few questions; - does the problem persis if you use xfs instead of xfstt

Yup.. It works the same whether the xfstt is installed or not...

- Do you have the latest sources of lazarus (I assume you did, but it

wasnt

clear from your previous message)

Yup.. I even downloaded the latest CVS of FPC and lazarus and it still doesn't work...

- can you remake lazarus with the trace option and look if the output is different ?

The output look pretty much the same... I can send you what it wrote if you want...

Pavlovic Ivan
---------------------------------
E-mail:
----------

Homepage:
----------
www.tisoft.cjb.net

Reply by email

Marc Weustink
to Marc Weustink: + From: Pavlovic Ivan + > pfew... I'm not sure if the problems are related. The + >…
Pavlovic Ivan wrote
Here's the output... I missed the "-" sign :((( This time I even saw the splash screen for about half a second :)

I got it reproduced, and lazarus crashes when creating the mainmenu object (LCL, not the GTK object). Somehow when calling is inherited TComponent.Create it dumps in TComponent.Setreference.

While debugging, it seems that SetReference calls TObject.FieldAddres(Name) where name = ''.
FieldAddress in its turn finds a FieldInfo^.Name which is also '' and returns the reference. I think this is strange. I'm not into the internals but I didn't expect an empty fieldInfo^.name.

Can anyone confirm my expectation ?

Marc

Reply by email

Pavlovic Ivan

I have just downloaded Lazarus (and am working on a translation of a homepage to Serbian) and the latest FPC from CVS... I managed to compile the source but whenever I start it the program just exits with a message that a font was not found or something like that (TGTKObject)... I'm using Gentus Linux (Red Hat 6.1 with a few add-ons) and have XFSTT package installed... What am I doing wrong???

Pavlovic Ivan
---------------------------------
E-mail:
----------

Homepage:
----------
www.tisoft.cjb.net

Reply by email

Marc Weustink
to Marc Weustink: What's the output on your console. If it is a large bunch, can you mail them to me in…
Pavlovic Ivan wrote 9 lines
Here's the error message I keep getting: ERROR: [TgtkObject.CreateFontIndirect] No fontname An unhandled exception occurred at 0x080C59BB : Access violation 0x080C59BB 0x00000000 What should I do to fix it?

pfew... I'm not sure if the problems are related. The missing fontname is indeed an error and the reason for that is known. The code around it can handle it and should not dump.

A few questions;
- does the problem persis if you use xfs instead of xfstt
- Do you have the latest sources of lazarus (I assume you did, but it wasnt clear from your previous message)
- can you remake lazarus with the trace option and look if the output is different ?

make clean
make ide OPT=-dTRACE

Marc

Reply by email

Pavlovic Ivan
to Marc Weustink: What's the output on your console. If it is a large bunch, can you mail them to me in…

Here's the error message I keep getting:

ERROR: [TgtkObject.CreateFontIndirect] No fontname An unhandled exception occurred at 0x080C59BB :
Access violation
0x080C59BB
0x00000000

An unhandled exception occurred at 0x080C5768 :
Access violation
0x080C5768
0x00000000

[TgtkObject.Destroy] WARNING: There are 2 unreleased DCs and 9 unreleased GDIObjects
[TgtkObject.Destroy] WARNING: There are 2 messages left in the queue! I'll free them

What should I do to fix it?

Pavlovic Ivan
---------------------------------
E-mail:
----------

Homepage:
----------
www.tisoft.cjb.net

Earlier message 30 lines
----- Original Message ----- From: Marc Weustink To: Sent: Saturday, 01 July, 2000 23:48 Subject: Re: [lazarus] how to... > At 20:23 01-07-2000 +0200, Pavlovic Ivan wrote: > >I have just downloaded Lazarus (and am working on a translation of a > >homepage to Serbian) and the latest FPC from CVS... I managed to compile the > >source but whenever I start it the program just exits with a message that a > >font was not found or something like that (TGTKObject)... I'm using Gentus > >Linux (Red Hat 6.1 with a few add-ons) and have XFSTT package installed... > >What am I doing wrong??? > > What's the output on your console. If it is a large bunch, can you mail > them to me in stead of putting them on the list ? > > Marc > > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Marc Weustink
to Pavlovic Ivan: I have just downloaded Lazarus (and am working on a translation of a homepage to Serbian)…
Pavlovic Ivan wrote 6 lines
I have just downloaded Lazarus (and am working on a translation of a homepage to Serbian) and the latest FPC from CVS... I managed to compile the source but whenever I start it the program just exits with a message that a font was not found or something like that (TGTKObject)... I'm using Gentus Linux (Red Hat 6.1 with a few add-ons) and have XFSTT package installed... What am I doing wrong???

What's the output on your console. If it is a large bunch, can you mail them to me in stead of putting them on the list ?

Marc

Reply by email

Marc Weustink
to Pavlovic Ivan: OK... What do I do to code around it??? (where should I look for the error) Yup.. It…

+ From: Pavlovic Ivan

+ > pfew... I'm not sure if the problems are related. The
+ > missing fontname is indeed an error and the reason for
+ > that is known. The code around it can handle it and
+ > should not dump.
+
+ OK... What do I do to code around it??? (where should I look
+ for the error)

You don't need to code around it. The error you see is probably not related to the missing font, but somewhere further in the code. The error message is the last one you see.

+
+ > - can you remake lazarus with the trace option and look if
+ > the output is different ?
+
+ The output look pretty much the same... I can send you what it wrote if you
+ want...

Please send it to

Marc

Reply by email

Jean SUZINEAU
to Marc Weustink: What's the output on your console. If it is a large bunch, can you mail them to me in…

I experience a similar problem.
I put at http://www.mars42.com/trace.txt the output I get with a make clean; make ide OPT=-dTRACE
In ddd, I found that the exception occurs in TComponent constructor, at fpc/fcl/inc/compon.inc.
I haven't found yet a way to display the call stack in ddd (is it possible ?), here is a call stack written by hand: TComponent.Create compon.inc:355
TMenu.Create menu.inc:13
TMainMenu.Create mainmenu.inc:13
TForm1.LoadMainMenu main.pp:670
TForm1.Create main.pp:202
TApplication.CreateForm application.inc:220
(Application.CreateForm( TForm1, Form1)) lazarus.pp:55

I updated from cvs this morning before compiling.

Marc Weustink a �crit :

Show quoted text 32 lines
At 00:29 02-07-2000 +0200, Pavlovic Ivan wrote: >Here's the error message I keep getting: > >ERROR: [TgtkObject.CreateFontIndirect] No fontname >An unhandled exception occurred at 0x080C59BB : >Access violation > 0x080C59BB > 0x00000000 > >What should I do to fix it? pfew... I'm not sure if the problems are related. The missing fontname is indeed an error and the reason for that is known. The code around it can handle it and should not dump. A few questions; - does the problem persis if you use xfs instead of xfstt - Do you have the latest sources of lazarus (I assume you did, but it wasnt clear from your previous message) - can you remake lazarus with the trace option and look if the output is different ? make clean make ide OPT=-dTRACE Marc _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email