• Advertisement

Archived

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

Direct3DCreate8

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

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
Advertisement
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
IT WORKS!!! thank you VERY MUCH! this was really giving me a hard time...

Share this post


Link to post
Share on other sites

  • Advertisement