Delete Field from Menu causes crash

I have a file that I want to convert for other uses and was trying to trim down the number of fields. Using Field>Delete Field worked for a few of the fields, but then it caused PanX to crash (no hang, just crash). Started PanX and tried again. The deleted fields were gone, but every attempt to delete more fields (I tried several different ones) caused a crash.
I thought it was maybe because a form was open that used that field, but tried it with a form without the field and with no forms and still crashed.
Anyone else run into this?

I vaguely recall sometime in the distant past that I had a similar problem with crashing after trying to delete a whole bunch of fields. I think I was able to remove the additional field by using a procedure to eradicate them. I would try making a temporary procedure to pick the fields you want removed and then deleting them.

let theFields=""
superchoicedialog info("fields"),theFields,{buttons="Delete;Cancel",
if info("dialogtrigger")="Delete"
    looparray theFields, ¶, element, index
        field (element)

The dialog will allow you to select multiple fields to delete at one time. No guarantee this won’t crash as well but it might be worth a shot.

@martinmc if you continue to have this problem you can send me the database and I’ll try to run it under the Xcode debugger. I have not heard of a crashing problem with deleting fields.

I suspect it is a very corrupted file. I’ve tried some different things from the menu and gotten bad results.
Show All Fields resulted in all of the filenames being erased.
Field>Morph>Fill With Value…"" crashed PanX

copy of file sent to Jim.

Using a noshow before a deletefield statement and followed by a showpage will crash Panorama X. This happens even if there is an endnoshow statement before the showpage. If I use the showother statement with the 99 code it redraws the datasheet properly and does not crash.

So, this crashes Panorama X:


But, this does not:

showother «»,99

Note that it will not crash if the datasheet is not open but will crash even if it is open but not the active window.