Recent

Author Topic: TATSynEdit.Destroy with LCLRefCount>0. Hint: Maybe the component is processing..  (Read 1780 times)

SA.Blackmon

  • New Member
  • *
  • Posts: 37
  • Just an old retired guy practicing what he enjoys.
Been working on this for days with no relief in sight.

Mostly plegiarizing Alextp's demo_editor, I have built "my own" editor that I wish to specialize for another use.
I put the AtSynedit in a frame and placed the frame on a TPanel; this whole apparatus controlled via a TATTabs component.
The application will handle 'n' files and a TXMLPropStorage component provides persistency between executions.

I actually had most of this working once but I have broken it.

After recovering the data from the TXMLPropStorage component and building all the frames with AtSynEdit with an open file,...

This is the stack trace.

Code: Text  [Select][+][-]
  1. Program exception!
  2. Stacktrace:
  3.  
  4. Exception class: EAccessViolation
  5. Message: Access violation
  6.   $00000001003059B8  FINDDEEPESTRANGECONTAININGLINE,  line 538 of atsynedit_ranges.pas
  7.   $000000010025C268  DOPAINTGUTTERFOLDING,  line 7311 of atsynedit.pas
  8.   $00000001002510B8  DOPAINTGUTTEROFLINE,  line 3670 of atsynedit.pas
  9.   $000000010024F429  DOPAINTTEXT,  line 3035 of atsynedit.pas
  10.   $000000010024E873  DOPAINTMAIN,  line 2788 of atsynedit.pas
  11.   $0000000100254C87  DOPAINTALL,  line 4833 of atsynedit.pas
  12.   $0000000100254DFF  DOPAINT,  line 4863 of atsynedit.pas
  13.   $000000010025515C  PAINTEX,  line 4967 of atsynedit.pas
  14.   $00000001002550BB  PAINT,  line 4941 of atsynedit.pas
  15.   $00000001000D4302  PAINTWINDOW,  line 118 of include/customcontrol.inc
  16.   $00000001000BE22F  PAINTHANDLER,  line 4840 of include/wincontrol.inc
  17.   $00000001000C2035  WMPAINT,  line 6827 of include/wincontrol.inc
  18.   $00000001000D4217  WMPAINT,  line 98 of include/customcontrol.inc
  19.   $000000010000FEF1
  20.   $00000001000CB191  WNDPROC,  line 2236 of include/control.inc
  21.   $00000001000BF549  WNDPROC,  line 5411 of include/wincontrol.inc
  22.   $00000001001F6B09  DELIVERMESSAGE,  line 112 of lclmessageglue.pas
  23. WARNING: TATSynEdit.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
  24.  

I have run out of debugging expertise. I might have a better chance if I could get a stack trace of the events between the end of my initialize frames method and this and have had no luck in discovering that.

Thanks in advance.
Thank you for your help,
Sherril

SA.Blackmon

  • New Member
  • *
  • Posts: 37
  • Just an old retired guy practicing what he enjoys.
I got this narrowed down to whatever happens after  TTatTab click event is fired:

Code: Pascal  [Select][+][-]
  1. 04-2-21->13:15:36.713   BEGIN: TfrmLogFollower.TabCtrlTabClick 
  2. 04-2-21->13:15:36.728   ENDOF: TfrmLogFollower.TabCtrlTabClick 
  3. Program exception!
  4. Stacktrace:
  5.  
  6. Exception class: EAccessViolation
  7. Message: Access violation
  8.   $0000000100305898  FINDDEEPESTRANGECONTAININGLINE,  line 538 of atsynedit_ranges.pas
  9.   $000000010025C068  DOPAINTGUTTERFOLDING,  line 7311 of atsynedit.pas
  10.   $0000000100250EB8  DOPAINTGUTTEROFLINE,  line 3670 of atsynedit.pas
  11.   $000000010024F229  DOPAINTTEXT,  line 3035 of atsynedit.pas
  12.   $000000010024E673  DOPAINTMAIN,  line 2788 of atsynedit.pas
  13.   $0000000100254A87  DOPAINTALL,  line 4833 of atsynedit.pas
  14.   $0000000100254BFF  DOPAINT,  line 4863 of atsynedit.pas
  15.   $0000000100254F5C  PAINTEX,  line 4967 of atsynedit.pas
  16.   $0000000100254EBB  PAINT,  line 4941 of atsynedit.pas
  17.   $00000001000D4102  PAINTWINDOW,  line 118 of include/customcontrol.inc
  18.   $00000001000BE02F  PAINTHANDLER,  line 4840 of include/wincontrol.inc
  19.   $00000001000C1E35  WMPAINT,  line 6827 of include/wincontrol.inc
  20.   $00000001000D4017  WMPAINT,  line 98 of include/customcontrol.inc
  21.   $000000010000FEF1
  22.   $00000001000CAF91  WNDPROC,  line 2236 of include/control.inc
  23.   $00000001000BF349  WNDPROC,  line 5411 of include/wincontrol.inc
  24.   $00000001001F6909  DELIVERMESSAGE,  line 112 of lclmessageglue.pas
  25. WARNING: TATSynEdit.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
  26.  
Thank you for your help,
Sherril


SA.Blackmon

  • New Member
  • *
  • Posts: 37
  • Just an old retired guy practicing what he enjoys.
I have not been able to fix this issue.

I reverted to a git commit prior to the advent of this issue and continued the search but it is a tedious process.
Thank you for your help,
Sherril

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
I made a fix to avoid that crash. it is in the official Github repo now. Try again with Github version.

Pls post bug reports to Github too!

 

TinyPortal © 2005-2018