how to debug in ref mode?

how to debug in ref mode?

Post by Mana Mantr » Mon, 03 Sep 2001 19:50:28



    // Show the frame on the primary surface.
    g_pd3dDevice->Present( NULL, NULL, NULL, NULL );

I can only know there is an access violation, but I don't know how to fix it
after a 10-depth stack:

D3DREF8! 076a4f20()
D3DREF8! 076a8260()
D3DREF8! 076a6244()
D3DREF8! 07689b96()
D3DREF8! 076885ea()
D3DREF8! 07688cc8()
D3D8D! 07540080()
D3D8D! 0756eb80()
D3D8D! 0756231a()
D3D8D! 0758cbda()
D3D8D! 0757e98e()
CD3DApplication::Render3DEnvironment() line 1816 + 27 bytes//   this
:g_pd3dDevice->Present( NULL, NULL, NULL, NULL );
CD3DApplication::Run() line 1640 + 8 bytes
WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, HINSTANCE__ *
0x00000000, HINSTANCE__ * 0x00000000) line 47
WinMainCRTStartup() line 198 + 54 bytes
KERNEL32! 77e97d08()

Thank you.

 
 
 

how to debug in ref mode?

Post by Philip Taylor [MS » Wed, 05 Sep 2001 03:22:18


what is happening in your render call?

what does the debug runtime output state?


Quote:>     // Show the frame on the primary surface.
>     g_pd3dDevice->Present( NULL, NULL, NULL, NULL );

> I can only know there is an access violation, but I don't know how to fix
it
> after a 10-depth stack:

> D3DREF8! 076a4f20()
> D3DREF8! 076a8260()
> D3DREF8! 076a6244()
> D3DREF8! 07689b96()
> D3DREF8! 076885ea()
> D3DREF8! 07688cc8()
> D3D8D! 07540080()
> D3D8D! 0756eb80()
> D3D8D! 0756231a()
> D3D8D! 0758cbda()
> D3D8D! 0757e98e()
> CD3DApplication::Render3DEnvironment() line 1816 + 27 bytes//   this
> :g_pd3dDevice->Present( NULL, NULL, NULL, NULL );
> CD3DApplication::Run() line 1640 + 8 bytes
> WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, HINSTANCE__ *
> 0x00000000, HINSTANCE__ * 0x00000000) line 47
> WinMainCRTStartup() line 198 + 54 bytes
> KERNEL32! 77e97d08()

> Thank you.