Hello team,
We are working on a legacy VB6 app. We added a new dialog form and are showing it using vbModal. Upon closing this form, the program crashes when run as a compiled exe, but works fine when running in the IDE.

When it crashes, the default debugger on this machine (VS 2008) states that it is an unhandled Win32 exception, with the message "floating point inexact result" (hex = 0xC0008F).
It should be stated that we are not doing any floating point math of any kind.

As a test, we made a blank form and just call it:
MyForm.Show vbModal
After the form shows, the crash occurs upon clicking the "X" button.

Prior to this, the crash will occur with "Me.Hide" as well as "Unload Me".

Any ideas?