// 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?
DirectX Problem
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 :
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement