TppCustomSearchPreview.Notify: Cannot free the viewer.
Hi,
Running RB 11.03, D2009, XP.
I've been putting together a little dynamic report class for use in our main
application based on the DynamicFields example.
Everything works as expected except that if I happen to use the text search
facility during report preview, I always get an error when I close the
preview form.
Does anyone know how I might look at fixing it please?
Regards, Paul.
First error when closing the preview form:
---------------------------
Debugger Exception Notification
---------------------------
Project DynamicFieldsProj.exe raised exception class ESearchError with
message 'TppCustomSearchPreview.Notify: Cannot free the viewer.'.
---------------------------
Break Continue Help
---------------------------
Subsequent error.
---------------------------
Dynamicfieldsproj
---------------------------
TppCustomSearchPreview.Notify: Cannot free the viewer.
---------------------------
OK
---------------------------
Call stack looks like this
:7c812aeb kernel32.RaiseException + 0x52
:004047c0 NotifyNonDelphiException + $1C
:7c90327a ntdll.RtlConvertUlongToLargeInteger + 0x3c
:7c90e46a ntdll.KiUserExceptionDispatcher + 0xe
:0058750c TppTextSearchCustomEngine.Destroy + $20
:004cd944 TCustomForm.Destroy + $58
:0054a427 TppForm.Destroy + $2F
:004ba644 TWinControl.WndProc + $518
:004cec59 TCustomForm.WndProc + $599
:004b9d5b TWinControl.MainWndProc + $2F
:0043b67a StdWndProc + $16
:7e418734 USER32.GetDC + 0x6d
:7e418816 ; C:\WINDOWS\system32\USER32.dll
:7e4189cd ; C:\WINDOWS\system32\USER32.dll
:7e418a10 USER32.DispatchMessageW + 0xf
Running RB 11.03, D2009, XP.
I've been putting together a little dynamic report class for use in our main
application based on the DynamicFields example.
Everything works as expected except that if I happen to use the text search
facility during report preview, I always get an error when I close the
preview form.
Does anyone know how I might look at fixing it please?
Regards, Paul.
First error when closing the preview form:
---------------------------
Debugger Exception Notification
---------------------------
Project DynamicFieldsProj.exe raised exception class ESearchError with
message 'TppCustomSearchPreview.Notify: Cannot free the viewer.'.
---------------------------
Break Continue Help
---------------------------
Subsequent error.
---------------------------
Dynamicfieldsproj
---------------------------
TppCustomSearchPreview.Notify: Cannot free the viewer.
---------------------------
OK
---------------------------
Call stack looks like this
:7c812aeb kernel32.RaiseException + 0x52
:004047c0 NotifyNonDelphiException + $1C
:7c90327a ntdll.RtlConvertUlongToLargeInteger + 0x3c
:7c90e46a ntdll.KiUserExceptionDispatcher + 0xe
:0058750c TppTextSearchCustomEngine.Destroy + $20
:004cd944 TCustomForm.Destroy + $58
:0054a427 TppForm.Destroy + $2F
:004ba644 TWinControl.WndProc + $518
:004cec59 TCustomForm.WndProc + $599
:004b9d5b TWinControl.MainWndProc + $2F
:0043b67a StdWndProc + $16
:7e418734 USER32.GetDC + 0x6d
:7e418816 ; C:\WINDOWS\system32\USER32.dll
:7e4189cd ; C:\WINDOWS\system32\USER32.dll
:7e418a10 USER32.DispatchMessageW + 0xf
This discussion has been closed.