Hi Waleed ---
I have avoided the problem in runtime primarily by getting rid of *any* code that references the screen AFTER the READ EVENTS command, for example ZOOM WINDOW SCREEN MAX or anything like that.
Also, I noticed that ON SHUTDOWN READ EVENTS would kick off the problem, but ON SHUTDOWN DO shutdown IN myutils.PRG where I shut down in a UDF would work fine.
You can get around this problem for the most part with these tips.
>Hi all,
>
>Is there anything new about the killer C0000005 error?
>
>I'm having it so often that I switched back to 3.0b!
>
>KB articles have so many 'kbbending'!
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05