Reputation: 5203
We have a Form based application, which contains user controls in tabs. One of the user control has a grid. A popup is displayed to modify certain values of the grid. If we click the OK button of the popup, Dispose is called on the Form. The problem is present in Win Xp 64 bit. It is working fine in WIn XP 32 bit.
How can I know that which portion is calling Dispose of the Form? How can I correct the issue?
Upvotes: 0
Views: 180
Reputation: 49649
You can find out who calls Dispose()
on your form by setting a breakpoint on the Dispose()
method of your form, attach the debugger, click at on the OK button and when the breakpoint gets hit look at the callstack.
Upvotes: 4