Advertisement

Why is DX crashing?

Started by September 16, 2000 02:38 PM
2 comments, last by JwayneT 24 years, 3 months ago
Evening,

I''m having a problem with directdraw. It allways crashed my computer when I exit. I copied the shutdown code from Microsofts DX page, so I don''t know what I''m doing wrong. The program itself runs fine, so I''m kind of clueless of what''s going on. a.h{text-decoration:none;color:blue;};a.h:hover{text-decoration:underline;background:red;};

Snootchie Bootchies!

-=CF=-
a.h{text-decoration:none;color:blue;};a.h:hover{text-decoration:underline;background:red;};

Why is it called a hot water heater? Isn't it cold when it goes in the tank?

[email=jtaylor@gtemail.net" class="h]-=CF=-[/email]
Hi.

JwayneT: Please try this, either disable the code that changes the display mode or set your desktop''s display mode to match the one used by your directx application, and the run your application normally. In my case, this prevents the error I am talking about in the paragraphs below. (Of course, this is not an aceptable solution, it is just a test.)

When I close my DirectDraw application, I get some sort of "accoess violation" error in the debug output of Visual Studio, generated by either Kernel32 or GDI32. The error shows as soon as I call "ExitProcess". So here I am waiting for answers too .

I compiled a DirectDraw SDK sample and it caused the same error. I ran the pre-compiled version of the same sample included with the SDK and the same error, so it is probably not the compiler.

Topgoro


;You are not a real programmer until you start all your sentences with a semicolon
We emphasize "gotoless" programming in this company, so constructs like "goto hell" are strictly forbidden.
Advertisement
Hi.

Update:

JwayneT: Let me guess... you have a multi-monitor don''t you? If you do, I recomend that you try these tests for aditional troubleshooting.

I have 2 monitors connected to the same machine using one AGP and one PCI cards.

Whenever I ask DirectDraw for a particular display device by providing it with with a GUID uppon it''s instance creation, I get the problem I described in my preivious post. It does not matter which card is the primary, it does not matter how many or which of the cards by itself I install, I get the problem.

However, again, it does not matter which card is the primary, it does not matter how many or which of the cards by itself I install, if I create the DirectDraw object for the *PRIMARY* display (eg, setting the lpGUID on the DirectDrawCreate function to NULL) the application apears to be working flawlessly (even changing display modes).

Topgoro


;You are not a real programmer until you start all your sentences with a semicolon
We emphasize "gotoless" programming in this company, so constructs like "goto hell" are strictly forbidden.
Accually no,

I''m not running multiple monitors, I will check into the DirectDrawCreate function and make absolutly sure that I have implemented it right.

a.h{text-decoration:none;color:blue;};a.h:hover{text-decoration:underline;background:red;};

Snootchie Bootchies!

-=CF=-
a.h{text-decoration:none;color:blue;};a.h:hover{text-decoration:underline;background:red;};

Why is it called a hot water heater? Isn't it cold when it goes in the tank?

[email=jtaylor@gtemail.net" class="h]-=CF=-[/email]

This topic is closed to new replies.

Advertisement