The source of the problem looks more a buffer overrun (c0000005) to me.
See the exeception code
>Hi Experts!
>
>I have a form class with a grid which sets itself up on the fly using details from a cursoradapter specified in the form.
>
>I used to encounter this BEX problem when I run the form from a menu using the Command type in the Menu Builder. I read somewhere that this (forms with grid in it) poses a problem when run the VFP menu using Command. So, I used a Procedure instead, then calling the form (DO FORM frmFormWithGrid).
>
>Right now though, it seems to have gotten worse! Even running the same form from the command prompt generates that BEX problem!
>
>Thanks in advance for your help!
>
>This is the full text of the error:
>
>Problem signature:
> Problem Event Name: BEX
> Application Name: vfp9.exe
> Application Version: 9.0.0.7423
> Application Timestamp: 49a31c0c
> Fault Module Name: StackHash_e98d
> Fault Module Version: 0.0.0.0
> Fault Module Timestamp: 00000000
> Exception Offset: eefeeefe
> Exception Code: c0000005
> Exception Data: 00000008
> OS Version: 6.1.7601.2.1.0.256.1
> Locale ID: 13321
> Additional Information 1: e98d
> Additional Information 2: e98dfca8bcf81bc1740adb135579ad53
> Additional Information 3: 6eab
> Additional Information 4: 6eabdd9e0dc94904be3b39a1c0583635
>
>Dennis
Gregory