J
John Bowman
Hi All,
I'm hoping someone can help me out. I have a Windows Form dialog (call it
dialog1) that responds correctly to a custom event generated by another
class in my app. Inside this custom event handler that exists inside the
Windows Form object I need to load/display another Windows Form dialog, call
it dialog2. So, I dutifully instantiate Dialog2 and call it's ShowDialog()
method. Dialog2 happens to have a button on it that performs a utility
function which in turn instantiates and calls ShowDialog() on yet another
Windows Form...Dialog3. When Dialog 3 completes it's work, Dialog2 crashes
out, back to an exception handler way back in Dialog1 complainiing that an
External component threw an exception. This is highly reproducible... even
in a test app. Here's another weird part. If Dialog2 is directly
instantiated from a button on Dialog1, then the problem does not occur. I
tried calling Invoke from inside the custom event handler in Dialog1 to call
a delegate method to perform the work, but that makes no difference.
What gives? Any help would be appreciated.
TIA,
I'm hoping someone can help me out. I have a Windows Form dialog (call it
dialog1) that responds correctly to a custom event generated by another
class in my app. Inside this custom event handler that exists inside the
Windows Form object I need to load/display another Windows Form dialog, call
it dialog2. So, I dutifully instantiate Dialog2 and call it's ShowDialog()
method. Dialog2 happens to have a button on it that performs a utility
function which in turn instantiates and calls ShowDialog() on yet another
Windows Form...Dialog3. When Dialog 3 completes it's work, Dialog2 crashes
out, back to an exception handler way back in Dialog1 complainiing that an
External component threw an exception. This is highly reproducible... even
in a test app. Here's another weird part. If Dialog2 is directly
instantiated from a button on Dialog1, then the problem does not occur. I
tried calling Invoke from inside the custom event handler in Dialog1 to call
a delegate method to perform the work, but that makes no difference.
What gives? Any help would be appreciated.
TIA,