Jump to content
  • Advertisement

Archived

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

KingsRevenge

Debug and Locking

This topic is 6262 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

I have a question, whenver I debug my windowed app, and I have code inside of a LockRect() UnlockRect code block, the app freezes on my comp. I can still move the mouse and stuff but I cna''t exit out or anything my only restort is to press the restart button on my case. Is there anyway to fix or get around this besides me having to comment out the block between LockRecta nd UnlockRect to be able to debug hte rest of my app. BTW the app does work, I just need to debug it to figure something out about it. Eric Wright o0Programmer0o AcidRain Productions

Share this post


Link to post
Share on other sites
Advertisement
This should be in the DirectX forum, since it''s obviously about DirectX.

Anyway, in answer to your question, pass a D3DLOCK_NOSYSLOCK to the LockRect() method. Normally, DirectX puts a critical system lock between your Lock and Unlock calls. This ensures that no video mode changes occur while the surface is locked (thus invalidating it).


codeka.com - Just click it.

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!