>> Isn`t this done via vpleft->setParent(pwin)? I modified the example
>> 29FBOTexture, and within this example I can`t find an explicit 
>> assignement
>> like:
>>
>> beginEditCP(pwin);
>> pwin->addPort(vpright);
>> pwin->addPort(vpleft);
>> endEditCP(pwin);
>>
>> However, even this does not solve the crash.
>I'm sorry, must have missed that. Could you please try and run your
>program in a debugger and send the stack trace [1] of the point when it
>crashes, that would help focusing on the right place to find the problem.
>BTW for me the program does not really crash, it switches my video mode
>(even after commenting the glutGameMode call), prints:
>WARNING:  FBOViewport::render: no window!
>WARNING:  FBOViewport::render: no window!

The call stack doesn`t seem to be very helpful because OpenSG does not load 
symbols. I use VS2005 with the precompiled 1.8 release of OpenSG
However, it is necessary to assig the viewports manually to the window or is 
it sufficient to use setParent()?
Best regards,
Rene


     OSGSystemD.dll!00de0e10()
     [Unten angegebene Rahmen sind möglicherweise nicht korrekt und/oder 
fehlen, keine Symbole geladen für OSGSystemD.dll]
     msctf.dll!746a4fae()
     msctf.dll!746a4fb8()
     msctf.dll!746a4fae()
     msctf.dll!746b09cd()
     user32.dll!7e37b401()
     msctf.dll!746b0f0a()
     msctf.dll!746b0f0f()
     user32.dll!7e37b401()
     msctf.dll!746b13d4()
     msctf.dll!746b13d9()
     glut32.dll!00344844()
     glut32.dll!0034dbd0()
     glut32.dll!0034d50b()
     user32.dll!7e368734()
     user32.dll!7e368bd9()
     user32.dll!7e36885a()
     user32.dll!7e36882a()
     user32.dll!7e36882a()
     user32.dll!7e37a013()
     OSGSystemD.dll!00963865()
     opengl32.dll!5f0f699b()
> 
> 01hello.exe!osg::FCPtr<osg::FCPtr<osg::AttachmentContainerPtr,osg::Viewport>,osg::FBOViewport>::operator->()
>  
> Zeile 834 + 0x1b Bytes    C++
     01hello.exe!display()  Zeile 74 + 0x29 Bytes    C++
     glut32.dll!00344ac9()
     glut32.dll!0034490f()
     01hello.exe!main(int argc=1, char * * argv=0x0230fe20)  Zeile 318 + 0x8 
Bytes    C++
     01hello.exe!__tmainCRTStartup()  Zeile 597 + 0x19 Bytes    C
     01hello.exe!mainCRTStartup()  Zeile 414    C
     kernel32.dll!7c817067()
     OSGBaseD.dll!00780065()

The Line where it crashes is:
 return (FieldContainerTypeT *) Self::getElemP(Thread::getAspect());

in

template <class BasePtrTypeT, class FieldContainerTypeT> inline
FieldContainerTypeT *FCPtr<BasePtrTypeT,
                           FieldContainerTypeT>::operator ->(void) 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to