🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

DirectX Problem

Started by
-1 comments, last by ggs 24 years, 5 months ago
Hi. I''m using Delphi and a translated version of directX6 from Project JEDI @ www.delphi-jedi.org I have successfully created a ddraw object, set the coop level and changed the display mode. How ever when I add the code to free the ddraw object The program generates an error. Here is the code I use : // release the directdraw object if (ddraw_ptr <> nil) then begin ddraw_ptr._Release; ddraw_ptr := nil; // error generated here end; Using the assembly level debugger provided the line ''ddraw_ptr := nil'' generates a call the procedure called ''IntfClear''. This seams to release the object AND set the variable to nil. So do I need ''ddraw_ptr._Release'' which cause the error or am I doing this the wrong way?

This topic is closed to new replies.

Advertisement