ReportBuilder 14.02 FastMM reporting an attempt to call a virtual method on a freed object.
Hello,
To reproduce the error follow these steps. Obviously the full FastMM
debugging will need to be installed.
Open report in designer.
go to preview page.
output report to HTML
close the designer.
error shown.
This one, I can't see where to fix it myself so I would appreciate a
fix as soon as possible please.
Regards,
Will.
FastMM report below.
FastMM has detected an attempt to call a virtual method on a freed
object. An access violation will now be raised in order to abort the
current operation.
Freed object class: TppCommunicator
Virtual method: Offset +100
Virtual method address: BA21AC
The allocation number was: 511391
The object was allocated by thread 0xEB0, and the stack trace (return
addresses) at the time was:
4030EE [System][System.@GetMem]
40493F [System][System.TObject.NewInstance]
404D0E [System][System.@ClassCreate]
BA1C16 [ppComm.pas][ppComm][ppComm.TppCommunicator.Create][398]
CA8293 [ppViewr.pas][ppViewr][ppViewr.TppViewer.Create][431]
BE2F2E
[ppPreview.pas][ppPreview][ppPreview.TppCustomPreview.Create][424]
404948 [System][System.TObject.NewInstance]
404D0E [System][System.@ClassCreate]
BE3A63 [ppPreview.pas][ppPreview][ppPreview.TppPreview.Create][909]
40B89E [FastMM4][FastMM4.FastFreeMem]
BE2EAE
[ppPreview.pas][ppPreview][ppPreview.TppPreviewPlugIn.CreatePreviewPlugi
n][355]
The object was subsequently freed by thread 0xEB0, and the stack trace
(return addresses) at the time was:
40310A [System][System.@FreeMem]
40495D [System][System.TObject.FreeInstance]
404D59 [System][System.@ClassDestroy]
BA1CD8 [ppComm.pas][ppComm][ppComm.TppCommunicator.Destroy][446]
4049A3 [System][System.TObject.Free]
CA8329 [ppViewr.pas][ppViewr][ppViewr.TppViewer.Destroy][445]
4BA90A [Controls][Controls.TCustomControl.Destroy]
4B3A64 [Controls][Controls.TWinControl.Destroy]
4BA90A [Controls][Controls.TCustomControl.Destroy]
4049A3 [System][System.TObject.Free]
DD1D22
[ppDsgner.pas][ppDsgner][ppDsgner.TppDesignerWindow.FreeDesignModules][5
62]
The current thread ID is 0xEB0, and the stack trace (return addresses)
leading to this error is:
BA2181 [ppComm.pas][ppComm][ppComm.TppCommunicator.SendEventNotify][770]
CB1E75
[ppProd.pas][ppProd][ppProd.TppProducer.TriggerCodeModuleDestroy][2541]
C45612
[ppClass.pas][ppClass][ppClass.TppCustomReport.TriggerCodeModuleDestroy]
[4226]
404DB8 [System][System.@BeforeDestruction]
C5B208 [ppReport.pas][ppReport][ppReport.TppReport.Destroy][936]
43D37E [Classes][Classes.TComponent.DestroyComponents]
43D174 [Classes][Classes.TComponent.Destroy]
43E4AB [Classes][Classes.TDataModule.Destroy]
43E4C3 [Classes][Classes.TDataModule.Destroy]
F40C80
[chtmReportEngine.pas][chtmReportEngine][chtmReportEngine.TDMChtmReportE
ngine.Destroy][763]
4049A3 [System][System.TObject.Free]
Current memory dump of 256 bytes starting at pointer address 7F588650:
1C 2E 24 01 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 00 84 1E 76
80 80 80 80 80 80 80 80 00 00 00 00 F1 87 58 7F 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
A8 D3 07 00 EE 30 40 00 3F 49 40 00 0E 4D 40 00 EA E9 4B 00 68 8A 4F 00
D4 95 4F 00 C8 5F BE 00
B1 3E BE 00 B9 3A BE 00 AE 2E BE 00 8C 74 DC 00 B0 0E 00 00 0A 31 40 00
5D 49 40 00 59 4D 40 00
92 EA 4B 00 A3 49 40 00 21 97 4F 00 C1 60 BE 00 0A A9 4B 00 64 3A 4B 00
0A A9 4B 00 A3 49 40 00
. . $ . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? . ? . v
? ? ? ? ? ? ? ? . . . . ñ ? X . . . . . . . .
. . . . . . . .
¨ Ó . . î 0 @ . ? I @ . . M @ . ê é K . h ? O .
Ô ? O . È _ ¾ .
± > ¾ . ¹ : ¾ . ® . ¾ . ? t Ü . ° . . . . 1 @ .
] I @ . Y M @ .
? ê K . £ I @ . ! ? O . Á ` ¾ . . © K . d : K .
. © K . £ I @ .
To reproduce the error follow these steps. Obviously the full FastMM
debugging will need to be installed.
Open report in designer.
go to preview page.
output report to HTML
close the designer.
error shown.
This one, I can't see where to fix it myself so I would appreciate a
fix as soon as possible please.
Regards,
Will.
FastMM report below.
FastMM has detected an attempt to call a virtual method on a freed
object. An access violation will now be raised in order to abort the
current operation.
Freed object class: TppCommunicator
Virtual method: Offset +100
Virtual method address: BA21AC
The allocation number was: 511391
The object was allocated by thread 0xEB0, and the stack trace (return
addresses) at the time was:
4030EE [System][System.@GetMem]
40493F [System][System.TObject.NewInstance]
404D0E [System][System.@ClassCreate]
BA1C16 [ppComm.pas][ppComm][ppComm.TppCommunicator.Create][398]
CA8293 [ppViewr.pas][ppViewr][ppViewr.TppViewer.Create][431]
BE2F2E
[ppPreview.pas][ppPreview][ppPreview.TppCustomPreview.Create][424]
404948 [System][System.TObject.NewInstance]
404D0E [System][System.@ClassCreate]
BE3A63 [ppPreview.pas][ppPreview][ppPreview.TppPreview.Create][909]
40B89E [FastMM4][FastMM4.FastFreeMem]
BE2EAE
[ppPreview.pas][ppPreview][ppPreview.TppPreviewPlugIn.CreatePreviewPlugi
n][355]
The object was subsequently freed by thread 0xEB0, and the stack trace
(return addresses) at the time was:
40310A [System][System.@FreeMem]
40495D [System][System.TObject.FreeInstance]
404D59 [System][System.@ClassDestroy]
BA1CD8 [ppComm.pas][ppComm][ppComm.TppCommunicator.Destroy][446]
4049A3 [System][System.TObject.Free]
CA8329 [ppViewr.pas][ppViewr][ppViewr.TppViewer.Destroy][445]
4BA90A [Controls][Controls.TCustomControl.Destroy]
4B3A64 [Controls][Controls.TWinControl.Destroy]
4BA90A [Controls][Controls.TCustomControl.Destroy]
4049A3 [System][System.TObject.Free]
DD1D22
[ppDsgner.pas][ppDsgner][ppDsgner.TppDesignerWindow.FreeDesignModules][5
62]
The current thread ID is 0xEB0, and the stack trace (return addresses)
leading to this error is:
BA2181 [ppComm.pas][ppComm][ppComm.TppCommunicator.SendEventNotify][770]
CB1E75
[ppProd.pas][ppProd][ppProd.TppProducer.TriggerCodeModuleDestroy][2541]
C45612
[ppClass.pas][ppClass][ppClass.TppCustomReport.TriggerCodeModuleDestroy]
[4226]
404DB8 [System][System.@BeforeDestruction]
C5B208 [ppReport.pas][ppReport][ppReport.TppReport.Destroy][936]
43D37E [Classes][Classes.TComponent.DestroyComponents]
43D174 [Classes][Classes.TComponent.Destroy]
43E4AB [Classes][Classes.TDataModule.Destroy]
43E4C3 [Classes][Classes.TDataModule.Destroy]
F40C80
[chtmReportEngine.pas][chtmReportEngine][chtmReportEngine.TDMChtmReportE
ngine.Destroy][763]
4049A3 [System][System.TObject.Free]
Current memory dump of 256 bytes starting at pointer address 7F588650:
1C 2E 24 01 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 00 84 1E 76
80 80 80 80 80 80 80 80 00 00 00 00 F1 87 58 7F 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
A8 D3 07 00 EE 30 40 00 3F 49 40 00 0E 4D 40 00 EA E9 4B 00 68 8A 4F 00
D4 95 4F 00 C8 5F BE 00
B1 3E BE 00 B9 3A BE 00 AE 2E BE 00 8C 74 DC 00 B0 0E 00 00 0A 31 40 00
5D 49 40 00 59 4D 40 00
92 EA 4B 00 A3 49 40 00 21 97 4F 00 C1 60 BE 00 0A A9 4B 00 64 3A 4B 00
0A A9 4B 00 A3 49 40 00
. . $ . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? . ? . v
? ? ? ? ? ? ? ? . . . . ñ ? X . . . . . . . .
. . . . . . . .
¨ Ó . . î 0 @ . ? I @ . . M @ . ê é K . h ? O .
Ô ? O . È _ ¾ .
± > ¾ . ¹ : ¾ . ® . ¾ . ? t Ü . ° . . . . 1 @ .
] I @ . Y M @ .
? ê K . £ I @ . ! ? O . Á ` ¾ . . © K . d : K .
. © K . £ I @ .
This discussion has been closed.
Comments
Which version of Delphi and FastMM are you using? In my testing with
Delphi XE and the latest version of FastMM (4.99) I was unable to get
any errors when following your exact steps below.
Is it possible that certain report components can be causing this?
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I am using BDS2006 and FastMM 4.94. I have upgraded to 4.99 now but the
same error persists. The report I'm using contains a single label
component.
The report can contain just a single label and the error will occur.
Regards,
Will.
minimal application to create this? Are you able to see this behavior
on all machines? Are you perhaps able to recreate this error using the
end-user demo?
To be sure FastMM is working correctly I purposely created a memory leak
and it was detected.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I try migrate my product on RB 14.2 (D-XE) from 12.5 (D-XE)
In first my test I detect the similar problem.
FastMM report below.
I try send additional information for you some more later.
Regards,
Dima.
--------------------------------2012/1/13
11:24:38--------------------------------
FastMM has detected an attempt to call a virtual method on a freed object.
An access violation will now be raised in order to abort the current
operation.
Freed object class: TppCommunicator
Virtual method: Offset +104
Virtual method address: 99F3A8
The allocation number was: 1539137
The object was allocated by thread 0xD94, and the stack trace (return
addresses) at the time was:
5003754A [System.pas][System][System.@GetMem][3693]
A453AA [Pppreview][TppCustomPreview]
A45F0F [Pppreview][TppPreview]
A452FB [Pppreview][TppPreviewPlugIn.CreatePreviewPlugin]
BD881D [Ppdsgner][TppDesignerWindow.SetPageActive]
BD7BCD [Ppdsgner][TppDesignerWindow.ehNotebook_OnTabChanging]
BA0846 [Pptabbednotebook][TppTabbedNoteBook.ehTabSet_OnTabChange]
B9D990 [Ppjvtabbar][TppJvCustomTabBar.TabSelecting]
5027E5C9 [Controls.pas][Controls][Controls.TControl.DoMouseDown][7213]
5027E618 [Controls.pas][Controls][Controls.TControl.WMLButtonDown][7224]
50282835 [Controls.pas][Controls][Controls.TWinControl.WndProc][9831]
The object was subsequently freed by thread 0xD94, and the stack trace
(return addresses) at the time was:
50037566 [System.pas][System][System.@FreeMem][3768]
C93E638
[isCustomViewReportFrame.pas][isCustomViewReportFrame][TCustomViewReportFrame.DesignActionExecute][695]
500AED72 [Classes.pas][Classes][Classes.TBasicAction.Execute][12988]
502A0DCC [Menus.pas][Menus][Menus.TPopupList.MainWndProc][4471]
500AFA66 [Classes.pas][Classes][Classes.StdWndProc][13491]
7683C4E7 [Unknown function at gapfnScSendMessage]
7683C5E7 [Unknown function at gapfnScSendMessage]
7683CC19 [Unknown function at gapfnScSendMessage]
7683CC70 [DispatchMessageW]
50358AFC [Forms.pas][Forms][Forms.TApplication.ProcessMessage][9760]
The current thread ID is 0x1008, and the stack trace (return addresses)
leading to this error is:
99F37D [Ppcomm][TppCommunicator.SendEventNotify]
A50FAB [Ppreport][TppReport.DoAfterOpenDataPipelines]
99F37D [Ppcomm][TppCommunicator.SendEventNotify]
A2C690 [Ppengine][TppEngine.Init]
AF81A7 [Ppdevice][TppPublisher.DoOnPageRequest]
AF8DD6 [Ppdevice][TppDevice.MakePageRequest]
A336FC [Ppthreadedpagecache][TppPageRequestThread.ExecuteReport]
A33681 [Ppthreadedpagecache][TppPageRequestThread.Execute]
5003BF42 [System.pas][System][System.ThreadWrapper][16524]
77F0ED6C [BaseThreadInitThunk]
77DD37F5 [Unknown function at RtlInitializeExceptionChain]
Current memory dump of 256 bytes starting at pointer address 7E2B8F40:
20 46 45 00 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
80 80 80 80 80 80 80
80 80 80 80 80 80 80 80 80 80 80 80 19 A8 AF C4 80 80 80 80 80 80 80 80 00
00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 36 73 00 00 F4 C2 44 00 30 03 C3 7E 00
BD 2B 7E 08 00 00 00
F E . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? . ? ? ? ? ? ? ? ? ? ? ? .
. . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . .
. . . . . . . . . . . . 6 s . . ? ? D . 0 . ? ~ .
? + ~ . . . .
On Thu, 22 Dec 2011 19:06:21 +0300, Nico Cizik (Digital Metaphors)
If possible, please send an app I can run here that causes the issue to
support@digital-metaphors.com and we'll take a look at it for you.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com