Subject Re: Error: Memory Access Violation
From Andy Taylor <andy.taylor.1959@outlook.com>
Date Tue, 16 Nov 2021 18:01:50 -0500
Newsgroups dbase.getting-started

Milind,

It sounds like your "similar" form is clashing with the "first" one.  Leaving a few seconds allows the first one to close and get properly released from memory.
Are you re-using the same form name by any chance... declaring a new form when the first has not yet closed may well lead to confusion of this sort.

If that does not help try reducing the problem to essential code and posting that for us to have a look at.

Andy

> Scenerio:
> While opening a form from main form. Form is displaying info in a grid called from a sql. There are 3 grids which display info.
>
> Issue
> When the form is closed and another simlilar type form is opened  'Error:  Memory Access Violation'  is recd. However if waited for few secs and tried to reopen no such error is recd and form opens smoothly.
>
> Any pointers ?
>
> Regards
>
> Milind Nighojkar