G
Guest
Hi,
I am having trouble with following piece of code:
Trace.Assert(args.Length >=1,"Invalid Argument list. Statement Date is
mandatory input");
I expect the code to stop execution and exit when args.length >= 1
condition is not true. I am using C#.
But whats happening is that i see dialog box when this condition is not
true even if i am in release mode. If i remove defaultevenlistner then code
does not show the daialog box but at same time it does code does not exit.
Code continues past the assert statement. What am i missing?
Thanks
I am having trouble with following piece of code:
Trace.Assert(args.Length >=1,"Invalid Argument list. Statement Date is
mandatory input");
I expect the code to stop execution and exit when args.length >= 1
condition is not true. I am using C#.
But whats happening is that i see dialog box when this condition is not
true even if i am in release mode. If i remove defaultevenlistner then code
does not show the daialog box but at same time it does code does not exit.
Code continues past the assert statement. What am i missing?
Thanks