Original Post
Hi. i''m using Delphi5 and a translated version of DirectX6.
I can successfully create a direct draw object, set the coop level and change the display mode. How ever when I when a add the code to dispose of the ddraw object, my program generates 3 errors when it finishes.
Here is the code i''m using the release to object.
var ddraw_ptr : IDirectDraw;
...
// release the directdraw object
if (ddraw_ptr <> nil) then
ddraw_ptr._Release; // this line generates the errors
Am I doing this right? If not how can i fix it?
I''m not too sure if this is the right method.
Thanks for any help