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
Do you still have that issue? What is Self.ClassName in this desctructor before the access violation happens?
Self.ClassName
Not sure. but i left the line commented as it may be the case that FUIControl is unassigned.
Log in to post a comment.
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
Do you still have that issue? What is
Self.ClassName
in this desctructor before the access violation happens?Not sure. but i left the line commented as it may be the case that FUIControl is unassigned.