Informix Error -50130: An attempt was made to close a window while a modal popup window contained by it was still being shown. This is not allowed; close the modal popup window first.
Cause and resolution
An attempt was made to close a window while a modal popup window contained by it was still being shown. This is not allowed; close the modal popup window first.
This message is generated by ixApp or ixWindow. To ensure the modality of the dialog, you cannot exit the application or close a window by any means while a modal window (such as a dialog box) is being shown. (It is also illegal because you would be trying to delete the modal window while it was trying to handle the event. That will crash some graphical user interfaces.)
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-50130 is raised by the ixApp class in the Window Painter GUI builder library — per the official guidance:
This message is generated by ixApp or ixWindow. To ensure the modality of the dialog, you cannot exit the application or close a window by any means while a modal window (such as a dialog box) is being shown. (It is also illegal because you would be trying to delete the modal window while it was trying to handle the event. That will crash some graphical user interfaces.)
- An attempt was made to close a window while a modal popup window contained by it was still being shown. This is not allowed; close the modal popup window first, per the official guidance — the direct, documented condition.
Solutions / Resolution
- Adjust the calling code to respect the constraint named in the message, per the official guidance — no other resolution is documented.
Examples
N/A
No specific triggering statement is documented beyond the class-library condition described above.
Diagnostic Checks
- Check the specific value, object state, or call sequence that
ixAppflags here, against the constraint the official guidance describes.
Related Errors / Related Topics
- -50131 — "Display buffer is full - clear it?" Another
ixApp-related condition in this set. - -50127 — "Resources to allocate an object were unavailable." Another
ixApp-related condition in this set.
An attempt was made to close a window while a modal popup window contained by it was still being shown. This is not allowed; close the modal popup window first.