G
Greg Robinson
We have a MdiParent that calls Show on a MdiChild.
Inside the MdiChild Load Event handler, we do a database trip. The db trip
causes a SqlClient.SqlException.
Back in the MdiParent, we catch and handle the exception.
This works when running in Debug mode from the IDE. The exception is caught
and handled per the code wriutten inside the catch block.
This does not work when not running in debug mode from the ide or when
running the exe from a private folder. The exception is never caught by the
MdiParent. The exception bubble up and is caught by our last chance handler
(Application.ThreadException).
What is the differnece in the environments?
Inside the MdiChild Load Event handler, we do a database trip. The db trip
causes a SqlClient.SqlException.
Back in the MdiParent, we catch and handle the exception.
This works when running in Debug mode from the IDE. The exception is caught
and handled per the code wriutten inside the catch block.
This does not work when not running in debug mode from the ide or when
running the exe from a private folder. The exception is never caught by the
MdiParent. The exception bubble up and is caught by our last chance handler
(Application.ThreadException).
What is the differnece in the environments?