Page 1 of 1

Error editing from preview

Posted: Sat Dec 08, 2007 7:34 pm
by Fabio Pagano
Using Vs2005, StimulReport version 2007.3.30.0.

I have created a form with the preview control in it. I load a serialized report and i see it in preview.

When i go in edit page from the editor and then i switch to another window, an error raises:

"System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.AxHost.OleInterfaces.AttemptStopEvents(Object trash)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)".

Sometimes the error is thrown if i simply move the mouse over the designer.

I've tried the Custom Preview example directly loading my report from serialized file, and it works fine.

My infrastructure is very complex, is not simple and linear like "Custom preview" sample, so it is for me difficult to understand where is the problem.

Now i'm going on with tests, but if anyone can help it will be appreciated.

Thanks.

Error editing from preview

Posted: Sun Dec 09, 2007 2:15 pm
by Fabio Pagano
I've investigated more, it seems to be a problem with my code regarding an object (of mine) not correctly disposed.

In case i'll post again.

Thank you.