Jump to content
  • Advertisement


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


is there a limit to many hdc's or DIB u can have?

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

my question is. is there a limit to how many hdc''s u can have created at any one time? and is there a limit to how many DIB''s u can create with CreateDIBSection(...) cause in my prog i have 4 dc''s the main dc hdc and 3 backbuffers mdc, cdc, ddc them i create 3 DIB''s one for each of the dc''s and then i blit a pic to the first buffer mdc and the copy that to the thrid buffer ddc then blit that to the screen but nothing shows up and if i blit the pic on mdc to cdc and blit that to the screen nothing shows up but if i comment out the last DIB and blit the pic from mdc to cdc and then blit cdc to the screen its there any ideas on way that happens?? thx for any help

Share this post

Link to post
Share on other sites
Are you using common DC's? Are you releasing them as soon as your finished using them?

This is from MSDN:
"Windows 95/98/Me: There are only 5 common DCs available per thread..." (documented here).

If your using common DC's you may want to consider using a private DC.

I believe that DIBSection's are limited only by available memory/resources.

[edited by - Solo on March 18, 2002 1:30:25 PM]

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!