Page 1 of 1

Invalid class type cast

Posted: Mon Oct 27, 2014 12:22 pm
by alexandreq
Hello Sergey,

I updated to the last version and I am having the following error:

Invalid class type cast

I use DBSRichViewEdit with FIREBIRD on a field that its typecast is binary Blob.

The version that I had v5.9.5 wasn't giving me the error.

What should it be?

This error happens when I close the form, even without saving anything, just open the text from my database and display it and aftter closing the form.

Posted: Tue Oct 28, 2014 1:00 pm
by Sergey Tkachenko
Can you find which line of TRichView code generates this error?

Posted: Fri Oct 31, 2014 6:08 pm
by alexandreq
Hello Sergey,

I have installed madexcept in my delphi and I got the error in a report, maybe it can be useful for you.

I noticed that it only happen when I close the window through close button.

please, take a look at it whether the report gives you a clue

Code: Select all

date/time          : 2014-10-31, 16:01:09, 645ms
computer name      : ALEXANDRE-PC
user name          : alexandre
registered owner   : alexandre
operating system   : Windows 7 x64 Service Pack 1 build 7601
system language    : Portuguese
system up time     : 1 day 3 hours
program up time    : 39 seconds
processors         : 4x Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
physical memory    : 1053/6056 MB (free/total)
free disk space    : (C:) 87,64 GB
display mode       : 1920x1080, 32 bit
process id         : $1d68
allocated memory   : 125,61 MB
largest free block : 787,83 MB
executable         : PopCornWords.exe
exec. date/time    : 2014-10-31 16:00
version            : 1.0.0.0
compiled with      : Delphi XE4
madExcept version  : 4.0.10
contact name       : alexandre
contact email      : alexandrenicolas@bol.com.br
callstack crc      : $7dc89b5b, $d2b89069, $e951871a
exception number   : 1
exception class    : EInvalidCast
exception message  : Invalid class typecast.

main thread ($1ea8):
0123f5b1 +03d PopCornWords.exe RVEdit              4981   +4 TCustomRichViewEdit.GetRootEditor
0136f082 +012 PopCornWords.exe SclRView           19460   +1 TSRichViewEdit.DoOnRVRepaint
013404b7 +01f PopCornWords.exe SclRView            3615   +1 TRVSRVInterface.DoOnRepaint
0129f982 +06e PopCornWords.exe RichView            5292   +5 TCustomRichView.Invalidate
005cb1fa +002 PopCornWords.exe Vcl.Controls                  TControl.CMColorChanged
005d128d +005 PopCornWords.exe Vcl.Controls                  TWinControl.CMColorChanged
0129f0a5 +035 PopCornWords.exe RichView            4961   +3 TCustomRichView.CMColorChanged
005ca61d +2bd PopCornWords.exe Vcl.Controls                  TControl.WndProc
005cf0d9 +5c5 PopCornWords.exe Vcl.Controls                  TWinControl.WndProc
0129fd48 +0bc PopCornWords.exe RichView            5388  +18 TCustomRichView.WndProc
005ca258 +024 PopCornWords.exe Vcl.Controls                  TControl.Perform
005c8f1f +043 PopCornWords.exe Vcl.Controls                  TControl.SetColor
01387345 +219 PopCornWords.exe DBRV                 613  +29 PaintRVCopy
013884ad +039 PopCornWords.exe DBRV                1239   +2 TDBRichViewEdit.Paint
005d4f97 +057 PopCornWords.exe Vcl.Controls                  TCustomControl.PaintWindow
005cf2a5 +055 PopCornWords.exe Vcl.Controls                  TWinControl.PaintHandler
005cfa98 +048 PopCornWords.exe Vcl.Controls                  TWinControl.WMPaint
005d4f31 +011 PopCornWords.exe Vcl.Controls                  TCustomControl.WMPaint
005ca61d +2bd PopCornWords.exe Vcl.Controls                  TControl.WndProc
005cf0d9 +5c5 PopCornWords.exe Vcl.Controls                  TWinControl.WndProc
0129fd48 +0bc PopCornWords.exe RichView            5388  +18 TCustomRichView.WndProc
005ca258 +024 PopCornWords.exe Vcl.Controls                  TControl.Perform
005cf9cf +1df PopCornWords.exe Vcl.Controls                  TWinControl.PaintTo
005cfa0c +21c PopCornWords.exe Vcl.Controls                  TWinControl.PaintTo
0078a86b +2ab PopCornWords.exe sVclUtils            267  +35 SkinPaintTo
0078a57d +0f5 PopCornWords.exe sVclUtils            217  +10 PaintChildCtrls
0078a876 +2b6 PopCornWords.exe sVclUtils            272  +40 SkinPaintTo
007c9cf2 +07a PopCornWords.exe sSkinProvider       1428   +5 GetFormImage
007e0cbf +0ab PopCornWords.exe sSkinProvider       7667  +12 TsSkinProvider.AC_WMClose
007cf966 +7d2 PopCornWords.exe sSkinProvider       3202 +137 TsSkinProvider.NewWndProc
005ce71c +02c PopCornWords.exe Vcl.Controls                  TWinControl.MainWndProc
0054ab08 +014 PopCornWords.exe System.Classes                StdWndProc
77530107 +02b ntdll.dll                                      KiUserCallbackDispatcher
758f0d48 +016 USER32.dll                                     CallWindowProcW
005cf1ea +0e6 PopCornWords.exe Vcl.Controls                  TWinControl.DefaultHandler
006be3be +05a PopCornWords.exe Vcl.Forms                     TCustomForm.DefaultHandler
005d0ee5 +0a1 PopCornWords.exe Vcl.Controls                  TWinControl.WMSysCommand
006bf47d +055 PopCornWords.exe Vcl.Forms                     TCustomForm.WMSysCommand
005ca61d +2bd PopCornWords.exe Vcl.Controls                  TControl.WndProc
005cf0d9 +5c5 PopCornWords.exe Vcl.Controls                  TWinControl.WndProc
006bc045 +60d PopCornWords.exe Vcl.Forms                     TCustomForm.WndProc
007e1892 +a86 PopCornWords.exe sSkinProvider       7900 +204 TsSkinProvider.AC_WMSysCommand
007cf872 +6de PopCornWords.exe sSkinProvider       3146  +81 TsSkinProvider.NewWndProc
005ce71c +02c PopCornWords.exe Vcl.Controls                  TWinControl.MainWndProc
0054ab08 +014 PopCornWords.exe System.Classes                StdWndProc
77530107 +02b ntdll.dll                                      KiUserCallbackDispatcher
758e96c0 +047 USER32.dll                                     SendMessageW
007dd42c +0ec PopCornWords.exe sSkinProvider       6589   +9 TsSkinProvider.AC_WMLButtonUp
007cf912 +77e PopCornWords.exe sSkinProvider       3162  +97 TsSkinProvider.NewWndProc
005ce71c +02c PopCornWords.exe Vcl.Controls                  TWinControl.MainWndProc
0054ab08 +014 PopCornWords.exe System.Classes                StdWndProc
77530107 +02b ntdll.dll                                      KiUserCallbackDispatcher
758e96c0 +047 USER32.dll                                     SendMessageW
007e9422 +9c6 PopCornWords.exe sSkinProvider      10395 +165 TacBorderForm.BorderProc
005ce71c +02c PopCornWords.exe Vcl.Controls                  TWinControl.MainWndProc
0054ab08 +014 PopCornWords.exe System.Classes                StdWndProc
758e7885 +00a USER32.dll                                     DispatchMessageW
006c56d3 +0f3 PopCornWords.exe Vcl.Forms                     TApplication.ProcessMessage
006c5716 +00a PopCornWords.exe Vcl.Forms                     TApplication.HandleMessage
006c0aa9 +1a1 PopCornWords.exe Vcl.Forms                     TCustomForm.ShowModal
015e7c13 +03f PopCornWords.exe ULibFuncaoComumSYS   686   +4 ChamaEditorTexto
016defaf +1df PopCornWords.exe UMenu                949  +31 TFmenu.MenuBarItemClick
0169a552 +07e PopCornWords.exe InspectorBar        6463   +9 TInspectorBar.ItemClicked
016914e2 +716 PopCornWords.exe InspectorBar        3521 +119 TInspectorBar.MouseDownSinglePanel
01692df7 +283 PopCornWords.exe InspectorBar        3964  +53 TInspectorBar.MouseDown
005cac60 +08c PopCornWords.exe Vcl.Controls                  TControl.DoMouseDown
005cacaf +03f PopCornWords.exe Vcl.Controls                  TControl.WMLButtonDown
005ca61d +2bd PopCornWords.exe Vcl.Controls                  TControl.WndProc
005cf0d9 +5c5 PopCornWords.exe Vcl.Controls                  TWinControl.WndProc
016a35fc +050 PopCornWords.exe InspectorBar        9874  +11 TInspectorBar.WndProc
005ce71c +02c PopCornWords.exe Vcl.Controls                  TWinControl.MainWndProc
0054ab08 +014 PopCornWords.exe System.Classes                StdWndProc
758e7885 +00a USER32.dll                                     DispatchMessageW
006c56d3 +0f3 PopCornWords.exe Vcl.Forms                     TApplication.ProcessMessage
006c5716 +00a PopCornWords.exe Vcl.Forms                     TApplication.HandleMessage
006c0aa9 +1a1 PopCornWords.exe Vcl.Forms                     TCustomForm.ShowModal
015ebcd2 +126 PopCornWords.exe UFundoSYS            110  +34 TFfundoSYS.Timer1Timer
0065fc3b +00f PopCornWords.exe Vcl.ExtCtrls                  TTimer.Timer
0065fb1f +02b PopCornWords.exe Vcl.ExtCtrls                  TTimer.WndProc
0054ab08 +014 PopCornWords.exe System.Classes                StdWndProc
758e7885 +00a USER32.dll                                     DispatchMessageW
006c56d3 +0f3 PopCornWords.exe Vcl.Forms                     TApplication.ProcessMessage
006c5716 +00a PopCornWords.exe Vcl.Forms                     TApplication.HandleMessage
006c5a51 +0c9 PopCornWords.exe Vcl.Forms                     TApplication.Run
017462ce +072 PopCornWords.exe PopCornWords         184   +7 initialization
75723368 +010 kernel32.dll                                   BaseThreadInitThunk

thread $570:
77540156 +0e ntdll.dll     NtWaitForMultipleObjects
75723368 +10 kernel32.dll  BaseThreadInitThunk

thread $1c40:
77541f3f +0b ntdll.dll     NtWaitForWorkViaWorkerFactory
75723368 +10 kernel32.dll  BaseThreadInitThunk

thread $1f38:
77541f3f +0b ntdll.dll     NtWaitForWorkViaWorkerFactory
75723368 +10 kernel32.dll  BaseThreadInitThunk

thread $1ed4:
77541f3f +0b ntdll.dll     NtWaitForWorkViaWorkerFactory
75723368 +10 kernel32.dll  BaseThreadInitThunk

thread $1034 (TAssistantDirector):
7753f8ca +0e ntdll.dll                               NtWaitForSingleObject
75441497 +92 KERNELBASE.dll                          WaitForSingleObjectEx
7572118f +3e kernel32.dll                            WaitForSingleObjectEx
75721143 +0d kernel32.dll                            WaitForSingleObject
010988a3 +13 PopCornWords.exe oaDirect        449 +3 TAssistantDirector.Execute
004afad3 +2b PopCornWords.exe madExcept              HookedTThreadExecute
00546fc6 +42 PopCornWords.exe System.Classes         ThreadProc
0040b350 +28 PopCornWords.exe System         4063 +0 ThreadWrapper
004af9b9 +0d PopCornWords.exe madExcept              CallThreadProcSafe
004afa1e +32 PopCornWords.exe madExcept              ThreadExceptFrame
75723368 +10 kernel32.dll                            BaseThreadInitThunk
>> created by main thread ($1ea8) at:
01098706 +1e PopCornWords.exe oaDirect        401 +1 TAssistantDirector.Create

thread $1bb0 (TAssistantEngine):
7753f8ca +0e ntdll.dll                               NtWaitForSingleObject
75441497 +92 KERNELBASE.dll                          WaitForSingleObjectEx
7572118f +3e kernel32.dll                            WaitForSingleObjectEx
75721143 +0d kernel32.dll                            WaitForSingleObject
01096c0b +23 PopCornWords.exe oaEngine        505 +4 TAssistantEngine.Execute
004afad3 +2b PopCornWords.exe madExcept              HookedTThreadExecute
00546fc6 +42 PopCornWords.exe System.Classes         ThreadProc
0040b350 +28 PopCornWords.exe System         4063 +0 ThreadWrapper
004af9b9 +0d PopCornWords.exe madExcept              CallThreadProcSafe
004afa1e +32 PopCornWords.exe madExcept              ThreadExceptFrame
75723368 +10 kernel32.dll                            BaseThreadInitThunk
>> created by main thread ($1ea8) at:
01095f86 +1e PopCornWords.exe oaEngine        110 +1 TAssistantEngine.Create

thread $d98:
7753f8ca +0e ntdll.dll                  NtWaitForSingleObject
75441497 +92 KERNELBASE.dll             WaitForSingleObjectEx
7572118f +3e kernel32.dll               WaitForSingleObjectEx
75721143 +0d kernel32.dll               WaitForSingleObject
004af9b9 +0d PopCornWords.exe madExcept CallThreadProcSafe
004afa1e +32 PopCornWords.exe madExcept ThreadExceptFrame
75723368 +10 kernel32.dll               BaseThreadInitThunk
>> created by main thread ($1ea8) at:
1f0bfbbb +00 sapi.dll

thread $1ce0:
77541f3f +0b ntdll.dll     NtWaitForWorkViaWorkerFactory
75723368 +10 kernel32.dll  BaseThreadInitThunk

thread $1c8c:
7753fd8a +0e ntdll.dll                  NtDelayExecution
75443bc2 +5f KERNELBASE.dll             SleepEx
75444493 +0a KERNELBASE.dll             Sleep
004af9b9 +0d PopCornWords.exe madExcept CallThreadProcSafe
004afa1e +32 PopCornWords.exe madExcept ThreadExceptFrame
75723368 +10 kernel32.dll               BaseThreadInitThunk
>> created by main thread ($1ea8) at:
74fcda8e +00 ole32.dll

thread $15b8:
7753f952 +0e ntdll.dll                  NtRemoveIoCompletion
754376f7 +23 KERNELBASE.dll             GetQueuedCompletionStatus
004af9b9 +0d PopCornWords.exe madExcept CallThreadProcSafe
004afa1e +32 PopCornWords.exe madExcept ThreadExceptFrame
75723368 +10 kernel32.dll               BaseThreadInitThunk
>> created by thread $d98 at:
1f0bfbbb +00 sapi.dll

thread $1dcc:
7753f952 +0e ntdll.dll                  NtRemoveIoCompletion
754376f7 +23 KERNELBASE.dll             GetQueuedCompletionStatus
004af9b9 +0d PopCornWords.exe madExcept CallThreadProcSafe
004afa1e +32 PopCornWords.exe madExcept ThreadExceptFrame
75723368 +10 kernel32.dll               BaseThreadInitThunk
>> created by thread $d98 at:
1f0bfbbb +00 sapi.dll

thread $e64: <priority:-4>
77540156 +0e ntdll.dll                  NtWaitForMultipleObjects
754415e3 +fa KERNELBASE.dll             WaitForMultipleObjectsEx
757219f7 +89 kernel32.dll               WaitForMultipleObjectsEx
758f0864 +00 USER32.dll                 MsgWaitForMultipleObjectsEx
758f0b64 +1a USER32.dll                 MsgWaitForMultipleObjects
004af9b9 +0d PopCornWords.exe madExcept CallThreadProcSafe
004afa1e +32 PopCornWords.exe madExcept ThreadExceptFrame
75723368 +10 kernel32.dll               BaseThreadInitThunk
>> created by thread $d98 at:
1f0bfbbb +00 sapi.dll

thread $1e4c:
77540156 +0e ntdll.dll                  NtWaitForMultipleObjects
754415e3 +fa KERNELBASE.dll             WaitForMultipleObjectsEx
757219f7 +89 kernel32.dll               WaitForMultipleObjectsEx
758f0864 +00 USER32.dll                 MsgWaitForMultipleObjectsEx
004af9b9 +0d PopCornWords.exe madExcept CallThreadProcSafe
004afa1e +32 PopCornWords.exe madExcept ThreadExceptFrame
75723368 +10 kernel32.dll               BaseThreadInitThunk
>> created by thread $e64 at:
6f1d5ff1 +00 MMDevApi.dll

thread $1e48:
77541e17 +0b ntdll.dll     NtTraceControl
77577191 +40 ntdll.dll     EtwpNotificationThread
75723368 +10 kernel32.dll  BaseThreadInitThunk

modules:
00400000 PopCornWords.exe                         1.0.0.0            C:\PopcornWord
0b610000 swift.dll                                4.2.0.0            C:\Program Files (x86)\Cepstral\bin
0d8a0000 LHSAPI30.DLL                             4.2.0.3            C:\Windows\LHSP\System
0f1a0000 Merlin.aal                               2.0.0.0            C:\PopcornWord\Helper
0f6b0000 mssps.dll                                11.0.14405.0       C:\Program Files (x86)\Common Files\Microsoft Shared\Speech\Platform\v11.0
0fbc0000 cspeechkit.dll                           7.0.18.0           C:\PopcornWord
10000000 fbclient.dll                             2.5.2.26540        C:\PopcornWord\BASE
1f010000 sapi.dll                                 5.3.13120.0        C:\Windows\System32\Speech\Common
50510000 spsreng.dll                              8.0.7600.16385     C:\Windows\System32\Speech\Engines\SR
55ba0000 mfwmaaec.dll                             6.1.7600.16385     C:\Windows\SysWOW64
56260000 MFPlat.DLL                               12.0.7600.16385    C:\Windows\SysWOW64
5d880000 srloc.dll                                8.0.7600.16385     C:\Windows\System32\Speech\Engines\SR
5ef90000 cryptdll.dll                             6.1.7600.16385     C:\Windows\system32
5efb0000 msv1_0.DLL                               6.1.7601.17514     C:\Windows\SysWOW64
5f0c0000 WMASF.DLL                                12.0.7600.16385    C:\Windows\system32
62050000 TTSMGR32.dll                             6.0.1.1            C:\Windows\LHSP\System
62740000 FaultRep.dll                             6.1.7601.17514     C:\Windows\system32
63550000 Speech.dll                               4.0.4.2512         C:\Windows\speech
63670000 MSTTSSYN.dll                             4.0.4.2512         C:\Program Files (x86)\Common Files\microsoft shared\SpeechEngines\TTS
661c0000 GrooveShellExtensions.dll                12.0.4518.1014     C:\Program Files (x86)\Microsoft Office\Office12
68ef0000 GrooveUtil.DLL                           12.0.4518.1014     C:\Program Files (x86)\Microsoft Office\Office12
68ff0000 GrooveNew.DLL                            12.0.4518.1014     C:\Program Files (x86)\Microsoft Office\Office12
6b3a0000 credssp.dll                              6.1.7601.17514     C:\Windows\system32
6b5c0000 ntshrui.dll                              6.1.7601.17755     C:\Windows\system32
6e880000 hunspelldll.dll                                             C:\PopcornWord\dic
6eaa0000 WindowsCodecs.dll                        6.2.9200.16809     C:\Windows\system32
6ed80000 EhStorShell.dll                          6.1.7600.16385     C:\Windows\system32
6ef10000 AVRT.DLL                                 6.1.7600.16385     C:\Windows\system32
6efa0000 MSACM32.DLL                              6.1.7600.16385     C:\Windows\system32
6f170000 AUDIOSES.DLL                             6.1.7601.17514     C:\Windows\system32
6f1b0000 olepro32.dll                             6.1.7601.17514     C:\Windows\system32
6f1d0000 MMDevApi.dll                             6.1.7601.17514     C:\Windows\System32
6f860000 msimg32.dll                              6.1.7600.16385     C:\Windows\system32
6f870000 RICHED20.DLL                             5.31.23.1230       C:\Windows\system32
6f9f0000 wsock32.dll                              6.1.7600.16385     C:\Windows\system32
6fc70000 rasadhlp.dll                             6.1.7600.16385     C:\Windows\system32
6fc80000 fwpuclnt.dll                             6.1.7601.18283     C:\Windows\System32
6fcc0000 WLIDNSP.DLL                              7.250.4311.0       C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
6fcf0000 winrnr.dll                               6.1.7600.16385     C:\Windows\System32
6fd00000 pnrpnsp.dll                              6.1.7600.16385     C:\Windows\system32
6fd20000 napinsp.dll                              6.1.7600.16385     C:\Windows\system32
6fd30000 NLAapi.dll                               6.1.7601.17761     C:\Windows\system32
70ac0000 wshtcpip.dll                             6.1.7600.16385     C:\Windows\System32
70ad0000 mswsock.dll                              6.1.7601.18254     C:\Windows\System32
70cf0000 DNSAPI.dll                               6.1.7601.17570     C:\Windows\system32
70d50000 dwmapi.dll                               6.1.7600.16385     C:\Windows\system32
70d70000 gdiplus.dll                              6.1.7601.18120     C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.18120_none_72d2e82386681b36
710d0000 winmm.dll                                6.1.7601.17514     C:\Windows\system32
71430000 MSVCR80.dll                              8.0.50727.6195     C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a
714d0000 webio.dll                                6.1.7601.17725     C:\Windows\system32
71760000 SHFOLDER.dll                             6.1.7600.16385     C:\Windows\system32
717a0000 security.dll                             6.1.7600.16385     C:\Windows\system32
718e0000 msdmo.dll                                6.6.7601.17514     C:\Windows\system32
718f0000 ATL80.DLL                                8.0.50727.6195     C:\Windows\WinSxS\x86_microsoft.vc80.atl_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d1cb102c435421de
71cc0000 oledlg.dll                               6.1.7600.16385     C:\Windows\system32
71ce0000 slc.dll                                  6.1.7600.16385     C:\Windows\system32
72ad0000 winhttp.dll                              6.1.7601.17514     C:\Windows\system32
72de0000 wkscli.dll                               6.1.7601.17514     C:\Windows\system32
72df0000 srvcli.dll                               6.1.7601.17514     C:\Windows\system32
72e10000 netutils.dll                             6.1.7601.17514     C:\Windows\system32
72e20000 netapi32.dll                             6.1.7601.17887     C:\Windows\system32
72e40000 mpr.dll                                  6.1.7600.16385     C:\Windows\system32
72f20000 uxtheme.dll                              6.1.7600.16385     C:\Windows\system32
72fa0000 cscapi.dll                               6.1.7601.17514     C:\Windows\system32
72fb0000 WINSTA.dll                               6.1.7601.17514     C:\Windows\system32
731b0000 RpcRtRemote.dll                          6.1.7601.17514     C:\Windows\system32
733d0000 BROWCLI.DLL                              6.1.7601.17887     C:\Windows\system32
733e0000 apphelp.dll                              6.1.7601.17514     C:\Windows\system32
73460000 oleacc.dll                               7.0.0.0            C:\Windows\system32
734a0000 profapi.dll                              6.1.7600.16385     C:\Windows\system32
734d0000 winspool.drv                             6.1.7601.17514     C:\Windows\system32
73530000 WINNSI.DLL                               6.1.7600.16385     C:\Windows\system32
73610000 propsys.dll                              7.0.7601.17514     C:\Windows\system32
737b0000 rsaenh.dll                               6.1.7600.16385     C:\Windows\system32
737f0000 CRYPTSP.dll                              6.1.7600.16385     C:\Windows\system32
73810000 IPHLPAPI.DLL                             6.1.7601.17514     C:\Windows\system32
73830000 wtsapi32.dll                             6.1.7601.17514     C:\Windows\system32
73840000 SECUR32.DLL                              6.1.7601.18270     C:\Windows\system32
73850000 comctl32.dll                             6.10.7601.17514    C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2
739f0000 version.dll                              6.1.7600.16385     C:\Windows\system32
74e40000 ntmarta.dll                              6.1.7600.16385     C:\Windows\system32
74f30000 CRYPTBASE.dll                            6.1.7600.16385     C:\Windows\syswow64
74f40000 SspiCli.dll                              6.1.7601.18270     C:\Windows\syswow64
74fa0000 ole32.dll                                6.1.7601.17514     C:\Windows\syswow64
75100000 sechost.dll                              6.1.7600.16385     C:\Windows\SysWOW64
75120000 IMM32.DLL                                6.1.7601.17514     C:\Windows\system32
75180000 CRYPT32.dll                              6.1.7601.18277     C:\Windows\syswow64
752a0000 comdlg32.dll                             6.1.7601.17514     C:\Windows\syswow64
75320000 WS2_32.dll                               6.1.7601.17514     C:\Windows\syswow64
75360000 api-ms-win-downlevel-user32-l1-1-0.dll   6.2.9200.16492     C:\Windows\syswow64
75370000 oleaut32.dll                             6.1.7601.17676     C:\Windows\syswow64
75400000 api-ms-win-downlevel-ole32-l1-1-0.dll    6.2.9200.16492     C:\Windows\syswow64
75410000 PSAPI.DLL                                6.1.7600.16385     C:\Windows\syswow64
75420000 NSI.dll                                  6.1.7600.16385     C:\Windows\syswow64
75430000 KERNELBASE.dll                           6.1.7601.18229     C:\Windows\syswow64
75480000 WININET.dll                              11.0.9600.16521    C:\Windows\syswow64
75650000 SHLWAPI.dll                              6.1.7601.17514     C:\Windows\syswow64
756b0000 WLDAP32.dll                              6.1.7601.17514     C:\Windows\syswow64
75700000 api-ms-win-downlevel-advapi32-l1-1-0.dll 6.2.9200.16492     C:\Windows\syswow64
75710000 kernel32.dll                             6.1.7601.18229     C:\Windows\syswow64
75820000 api-ms-win-downlevel-normaliz-l1-1-0.dll 6.2.9200.16492     C:\Windows\syswow64
75830000 ADVAPI32.dll                             6.1.7601.18247     C:\Windows\syswow64
758d0000 USER32.dll                               6.1.7601.17514     C:\Windows\syswow64
759d0000 RPCRT4.dll                               6.1.7601.18205     C:\Windows\syswow64
75ac0000 CLBCatQ.DLL                              2001.12.8530.16385 C:\Windows\syswow64
75b50000 api-ms-win-downlevel-version-l1-1-0.dll  6.2.9200.16492     C:\Windows\syswow64
75b60000 GDI32.dll                                6.1.7601.18275     C:\Windows\syswow64
75bf0000 CFGMGR32.dll                             6.1.7601.17621     C:\Windows\syswow64
75c20000 URLMON.DLL                               11.0.9600.16521    C:\Windows\syswow64
75d50000 shell32.dll                              6.1.7601.18222     C:\Windows\syswow64
769a0000 normaliz.DLL                             6.1.7600.16385     C:\Windows\syswow64
769b0000 SETUPAPI.dll                             6.1.7601.17514     C:\Windows\syswow64
76b50000 iertutil.dll                             11.0.9600.16521    C:\Windows\syswow64
76d70000 DEVOBJ.dll                               6.1.7601.17621     C:\Windows\syswow64
76d90000 msvcrt.dll                               7.0.7601.17744     C:\Windows\syswow64
76f90000 LPK.dll                                  6.1.7601.18177     C:\Windows\syswow64
76fa0000 MSCTF.dll                                6.1.7600.16385     C:\Windows\syswow64
77070000 USP10.dll                                1.626.7601.18009   C:\Windows\syswow64
77110000 MSASN1.dll                               6.1.7601.17514     C:\Windows\syswow64
774f0000 api-ms-win-downlevel-shlwapi-l1-1-0.dll  6.2.9200.16492     C:\Windows\syswow64
77520000 ntdll.dll                                6.1.7601.18247     C:\Windows\SysWOW64
77960000 WMVCORE.DLL                              12.0.7601.17514    C:\Windows\system32

processes:
0000 Idle                           0 0    0
0004 System                         0 0    0
0124 smss.exe                       0 0    0
01a0 csrss.exe                      0 0    0
01e4 wininit.exe                    0 0    0
0200 csrss.exe                      1 0    0
0228 services.exe                   0 0    0
0248 winlogon.exe                   1 0    0
0264 lsass.exe                      0 0    0
026c lsm.exe                        0 0    0
02cc svchost.exe                    0 0    0
030c gbpsv.exe                      0 0    0
039c svchost.exe                    0 0    0
03f0 MsMpEng.exe                    0 0    0
0460 svchost.exe                    0 0    0
0494 svchost.exe                    0 0    0
04dc svchost.exe                    0 0    0
053c svchost.exe                    0 0    0
0578 svchost.exe                    0 0    0
0608 svchost.exe                    0 0    0
067c wlanext.exe                    0 0    0
0684 conhost.exe                    0 0    0
0718 spoolsv.exe                    0 0    0
0758 svchost.exe                    0 0    0
07bc NetworkLicenseServer.exe       0 0    0
04a0 taskhost.exe                   1 26   24   normal
05e0 dwm.exe                        1 21   2    high
0140 taskeng.exe                    1 0    0
06e0 GbpSv.exe                      1 5    1    normal       C:\PROGRA~2\GbPlugin
0858 armsvc.exe                     0 0    0
087c apnmcp.exe                     0 0    0
088c sensorsrv.exe                  1 0    0
08e0 CepstralLicSrv.exe             0 0    0
091c GoogleCrashHandler.exe         0 0    0
0924 GoogleCrashHandler64.exe       0 0    0
0950 EPCP.exe                       0 0    0
0970 E_WT50RP.EXE                   0 0    0
0990 fbguard.exe                    0 0    0
0a30 mdm.exe                        0 0    0
0a78 PCAppStoreSvc.exe              0 0    0
0acc sparkservice.exe               0 0    0
0ae8 svchost.exe                    0 0    0
0b44 TeamViewer_Service.exe         0 0    0
0b64 vmnat.exe                      0 0    0
0ba8 core.exe                       0 0    0
0bd8 WLIDSVC.EXE                    0 0    0
0bf4 escsvc64.exe                   0 0    0
05fc vmware-authd.exe               0 0    0
0c70 WLIDSVCM.EXE                   0 0    0
0ca4 vmnetdhcp.exe                  0 0    0
0cb8 vmware-usbarbitrator64.exe     0 0    0
0db4 fbserver.exe                   0 0    0
0de0 NisSrv.exe                     0 0    0
0ed4 svchost.exe                    0 0    0
041c RAVCpl64.exe                   1 54   22   normal
0220 RAVBg64.exe                    1 16   15   normal
0d60 WUDFHost.exe                   0 0    0
0d84 AmIcoSinglun64.exe             1 15   13   normal
0e90 SynTPEnh.exe                   1 15   8    above normal
0a18 ETDCtrl.exe                    1 110  63   above normal
0f84 msseces.exe                    1 147  63   normal
106c ETDCtrlHelper.exe              1 0    0
10a8 igfxtray.exe                   1 12   5    normal
10c0 SearchIndexer.exe              0 0    0
115c hkcmd.exe                      1 9    19   normal
118c igfxpers.exe                   1 9    4    normal
11dc wmpnetwk.exe                   0 0    0
1224 GoogleUpdate.exe               1 9    4    idle         C:\Users\alexandre\AppData\Local\Google\Update
1240 E_YATII2E.EXE                  1 22   13   normal
124c Skype.exe                      1 226  142  normal       C:\Program Files (x86)\Skype\Phone
1294 paltalk.exe                    1 541  143  normal       C:\Program Files (x86)\Paltalk Messenger
13d0 svchost.exe                    0 0    0
126c svchost.exe                    0 0    0
1174 SonicFocusTray.exe             1 19   11   normal       C:\Program Files (x86)\ASUS\Sonic Focus
0958 EEventManager.exe              1 19   19   normal       C:\Program Files (x86)\EPSON Software\Event Manager
08cc DivXUpdate.exe                 1 35   32   normal       C:\Program Files (x86)\DivX\DivX Update
0e10 core.exe                       1 4    1    normal       C:\Program Files (x86)\Diebold\Warsaw
10bc jusched.exe                    1 9    2    normal       C:\Program Files (x86)\Common Files\Java\Java Update
1540 dllhost.exe                    0 0    0
1700 TBNotifier.exe                 1 9    14   normal       C:\Program Files (x86)\AskPartnerNetwork\Toolbar\Updater
17d8 AppStoreDeskTool.exe           1 45   44   normal       C:\Program Files (x86)\Baidu Security\PC App Store\4.8.1.7002
061c PhotoshopElementsFileAgent.exe 0 0    0
1140 OUTLOOK.EXE                    1 710  368  normal       C:\Program Files (x86)\Microsoft Office\Office12
052c chrome.exe                     1 293  90   normal       C:\Program Files (x86)\Google\Chrome\Application
1614 vmplayer.exe                   1 1099 386  normal       C:\Program Files (x86)\VMware\VMware Player
0bc4 vmware-unity-helper.exe        1 16   9    normal       C:\Program Files (x86)\VMware\VMware Player
13b0 vmware-vmx.exe                 1 13   16   normal
1580 vprintproxy.exe                1 16   18   normal       C:\Program Files (x86)\VMware\VMware Player
19b0 conhost.exe                    1 20   1    normal
1818 splwow64.exe                   1 29   7    normal
1138 ibexpert.exe                   1 0    0
1340 googledrivesync.exe            1 4    1    normal       C:\Program Files (x86)\Google\Drive
031c googledrivesync.exe            1 86   77   normal       C:\Program Files (x86)\Google\Drive
1bfc explorer.exe                   1 204  126  normal
18a0 explorer.exe                   1 964  342  normal
104c chrome.exe                     1 14   4    normal       C:\Program Files (x86)\Google\Chrome\Application
06f8 chrome.exe                     1 247  1    normal       C:\Program Files (x86)\Google\Chrome\Application
14b4 bds.exe                        1 3785 1377 normal       C:\Program Files (x86)\Embarcadero\RAD Studio\11.0\bin
19b8 chrome.exe                     1 4    1    normal       C:\Program Files (x86)\Google\Chrome\Application
007c chrome.exe                     1 4    1    normal       C:\Program Files (x86)\Google\Chrome\Application
1b50 PCFasterSvc.exe                0 0    0
1600 PCFTray.exe                    1 0    0
07d4 PCFasterSvc.exe                0 0    0
03b0 rundll32.exe                   1 0    0
0fe0 bassvc.exe                     0 0    0
0fac bas_helper.exe                 1 0    0
1808 AAM Updates Notifier.exe       1 14   7    below normal C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\UWA
17c0 teachmenow.exe                 1 394  235  normal       C:\TeachMeNow
1a4c WINWORD.EXE                    1 610  150  normal       C:\Program Files (x86)\Microsoft Office\Office12
0cc4 chrome.exe                     1 4    1    normal       C:\Program Files (x86)\Google\Chrome\Application
14fc chrome.exe                     1 5    1    normal       C:\Program Files (x86)\Google\Chrome\Application
0630 chrome.exe                     1 4    1    normal       C:\Program Files (x86)\Google\Chrome\Application
0da0 chrome.exe                     1 4    1    normal       C:\Program Files (x86)\Google\Chrome\Application
181c chrome.exe                     1 4    1    normal       C:\Program Files (x86)\Google\Chrome\Application
01c0 notepad.exe                    1 23   20   normal
1f5c audiodg.exe                    0 0    0
1fd4 taskeng.exe                    0 0    0
1258 chrome.exe                     1 4    1    normal       C:\Program Files (x86)\Google\Chrome\Application
1d68 PopCornWords.exe               1 656  289  normal       C:\PopcornWord

hardware:
+ Batteries
  - Adaptador de CA da Microsoft
  - Bateria de Método de Controle Compatível com ACPI da Microsoft
  - Microsoft Composite Battery
+ Computer
  - ACPI x64-based PC
+ Disk drives
  - SD Card
  - WDC WD5000BPVT-80HXZT1 ATA Device
+ Display adapters
  - Intel(R) HD Graphics 3000 (driver 9.17.10.2932)
+ DVD/CD-ROM drives
  - DTSOFT Virtual CdRom Device
  - Slimtype DVD A  DS8A5SH ATA Device
+ Human Interface Devices
  - Dispositivo de Entrada USB
  - Dispositivo de Entrada USB
  - Dispositivo de Entrada USB
  - HID-compliant consumer control device
  - HID-compliant device
+ IDE ATA/ATAPI controllers
  - ATA Channel 0
  - ATA Channel 2
  - Intel(R) 6 Series/C200 Series Chipset Family 6 Port SATA AHCI Controller - 1C03 (driver 9.2.0.1011)
+ Imaging devices
  - ASUS USB2.0 WebCam
+ Keyboards
  - Dispositivo de teclado HID
  - Teclado Padrão PS/2
+ Mice and other pointing devices
  - ELAN PS/2 Port Smart-Pad (driver 8.0.5.3)
  - Mouse compatível com HID
  - Mouse compatível com HID
+ Monitors
  - Monitor Genérico PnP
  - TC310_T20C310 (driver 1.0.0.0)
+ Network adapters
  - Atheros AR8151 PCI-E Gigabit Ethernet Controller (NDIS 6.20) (driver 1.0.2.43)
  - Atheros AR9285 Wireless Network Adapter (driver 9.2.0.458)
  - Miniporta de rede remota (IP)
  - Miniporta de Rede Remota (IPv6)
  - Miniporta de rede remota (L2TP)
  - Miniporta de rede remota (Monitor de rede)
  - Miniporta de rede remota (PPTP)
  - Miniporta WAN (PPPOE)
  - Miniporta WAN (SSTP)
  - Teredo Tunneling Pseudo-Interface
  - VMware Virtual Ethernet Adapter for VMnet1 (driver 4.1.4.0)
  - VMware Virtual Ethernet Adapter for VMnet8 (driver 4.1.4.0)
  - WAN Miniport (IKEv2)
+ Portable Devices
  - MEDIA
+ Processors
  - Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
  - Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
  - Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
  - Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
+ Sound, video and game controllers
  - Realtek High Definition Audio (driver 6.0.1.6304)
  - Áudio do vídeo Intel(R) (driver 6.14.0.3074)
+ Storage volume shadow copies
  - Cópia de sombra de volume genérica
  - Cópia de sombra de volume genérica
  - Cópia de sombra de volume genérica
  - Cópia de sombra de volume genérica
+ System devices
  - 2nd generation Intel(R) Core(TM) processor family DRAM Controller - 0104 (driver 9.2.0.1011)
  - Arquivo como Driver de Volume
  - Botão de recurso fixo ACPI
  - Botão Suspender ACPI
  - CMOS do sistema/relógio em tempo real
  - Controlador de acesso direto à memória
  - Controlador de High Definition Audio
  - Controlador de interrupção programável
  - DAEMON Tools Virtual Bus (driver 5.0.1.282)
  - Driver de BIOS de Gerenciamento de Sistema Microsoft
  - Driver de enumerador da unidade virtual Microsoft
  - Enumerador de Barramento de Composição
  - Enumerador de Barramento de Raiz UMBus
  - Enumerador de dispositivos de software Plug and Play
  - Enumerador UMBus
  - Enumerador UMBus
  - Gerenciador de volumes
  - Intel(R) 6 Series/C200 Series Chipset Family PCI Express Root Port 1 - 1C10 (driver 9.2.0.1016)
  - Intel(R) 6 Series/C200 Series Chipset Family PCI Express Root Port 2 - 1C12 (driver 9.2.0.1016)
  - Intel(R) 6 Series/C200 Series Chipset Family PCI Express Root Port 6 - 1C1A (driver 9.2.0.1016)
  - Intel(R) 6 Series/C200 Series Chipset Family SMBus Controller - 1C22 (driver 9.2.0.1011)
  - Intel(R) 82802 Firmware Hub Device
  - Intel(R) HM65 Express Chipset Family LPC Interface Controller - 1C49 (driver 9.2.0.1016)
  - Intel(R) Management Engine Interface
  - Microsoft ACPI-Compliant Embedded Controller
  - Microsoft ACPI-Compliant System
  - Microsoft Windows Management Interface for ACPI
  - PCI bus
  - Placa de sistema
  - Processador de dados numéricos
  - Recursos da placa-mãe
  - Recursos da placa-mãe
  - Recursos da placa-mãe
  - Recursos da placa-mãe
  - Recursos da placa-mãe
  - Recursos da placa-mãe
  - Remote Desktop Device Redirector Bus
  - Tampa ACPI
  - Terminal Server Keyboard Driver
  - Terminal Server Mouse Driver
  - Timer de eventos de alta precisão
  - Timer do sistema
  - VMware VMCI Host Device (driver 9.3.51.0)
  - Zona termal ACPI
+ Universal Serial Bus controllers
  - Alcor Micro USB 2.0 Card Reader (driver 1.0.32.84)
  - Generic USB Hub
  - Generic USB Hub
  - Intel(R) 6 Series/C200 Series Chipset Family USB Enhanced Host Controller - 1C26 (driver 9.2.0.1021)
  - Intel(R) 6 Series/C200 Series Chipset Family USB Enhanced Host Controller - 1C2D (driver 9.2.0.1021)
  - USB Composite Device
  - USB Composite Device
  - USB Root Hub
  - USB Root Hub

cpu registers:
eax = 0acdcaf0
ebx = 0123f5b1
ecx = 00000000
edx = 05c94aa8
esi = 0123f5b1
edi = 00000000
eip = 0123f5b1
esp = 0018dff8
ebp = 0018e048

stack dump:
0018dff8  b1 f5 23 01 de fa ed 0e - 01 00 00 00 07 00 00 00  ..#.............
0018e008  0c e0 18 00 b1 f5 23 01 - f0 ca cd 0a b1 f5 23 01  ......#.......#.
0018e018  b1 f5 23 01 00 00 00 00 - 48 e0 18 00 28 e0 18 00  ..#.....H...(...
0018e028  0a 00 00 00 c0 69 40 00 - f0 00 23 01 30 86 25 09  .....i@...#.0.%.
0018e038  ec 99 40 00 24 29 19 01 - 30 e6 32 01 30 86 25 09  ..@.$)..0.2.0.%.
0018e048  58 e0 18 00 b1 f5 23 01 - 91 5a 46 75 30 86 25 09  X.....#..ZFu0.%.
0018e058  84 e0 18 00 87 f0 36 01 - 30 86 25 09 7c e0 18 00  ......6.0.%.|...
0018e068  4d fd 29 01 8c e0 18 00 - 6c f8 40 00 f0 4d e1 0a  M.).....l.@..M..
0018e078  bc e0 18 00 30 86 25 09 - e0 63 e9 0a 9c e0 18 00  ....0.%..c......
0018e088  bc 04 34 01 00 00 00 00 - 77 29 19 00 30 86 25 09  ..4.....w)..0.%.
0018e098  f0 4d e1 0a c4 e0 18 00 - 85 f9 29 01 00 00 00 00  .M........).....
0018e0a8  a0 e2 18 00 08 aa 40 00 - c4 e0 18 00 30 86 25 09  ......@.....0.%.
0018e0b8  30 86 25 09 00 00 00 00 - 30 86 25 09 e0 e0 18 00  0.%.....0.%.....
0018e0c8  00 b2 5c 00 92 12 5d 00 - 7c e2 18 00 aa f0 29 01  ..\...].|.....).
0018e0d8  7c e2 18 00 30 86 25 09 - 0c e2 18 00 20 a6 5c 00  |...0.%..... .\.
0018e0e8  00 00 00 00 90 e5 18 00 - 30 86 25 09 30 86 25 09  ........0.%.0.%.
0018e0f8  30 86 25 09 80 70 74 01 - 99 59 40 00 01 00 00 00  0.%..pt..Y@.....
0018e108  28 00 00 00 08 00 00 00 - 63 68 40 00 28 e1 18 00  (.......ch@.(...
0018e118  a5 df 40 00 0f 00 00 00 - f0 80 e5 0f b3 99 40 00  ..@...........@.
0018e128  48 8b 54 00 30 86 25 09 - 76 01 53 00 90 7c ea 0a  H.T.0.%.v.S..|..

disassembling:
[...]
0123f59b        call    dword ptr [edx+$98]
0123f5a1        mov     edx, [eax]
0123f5a3        call    dword ptr [edx+$7c]
0123f5a6        mov     edx, [$1230098]
0123f5ac        call    -$e35bed ($4099c4)     ; System.@AsClass
0123f5b1      > mov     [ebp-8], eax
0123f5b4 4982   mov     eax, [ebp-8]
0123f5b7        pop     ecx
0123f5b8        pop     ecx
0123f5b9        pop     ebp
0123f5ba        ret



Posted: Sun Nov 02, 2014 9:54 am
by Sergey Tkachenko
I can see some sSkinProvider attempts to create the form image.
It results calling TDBRichViewEdit's code written for working inside TDBCtrlGrid.

Try this temporal workaround: open DBRV.pas, change TDBRichViewEdit.Paint to:

Code: Select all

procedure TDBRichViewEdit.Paint;
begin
  if (csPaintCopy in ControlState) then
    exit; //PaintRVCopy(Canvas, ClientRect, FDataLink.Field, Self)
  else
    inherited;
end;
Does it help?

Posted: Tue Nov 04, 2014 12:09 am
by alexandreq
hello Sergey

Unfortunately I am having the same error.

As I told you, when I open my table and the text is displayed in the DBSrichEditview and then I close the form clicking on the close button of my form, I got that error.

If I close my table firstly and close the form, the error didn't happen.

You are right, the problem only happen when the SkinProvider is active, because if I desactive it, it works fine.

I use the component from this customer www.alphaskin.com, I think you know it.

To work around on this, I take off the option to have on my form the close button, so the user must close the form in the option where the table is closed firstly and then the form.

Well, to work around on that I disabled the close button of my form until we got a solution.

Thanks for your supply Sergey

Posted: Tue Nov 04, 2014 8:08 am
by Sergey Tkachenko
May be you changed Paint for TDBRichView, not for TDBRichViewEdit? They are identical in DBRV.pas.

If not, please post a call stack in the case when calling PaintRVCopy is removed from TDBRichViewEdit.Paint.

Posted: Tue Nov 04, 2014 10:44 pm
by alexandreq
Yeah Sergey,

I had made a mistake, you are right and it worked.

Thanks very much !

Posted: Wed Nov 05, 2014 1:00 pm
by Sergey Tkachenko
In the next update, it will be:

Code: Select all

procedure TDBRichViewEdit.Paint;
begin
  if (csPaintCopy in ControlState) then begin
    if RVData.GetScaleRichViewInterface=nil then
      PaintRVCopy(Canvas, ClientRect, FDataLink.Field, Self)
    end
  else
    inherited;
end;

Posted: Wed Nov 05, 2014 10:27 pm
by alexandreq
Thanks,

I updated the function

Regards
Alex