Click here to Skip to main content
15,795,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an error, when switching to winowed mode, in the line, where the surface is releasing:


Can you help me?

The surface is
IDirect3DSurface9* gImageSrc = NULL;

            local_handle_result = direct_3D_device->CreateOffscreenPlainSurface(
                D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, // Surface is in video memory
                &gImageSrc, NULL);

Source topic is here
Video with NVidia 3D Vision[^]

I use d3dapp.cpp and rest files from C:\DXSDK\Samples\C++\Common\Src with some modifications.
Updated 20-Oct-10 4:03am
Anthony Mushrow 20-Oct-10 7:32am    
Would you be able to tell us what the error is perhaps?
[no name] 20-Oct-10 8:09am    
Assert in Windows 7 in module d3d9.dll.
Anthony Mushrow 20-Oct-10 13:29pm    
The assert should be able to tell you what's going wrong, that's what it's there for. Nobody can really help with the information you've given, the only things I can think of that could cause some kind of assert is that either the surface has already been released, it was never created in the first place (the function failed) or it's locked or something. Read the assert, look it up using google, you should be able to find your answer.
[no name] 21-Oct-10 3:14am    
Problem signature:Problem Event Name: APPCRASHApplication Name: AV VMMorpher.exeApplication Version:
Application Timestamp: 4cbc4dd6The name of the module with the error: d3d9.dllVersion of the module with the error: 6.1.7229.0
The time stamp module with the error: 4a28cae5Exception Code: c0000005Exception Offset: 0000f477OS Version: 6.1.7229.
Language Code: 1049
Additional Information 1: 0a9eAdditional Information 2: 0a9e372d3b4ad19135b953a78882e789Additional Information 3: 0a9eAdditional Information 4: 0a9e372d3b4ad19135b953a78882e789Read our privacy statement on the Internet:
If the privacy statement on the Internet is not available, check with its local variants:C: \ Windows \ system32 \ ru-RU \ erofflps.txt
[no name] 21-Oct-10 3:16am    
There is the source code of the function ( Is it not enouph?

1 solution

Program begun work. I think someone removed errors from Direct 3D. Becouse i only build project at home and test it.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900