Hello,
I have the following code:
try
{
Salarii.Editors.AngajatiNewFrm _angNewFrm = new
Salarii.Editors.AngajatiNewFrm();
_angNewFrm.Connection = this.Connection;
_angNewFrm.ShowInTaskbar = false;
_angNewFrm.ShowDialog();
_angNewFrm.Dispose();
}
catch ( Exception ex )
{
Salarii.Exceptions.ExceptionFrm frm = new
Salarii.Exceptions.ExceptionFrm();
frm.Exc = ex;
frm.ShowDialog();
frm.Dispose();
}
This only a part from a big project.
My problem is that: if I run the application from Visual Studio than if
there is an error in try block than the exception is catch and my
Exceptions Form is displayed, but if I run the generated executable and
I produce the same error in try block than my Exception form is NOT
displayed. I am talking about the same error! I tried to put a
MessageBox in catch block, but is displayed only if I run from Visual
Studio.
Can somebody help me with this?
Thanks in advance!
Best regards,
O