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

gImageSrc->Release();


Can you help me?

The surface is
IDirect3DSurface9* gImageSrc = NULL;

            local_handle_result = direct_3D_device->CreateOffscreenPlainSurface(
                cxImage,
                cyImage+1,
                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.
Posted
Updated 20-Oct-10 3:03am
v3
Comments
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: 1.0.0.5
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.2.0.0.256.1
Language Code: 1049
Additional Information 1: 0a9eAdditional Information 2: 0a9e372d3b4ad19135b953a78882e789Additional Information 3: 0a9eAdditional Information 4: 0a9e372d3b4ad19135b953a78882e789Read our privacy statement on the Internet:http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0419
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 (http://www.codeproject.com/Questions/117795/Video-with-NVidia-3D-Vision.aspx). 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
 
v2

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