Archived

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

lupo_r

Direct3DCreate8

Recommended Posts

for some strange reason a call to direct3dcreate8 allways fails in my application if i ran another window than the main application window before making the call. that means, i implemented an intro which is shown in a new window. everything works well and i''m pretty sure i released every single interface and pointers but when i call direct3dcreate8 afterwards it fails (in fact it doesn''t only fail using my error routines but it crashes). to emphasize: the two parts (intro and main app) work fine each on their own, but if i try to run them after each other it crashes. i''ve allready gone mad on this and i''d really appreciate ANYTHING, no matter if it''s just a guess or hint or whatever PLEASE HELP ME!

Share this post


Link to post
Share on other sites
After your release call Sleep(100);
This is because you are using a COM interface and when you use the Release() you are sending a quei to COM and could take some time to process.

If it doesn´t works try with more time on the sleep call.

Share this post


Link to post
Share on other sites