Jump to content
Sign in to follow this  
  • entries
  • comments
  • views

premature optimization IS the sqrt(all_evil) // !!

Sign in to follow this  


everything was going just peachy! just finished the write/remove from registry code. When I realized something during debug. Each time windows wants a thumbnail, it creates and then destroys my COM object!!! damnit... that's the short of it all: damnit!

My COM object uses outside .dll's for rendering, so that new filetypes can be easily added. After posting here on gamedev and another forum, AND chatting on #gamedev the best solution was to load all the .dll's in the constructor of my COM object and store the function pointers in a map (where they key was the filetype).

Argh, but that was a complete waste of time! Since ALL libraries will now be opened and closed instead of just the one needed... doh!

luckily I save a copy after each successfull version :P (yeah, should use CVS but don't have a server yadayada)

Sign in to follow this  


Recommended Comments

Just when you think everthing's going peachy, Windows comes to the rescue! Don't you love 'em?

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!