Red Gate forums :: View topic - Problem with error handling in DevExpress XtraReport
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Problem with error handling in DevExpress XtraReport

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
ScottBeard



Joined: 01 Feb 2012
Posts: 2

PostPosted: Wed Feb 01, 2012 4:57 pm    Post subject: Problem with error handling in DevExpress XtraReport Reply with quote

HI, I'm evaluating SA at the moment. I'm using SA on my c# library and c# app. The library is being used to display a DevExpress XtraReport.

There is an exception (NullReferenceException) being raised in one of the report events. If I wrap my event code in try/catch then it's caught ok and I can deal with it. However if I don't do this SA doesn't catch the exception - the XtraReport just displays a simple message box.

For an additional problem, if I try/catch my code then call ExceptionReporting.Report to use the SA handler then it actually gets even worse - the SA error handling window does appear, but underneath it there's a modal message saying "Stack empty". Took me a minute or two to figure that out, as it looks like the app has locked up!
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 546

PostPosted: Thu Feb 02, 2012 6:36 pm    Post subject: Reply with quote

Sorry about this - on rare occasions our unhandled exception handler does let a few things go (usually because of manipulation of GUI thread under the feet of SA).

Are you able to create a minimalistic project that exhibits this behaviour so that I can reproduce here? This dramatically speeds up the resolution prognosis.

If not, I'll probably have to reproduce anyway so it might take a little while...
Back to top
View user's profile Send private message
ScottBeard



Joined: 01 Feb 2012
Posts: 2

PostPosted: Fri Feb 03, 2012 11:06 am    Post subject: Reply with quote

Unfortunately not at the moment, as I've gone on holiday, however if you have access to the xtrareports....

* I created a very basic report, linked to a simple xpcollection.
* I added a grouping level and a field from the bound xpcollection to the grouping footer.
* Added an event to the summary calculation event (can't remember the exact event name)
* In the event code I had some buggy code which generated a null exception error - there wasn't anything fancy going on - you could just declare a null string and query it's properties to get the same effect.

Thanks.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 546

PostPosted: Mon Mar 05, 2012 3:46 pm    Post subject: Reply with quote

Just to let you know- I tried to reproduce but was unable to find the same problem. If you could send a small reproduction problem I will keep trying to reproduce. I'm sorry but the bar is very high here when it comes to establishing a problem with any particular build.
Back to top
View user's profile Send private message
manlyboy



Joined: 17 Apr 2012
Posts: 15

PostPosted: Tue May 15, 2012 1:17 pm    Post subject: Reply with quote

Just thought I would mention that I am experiencing the same thing here.

To get around the issue I [DoNotObfuscate] the XtraReport designer namespace for each report.

I'll create a small project in the next few days and let you have it if the OP didn't send you one.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group