Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


MadrMan

Member Since 30 Oct 2009
Offline Last Active Mar 29 2012 03:35 AM

#4869707 D3DXCreateTextureFromFile == D3D_OK but crashing.

Posted by MadrMan on 06 October 2011 - 02:20 AM

Creating a thread from DllMain is actually the correct way to do it.

However, unless you created your device with D3DCREATE_MULTITHREADED there's a good chance it will crash when you load the texture as resource creation in dx9 is not threadsafe and should only done from the main thread (correct me if i'm wrong)

Are you trying to make some sort of plugin system for your game or a generic dll that you can plug into any dx9 game?

What error are you getting anyway?


PARTNERS