Hello Christoph,
Christoph Schäfer wrote:
> I recently had some time to sneak in this problem and it turned out the
> QTWindow::create() method fails to pas the if statement - Any hints what
> may go wrong? I compared to the GLUTWindow class but couldn't figure out
> something significant...
>
> inline QTWindowTransitPtr QTWindowBase::create(void)
> {
> QTWindowTransitPtr fc;
>
> if(getClassType().getPrototype() != NULL) // fails this test....
> {
> FieldContainerTransitPtr tmpPtr =
> getClassType().getPrototype()-> shallowCopy();
>
> fc = dynamic_pointer_cast<QTWindow>(tmpPtr);
> }
>
> return fc;
> }
hm, the prototype is created when the FieldContainerType object is
initialized. The type normally gets registered during static init and
the initialization happens when osgInit runs.
Couple of things to check that come to mind: are you attempting to
create an object before osgInit is called? Are you linking against
libOSGWindowQT.dll? Does that DLL get loaded?
Hope it helps,
Carsten
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core