Hi!

Yes, the problem seems to be GetRenderWindowPart(). Before reproducing the 
error, it returns 0x05f65178 {d=??? }
qSMWE gets the value 0x05f65008 {d={...} }

When causing the exception, GetRenderWindowPart() returns 0x00000000 which is 
also written to qSMWE.

But how could it be, that the plug-in is not built or no instance available, 
when it was before?

Best Regards,
Martin



________________________________
 Von: Sascha Zelzer <[email protected]>
An: Martin Tatzber <[email protected]> 
CC: "[email protected]" <[email protected]> 
Gesendet: 22:14 Montag, 18.Februar 2013
Betreff: Re: [mitk-users] Tutorial Step 9
 
Hi,

it looks like "GetRenderWindowPart()" returns an invalid/NULL pointer (if there 
is no render window available yet) or the dynamic cast returns NULL (e.g. the 
org.mitk.gui.qt.stdmultiwidgeteditor plug-in is not build or no instance of the 
QmitkStdMultiWidget editor is available).

Any way, you should check the return value of "GetRenderWindowPart()" and of 
the dynamic cast (the generated code should do the same).

- Sascha

On 02/15/2013 11:02 AM, Martin Tatzber wrote:
> QmitkStdMultiWidgetEditor* qSMWE = 
> dynamic_cast<QmitkStdMultiWidgetEditor*>(GetRenderWindowPart());
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to