Error on termination of an application using TRichView
-
- Posts: 9
- Joined: Mon Jul 02, 2007 9:07 pm
- Location: Perm, Russia
Error on termination of an application using TRichView
Hi, all,
Does anyone know what may happen in application that uses an array of dynamically created/destroyed TRichViewEdits? While a program is running, everything is OK but on termination the following error occurs (the information is derived using JCL Debugger). Also used are TRvaControlPanel, TRichViewActions, TRVPrint.
This error is transient, its conditions are unknown
09.10.2007 14:45:15 Exception EAccessViolation occured at address 00000000
Message: Access violation at address 00000000. Read of address 00000000
Call stack:
[00548247] CRVData.TCustomRVData.Clear (Line 1693, "CRVData.pas")
[0051E415] CRVFData.TCustomRVFormattedData.Clear (Line 774, "CRVFData.pas")
With hope, Eugene
Does anyone know what may happen in application that uses an array of dynamically created/destroyed TRichViewEdits? While a program is running, everything is OK but on termination the following error occurs (the information is derived using JCL Debugger). Also used are TRvaControlPanel, TRichViewActions, TRVPrint.
This error is transient, its conditions are unknown
09.10.2007 14:45:15 Exception EAccessViolation occured at address 00000000
Message: Access violation at address 00000000. Read of address 00000000
Call stack:
[00548247] CRVData.TCustomRVData.Clear (Line 1693, "CRVData.pas")
[0051E415] CRVFData.TCustomRVFormattedData.Clear (Line 774, "CRVFData.pas")
With hope, Eugene
-
- Site Admin
- Posts: 17525
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17525
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 9
- Joined: Mon Jul 02, 2007 9:07 pm
- Location: Perm, Russia
I did it, but the error persists... Then I've added the try.. except block in 'CRVData.pas' in place where the error comes from, and all was finished. The benefit from doing this is elimination of annoying OS's window which offers to send to Microsoft a report about an error But this error however occurs, it is visible in application's log file. What's up, I don't know.shmp wrote:On form destroy event, I put rv.clear and rv.format. It did not cause AV anymore.
-
- Site Admin
- Posts: 17525
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17525
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 9
- Joined: Mon Jul 02, 2007 9:07 pm
- Location: Perm, Russia