[DUG] [computing] IsClass access violation
Peter Ingham
ping_delphilist at 3days.co.nz
Thu Nov 14 16:33:03 NZDT 2013
It will definitely occur if the instance is nil.
Cheers
On 14/11/2013 3:51 p.m., Ross Levis wrote:
>
> I've got a strange error occurring for just one user where this
> procedure is failing...
>
> procedure TCustomDetails.SetModified(Modify: Boolean);
>
> begin
>
> FModified := Modify;
>
> if Modify then
>
> begin
>
> if Self is TCategoryDetails then MainForm.CategoryChanged := True
>
> else MainForm.SpotChanged := True;
>
> end;
>
> end;
>
> TCategoryDetails and another class is inherited from TCustomDetails.
>
> Access violation at address 004047DC in module 'SPLCreator.exe'. Read
> of address FFFFFFDF.
>
> main thread ($87c):
>
> 004047dc SPLCreator.exe System TObject.InheritsFrom
>
> 00404742 SPLCreator.exe System @IsClass
>
> 005dc6a6 SPLCreator.exe SPMain 3831 +4 TCustomDetails.SetModified
>
> Would this happen if Self was nil or invalid? I don't see how that
> could happen but just wondering how this can happen.
>
> Cheers,
>
> Ross.
>
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with Subject: unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20131114/b70a9cea/attachment.html
More information about the Delphi
mailing list