Re: access violation



FrancoJommi wrote:
This is a challenge ! Can't find the reason I get this error. It happens on
the statement "MyDataset.Last". The program simply exits to Winfows.
Executing it in the IDE, it gives the complicated message ".. access
violation at xxxx; read of address..".

Probably you freed either the form or one of the components
(form.close depending on close mode; component.free) without setting
the reference to nil.

After that you have an pointer pointing to random data, so any
access to it can give good data, can give bad data, or can cause an access violation.
.