I am getting an unusual problem. Sometimes, when running my code I get a big red x on my xtra report preview. the report only contains
a richtextedit control that I populate before previewing. I attach a screen shot. you can juts see it but sometimes the red x
is much bigger. If I hover over the red x I can see a message ' object reference not set to … etc (see this on the attached)
I didn't get an exception thrown, which I would expect for this type of error.
How can I debug this if the exception does not get thrown ???
The odd thing is, If I run the same code some other time, it is ok ???
I have searched the database and found other mentions of big red x is different tools but couldn't find a solution to this
Regards
Chris Anderson
Hello Chris,
Thank you for the provided screenshot.
I'm afraid that we are unable to precisely answer this question without reviewing a sample project that demonstrates this issue in action.
In the meantime, I suggest you attach an instance of Visual Studio to the application to obtain a callstack of the exception. This will be also helpful.
Thanks
P.S. You can also download the latest trial of version v13.2, convert this project to this version and check whether the issue persists.
Hi Dmitry
Thanks for your reply. I will attempt to put this into a small project to send to you, in the meantime how do iattach an instance of Visual Studio to the application to obtain a callstack of the exception ??
If you review my question, you will note I didn't get an exception!!, it just showed on a tooltip hovering
over the red x which seems very odd.
Chris Anderson
Hello Chris,
The red cross you see in the preview means that the exception was raised, but it was handled by the XtraReport itself. If you attach VS and enable exception handling, you will be able to get the call stack. We look forward to your comments once you’ve had an opportunity to implement our suggestion.
Hi Andrew
How do I go about attaching VS to get call stack??? Normally I get an exception in try/catch loop, but this didn't catch the exception in this case
Chris
Hello Chris,
In the main menu of VS, select Debug >> Exceptions… and check the "Common Language Runtime Exceptions" checkbox in the invoked dialog. (Also make sure that the "Enable Just My Code" checkbox is disabled in the Tools >> Options… >> Debugging list.) Then start your application.