Hi,
I have an application where I need the form to display a grid consisting of fields from several tables AND some additional fields that don't exist in any physical tables and only make sense in this particular form (and, sadly, they *can't* be simulated by calculated fields). The idea is, I create a cursor with all necessary fields and then call the form. To debug the form in stand-alone mode, I created a physical table using a SQL SELECT operator taken directly from the calling program so that its structure would be identical to the cursor I'll be using in real work. While debugging, everything went perfectly, but once I try to call the form from the upper-level program, VFP crashes to the desktop without any warnings or even vfp7err.log records.
It's even more weird: I set a breakpoint on the SELECT ... INTO CURSOR operator, run the program, once it stops I copy the SELECT into the command window without any changes, then issue DO FORM from the command window and it runs with the cursor I just created by hand. Then I make a single step in debugger, allowing the program to create *exactly* the same cursor, issue another DO FORM, and it crashes.
What's most frustrating, I already used that "cursor-substituting-for-table" method previously, and it worked all right. But apparently there's some underwater rock somewhere I didn't take into account this time.
Thanks for any theory on what might be happening.
AutoOpenTables and AutoCloseTables properties of the form are set to False, DataSession is Default.
I have an application where I need the form to display a grid consisting of fields from several tables AND some additional fields that don't exist in any physical tables and only make sense in this particular form (and, sadly, they *can't* be simulated by calculated fields). The idea is, I create a cursor with all necessary fields and then call the form. To debug the form in stand-alone mode, I created a physical table using a SQL SELECT operator taken directly from the calling program so that its structure would be identical to the cursor I'll be using in real work. While debugging, everything went perfectly, but once I try to call the form from the upper-level program, VFP crashes to the desktop without any warnings or even vfp7err.log records.
It's even more weird: I set a breakpoint on the SELECT ... INTO CURSOR operator, run the program, once it stops I copy the SELECT into the command window without any changes, then issue DO FORM from the command window and it runs with the cursor I just created by hand. Then I make a single step in debugger, allowing the program to create *exactly* the same cursor, issue another DO FORM, and it crashes.
What's most frustrating, I already used that "cursor-substituting-for-table" method previously, and it worked all right. But apparently there's some underwater rock somewhere I didn't take into account this time.
Thanks for any theory on what might be happening.
AutoOpenTables and AutoCloseTables properties of the form are set to False, DataSession is Default.