Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

kamrann

Crash on EndScene

This topic is 6489 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im learing D3D IM, and my program completely crashes on a call to EndScene. All im doing is rendering the same polygon to a backbuffer (using DrawPrim) and flipping, and repeating this process 100 times over without changing any settings or data each frame. Im using a VB and each frame I refill it with the same polygon data. The crash always happens on EndScene, but not actually in the same frame every time. Sometimes it might crash on EndScene in the tenth frame, other times in the fifteenth, etc. What could be causing this problem? thanks

Share this post


Link to post
Share on other sites
Advertisement
HELP please!!
Totally stuck with this.
Can anyone at least tell me what exactly EndScene does, and what D3D / DD objects it affects, so I can check for those parts of my code.

Cheers

Cameron

Share this post


Link to post
Share on other sites
It''s really just a signal to the driver, and what happens within it is really driver specific.

What card are you running this on? Is it software TnL or hardware TnL? Have you run it under the debugger with the debug runtime and checked out the D3D spew?

Share this post


Link to post
Share on other sites
Check out for Memory leak dude !!

Oe debug or code !! That''s the only way to do something in programming... !!


I will tell you a secret...

Programming is : 35% preparation (design), 5% coding, 60% debugging !!



Good Luck !!

Lowrad

Ps.. paste offending code if you what more help !

Share this post


Link to post
Share on other sites
ok, thanks

ive realized it doesnt crash if I use the RGB Emulation GUID
( i think its a GUID isnt it? ), but does if i use the HAL version. but i dont get why. the HAL driver is being enumerated, so i should be able to use it, right? are there any other things to check for other than the rendering bit depth cap matching? The enumeration of the HAL device says it needs vertices in increasing depth - what is this about and could it be a problem? - i''m using transformed and lit vertices anyway.

The card on my PC is quite old and basic - 4MB - and cannot do Hardware TnL, but if the Direct3D HAL driver gets enumerated, surely I should be able to use the normal HAL device, yes?

Also, I had no problem before I changed from DX5 to DX7 - could it be possible that my old card wont work properly with DX7?

thanks for any suggestions,

Cameron

Share this post


Link to post
Share on other sites
hi

yes, i''m definitely making the right BeginScene / EndScene calls, and in the right order - anyway, if it was that i''d just get an error return, not a system crash like I do.

I cant remember exactly what card it is - i''ll check - I think S3 Virge, 4MB something or other. Im not currently using the debug SDK - i''ll install that and see what it tells me.

One other thing I just remembered. In DX diagnostics, it says that the driver for my card, although working, is not certified by microsoft or something - could this be a problem?

thanks a lot

Cameron

Share this post


Link to post
Share on other sites
Uncertified just means it wasn''t submitted to and passed the Windows Hardware Quality Lab tests (WHQL.)

It''s nice to have a certified driver, but usually the latest or older (like an S3 Virge) drivers aren''t. My GeForce drivers, which are the latest from Nvidia, are uncertified.

Share this post


Link to post
Share on other sites
Ive re-installed DX SDK with the debug version. What is the debug spew though? I havent noticed any difference yet. How do I get more debug data?
Also, the crash using HALDevice seems to happen less in debug mode but still happens - if the system crashes, wont this stop me from getting any debug info anyway?

Cheers

Cameron

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!