locked
Error Anomaly in Control Valid Events RRS feed

  • Question

  •  

    Hi...

    I'm getting some very weird problems when an error occurs in the valid event of a form combo box.

    I am attempting to handle form errors within a TRY block that wraps a READ EVENTS.  When an unhandled form error occurs, the CATCH releases the form, and then evokes the READ EVENTS again.  In this way, I can dump the form without losing the whole app.

    This methodology works fine - except when errors occur in valid events for combo boxes, text boxes, and edit boxes!!!!  For some reason in these cases, the form cannot be released - almost as if a reference to the form or form-object is being maintained somewhere that I am unaware of, and this is preventing the form and it's objects from being destoyed.

    This problem can be easily reproduced with the following code:

    LOCAL frm

    SET CLASSLIB TO misc

    TRY

       frm = CREATEOBJECT("frmCrash")

          frm.Show()

          READ EVENTS

    CATCH

       frm.Release()

    ENDTRY

     Any takers?

    Tuesday, March 13, 2007 4:27 AM

Answers

  • I see you answered yourself this in another thread.
    Wednesday, March 14, 2007 10:07 PM

All replies

  • I see you answered yourself this in another thread.
    Wednesday, March 14, 2007 10:07 PM
  • No, I am still at a loss as to what to do.
    Wednesday, March 14, 2007 10:14 PM