My initialisation:
osgInit(0,NULL);
myWin = NullFC;
NodePtr scene = makeTorus(.5, 2, 16, 16);
mgr = new SimpleSceneManager;
RECT& rc = *(RECT*)di.prcBounds;
HDC hdc = di.hdcDraw;
int nPixelFormat;
static PIXELFORMATDESCRIPTOR pfd = {
sizeof(PIXELFORMATDESCRIPTOR), // Size of
this structure
1, // Version of
this structure
PFD_DRAW_TO_WINDOW | // Draw to
Window(not to bitmap)
PFD_SUPPORT_OPENGL | // Support
OpenGLcalls in window
PFD_DOUBLEBUFFER, //
Doublebuffered mode
PFD_TYPE_RGBA, // RGBA Color mode
24, // Want 24bit
color
0,0,0,0,0,0, // Not used to
select mode
0,0, // Not used to
select mode
0,0,0,0,0, // Not used to
select mode
32, // Size of
depth buffer
0, // Not used to
select mode
0, // Not used to
select mode
PFD_MAIN_PLANE, // Draw in main
plane
0, // Not used to
select mode
0,0,0 }; // Not used to
select mode
// Choose a pixel format that best matches that described in pfd
nPixelFormat = ChoosePixelFormat(m_hDC, &pfd);
// Create the rendering context
m_hRC = wglCreateContext(m_hDC);
myWin = WIN32Window::create();
myWin->setHwnd (this->m_hWnd);
myWin->setHdc(m_hDC);
myWin->setHglrc(m_hRC);
// init the OSG window
myWin->init();
Patrik Mueller schrieb:
> Hi Daniel,
>
> sending your initialization method could also help!
>
> Greets,
>
> Patrik
>
> Dirk Reiners schrieb:
>
>> Hi Daniel,
>>
>> Daniel Zuidinga wrote:
>>
>>> I can“t find my fault. Please can anybody help me?
>>>
>>> The error comes in:
>>> myWin->init();
>>>
>>> the windows message says:
>>> "Unbehandelte Ausnahme bei 0x1022fb10 (msvcr80d.dll) in tstcon32.exe:
>>> 0xC0000005: Zugriffsverletzung beim Lesen an Position 0x00000000."
>>>
>>> the list of calls in VS says:
>>> "> msvcr80d.dll!strlen(unsigned char * buf=0x0012f074) Zeile 81 Asm
>>> msvcp80d.dll!std::char_traits<char>::length(const char *
>>> _First=0x00000000) Zeile 559 + 0x9 Bytes C++
>>> msvcp80d.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char>
>>>
>>> >::assign(const char * _Ptr=0x00000000) Zeile 1042 + 0x9 Bytes C++
>>> msvcp80d.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char>
>>>
>>> >::basic_string<char,std::char_traits<char>,std::allocator<char>
>>> >(const char * _Ptr=0x00000000) Zeile 644 C++"
>>> etc...
>>>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users