Error reading PPP_Child.Icon.Data* The handle is invalid

kridevos Messages postés 1 Date d'inscription jeudi 27 juillet 2006 Statut Membre Dernière intervention 27 juillet 2006 - 27 juil. 2006 à 11:42
cs_shining Messages postés 304 Date d'inscription lundi 30 décembre 2002 Statut Membre Dernière intervention 10 mars 2012 - 27 juil. 2006 à 19:27
hello,

I'm a developer of a rather large program written in Delphi 5.
It works fine under NT4.0, 2000 and XP, but sometimes I receave some
strange errors like the stacktrace mentionned below.
A similar error can occur in all places in the application. If you restart
the application it may go without any problem, the next time it crashes.
I suppose it is type of memory leak that causes this, but I have no idea
where to start looking. Does anyone have had similar problems?
Usually the problem occurs while opening a new form (any form)

Maybe important: I changed the icon of each form (into the same image).

Any ideas are welcome

Kristof

**************************** UNHANDLED EXCEPTION ****************************
Error reading PPP_Child.Icon.Data* The handle is invalid.

[004209BF] Graphics.GDIError + *77
[00403A9E] System.@HandleFinally + *2A
[0040159E] System.AddBlockAfter + *6
[004216B4] Graphics.ReadIcon + *284
[004216C6] Graphics.ReadIcon + *296
[00403A9E] System.@HandleFinally + *2A
[00426A7D] Graphics.TIcon.HandleNeeded + *5D
[0041FFFE] Graphics.TCanvas.FillRect + *A
[004269E9] Graphics.TIcon.GetHandle + *5
[00456902] Forms.TCustomForm.GetIconHandle + *6
[004547D7] Forms.TCustomForm.IconChanged + *23
[00421BBB] Graphics.TGraphic.Changed + *13
[00426BF8] Graphics.TIcon.LoadFromStream + *AC
[00421E33] Graphics.TGraphic.ReadData + *7
[00418603] Classes.TReader.DefineBinaryProperty + *A7
[00403A9E] System.@HandleFinally + *2A
[00421C4C] Graphics.TGraphic.DefineProperties + *34
[00421EA0] Graphics.TGraphic.SetTransparent + *C
[00419611] Classes.TReader.ReadProperty + *12D
[00403A9E] System.@HandleFinally + *2A
[00419001] Classes.TReader.ReadDataInner + *15
[004036AF] System.@AfterConstruction + *3
[00418FB4] Classes.TReader.ReadData + *38
[00403A9E] System.@HandleFinally + *2A
[0041C89D] Classes.TComponent.ReadState + *1
[0043ABB5] Controls.TControl.ReadState + *2D
[0043DAF1] Controls.TWinControl.ReadState + *25
[00403A9E] System.@HandleFinally + *2A
[00454435] Forms.TCustomForm.ReadState + *59
[00403A9E] System.@HandleFinally + *2A
[00419DE1] Classes.TReader.ReadRootComponent + *1A1
[00403A9E] System.@HandleFinally + *2A
[0041778E] Classes.TStream.ReadComponent + *32
[00403A9E] System.@HandleFinally + *2A
[0041494F] Classes.InternalReadComponentRes + *57
[00403A9E] System.@HandleFinally + *2A
[00414AF9] Classes.InitComponent + *79
[00403A9E] System.@HandleFinally + *2A
[0041F8CF] Graphics.TBrush.SetData + *3F
[0043E731] Controls.TWinControl.Broadcast + *D
[0043E781] Controls.TWinControl.NotifyControls + *1D
[00440E16] Controls.TWinControl.CMColorChanged + *1E
[00455989] Forms.TCustomForm.CMColorChanged + *5
[0043C845] Controls.TControl.WndProc + *111
[0043F306] Controls.TWinControl.WndProc + *1D2
[004595BD] Forms.TScreen.GetImes + *1A5
[00414ABD] Classes.InitComponent + *3D
[00403A9E] System.@HandleFinally + *2A
[00454FE6] Forms.TCustomForm.WndProc + *3AA
[0043E731] Controls.TWinControl.Broadcast + *D
[0043C68C] Controls.TControl.Perform + *24
[0043B815] Controls.TControl.SetColor + *15
[004559E6] Forms.TCustomForm.CMCtl3DChanged + *26
[0043C845] Controls.TControl.WndProc + *111
[0043F306] Controls.TWinControl.WndProc + *1D2
[00414ABD] Classes.InitComponent + *3D
[00403A9E] System.@HandleFinally + *2A
[00459BC2] Forms.AlignWork + *22
[00459C08] Forms.TScreen.AlignForms + *10
[00402267] System.TryHarder + *BB
[004023EB] System.SysGetMem + *14B
[0040240E] System.SysGetMem + *16E
[0040365B] System.@ClassCreate + *7
[004036AF] System.@AfterConstruction + *3
[004032F0] System.TObject.Create + *10
[00414B8A] Classes.InitInheritedComponent + *62
[00403A9E] System.@HandleFinally + *2A
[00453DF1] Forms.TCustomForm.Create + *A1
[00403A9E] System.@HandleFinally + *2A
[0040258C] System.SysFreeMem + *164
[004025B4] System.SysFreeMem + *18C
[0040287C] System.@FreeMem + *4
[0040258C] System.SysFreeMem + *164
[004025B4] System.SysFreeMem + *18C
[0040258C] System.SysFreeMem + *164
[004025B4] System.SysFreeMem + *18C
[0040287C] System.@FreeMem + *4
[004032D5] System.TObject.FreeInstance + *1D
[0040B3F5] SysUtils.FileExists + *5
[0040258C] System.SysFreeMem + *164
[004025B4] System.SysFreeMem + *18C
[0040287C] System.@FreeMem + *4
[00404190] System.@LStrClr + *1C
[004D9EC2] Feedis_anc.TAnc_Feedis.SetLanguage (Line 249, "..\Units\Feedis_anc.pas" + 6) + *26
[004D9BCF] Feedis_anc.TAnc_Feedis.Create (Line 185, "..\Units\Feedis_anc.pas" + 4) + *6
[0074A143] UFrm_Agenda.ShowForm (Line 764, "Forms\Activity\Agenda\UFrm_Agenda.pas" + 5) + *9
[0063C0F8] GlobVars.ShowFormOrDialog (Line 1743, "Units\GlobVars.pas" + 5) + *19
[0094E9BF] UFrm_IslpAdmin.TFrm_IslpAdmin.actActAgendaExecute (Line 1471, "Forms\UFrm_IslpAdmin.pas" + 53) + *B
[00454FE6] Forms.TCustomForm.WndProc + *3AA
[0043C68C] Controls.TControl.Perform + *24
[0045C59F] Forms.TApplication.DispatchAction + *7F
[00452204] Forms.StdWndProc + *14
[00427542] Contnrs.TObjectList.GetItem + *A
[004276C2] Contnrs.TComponentList.GetItems + *A
[0057D27F] AppEvnts.TMultiCaster.GetAppEvents + *B
[0057CC85] AppEvnts.TMultiCaster.DoActionExecute + *41
[0041CDDF] Classes.TBasicAction.Execute + *F
[00446A3D] ActnList.TContainedAction.Execute + *31
[004472D6] ActnList.TCustomAction.Execute + *12
[0041CCE8] Classes.TBasicActionLink.Execute + *8
[0044C6B5] Menus.TMenuItem.Click + *51
[0044D7DF] Menus.TMenu.DispatchCommand + *13
[00456DE7] Forms.TCustomForm.WMCommand + *1F
[0043C845] Controls.TControl.WndProc + *111
[0043F306] Controls.TWinControl.WndProc + *1D2
[0043C68C] Controls.TControl.Perform + *24
[00454FE6] Forms.TCustomForm.WndProc + *3AA
[00415458] Classes.TThreadList.UnlockList + *4
[00423F7C] Graphics.FreeMemoryContexts + *98
[0043EF08] Controls.TWinControl.MainWndProc + *2C
[0043EF1D] Controls.TWinControl.MainWndProc + *41
[00454FE6] Forms.TCustomForm.WndProc + *3AA
[00415458] Classes.TThreadList.UnlockList + *4
[00423F7C] Graphics.FreeMemoryContexts + *98
[0043EF08] Controls.TWinControl.MainWndProc + *2C
[0043EF1D] Controls.TWinControl.MainWndProc + *41
[00452204] Forms.StdWndProc + *14
[00454FE6] Forms.TCustomForm.WndProc + *3AA
[00415458] Classes.TThreadList.UnlockList + *4
[00423F7C] Graphics.FreeMemoryContexts + *98
[0043EF08] Controls.TWinControl.MainWndProc + *2C
[00452204] Forms.StdWndProc + *14
[0045B273] Forms.TApplication.ProcessMessage + *83
[0045B2AA] Forms.TApplication.HandleMessage + *A
[0045B4B5] Forms.TApplication.Run + *81
[00A496A1] LoginProcedures.StartupISLPAdminInternal (Line 181, "Units\LoginProcedures.pas" + 138) + *7
[00A4900E] LoginProcedures.StartupISLPAdmin (Line 32, "Units\LoginProcedures.pas" + 2) + *0
[00B23067] Islp_ppp.Islp_ppp (Line 517, "D*\Projects\Ppp\Islp_ppp.dpr" + 1) + *0
*****************************************************************************
A voir également:

1 réponse

cs_shining Messages postés 304 Date d'inscription lundi 30 décembre 2002 Statut Membre Dernière intervention 10 mars 2012
27 juil. 2006 à 19:27
Hi kridevos,
I'm sorry but we can't help you with this few's informations because you have many units in your project, and you are not supply enough code samples

maybe you have a bad pointer/handle with the graphic procedure

your log shown one problem between memories management and graphic management

I think the best solution is replacing every icons by PNG files with this component http://www.thany.org/article/32/PngComponents, It's the first step and of course you must to find where is the problem of ...

I wish you have a lot of spunk :)
0
Rejoignez-nous