So, I have this situation:
Solution
- -Project A
-FrmA - -Project B
-FrmB
My main app is in Project A, within this FrmA form there's a method that instatiates and call a method on FrmB within a try..catch which is inside a Project B, this FrmB has an throw within a second try..catch block which catchs the exception fine but doesn't throw it back to frmA catch block. Something like this:
FrmA:
try{
frmB.show();
}catch(Exception ex){
//Do things
}
FrmB_onLoad():
try{
object.method(); //method which generates the Exception
}catch(Exception ex){
throw ex; //which should go to frmA method
}
Now, the most intriguing thing is that when it's on debug mode or release mode on the Visual Studio it works great, but when I publish it to production I get this strange not-catching on try..catch on frmA.
Any guesses?
PS: I'm using VS2005(yeah, i know..)