Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    94
  • comments
    127
  • views
    83649

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

Sign in to follow this  
Seriema

263 views

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)

blubb!
Sign in to follow this  


2 Comments


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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!