Menu

Access violation for destroy function in UIView

Chris
2015-06-01
2015-07-27
  • Chris

    Chris - 2015-06-01

    The original code

    destructor TDPFUIView.Destroy;
    begin
    {$IFDEF IOS}
    FDPFView.DisposeOf;
    // FUIControl := nil;
    {$ENDIF}
    inherited;
    end;
    ======================

    I will get access violation when destroy enters the "inherited" line.
    When i uncomment the FUIControl := nil, there is NO access violation.

    please help.

    thanks
    chris

     
  • Sebastian Zierer

    Do you still have that issue? What is Self.ClassName in this desctructor before the access violation happens?

     
  • Chris

    Chris - 2015-07-27

    Not sure. but i left the line commented as it may be the case that FUIControl is unassigned.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.