Skip to main content
GameDev.net gamedev.net
🔒 Locked

DirectX question

Started by ggs Jan 15, 2000 at 7:04 AM 0 replies 600+ views
Original Post
ggs
ggs
Hi. I'm using Delphi5. First question. On the closure of an app using directX, does DirectX free its self? Or does the app have to do it? If so then the second question applies. I have , I think, an unique directX question. Is there any way of getting the GUID of the current video driver to use with DirectDrawCreate. The reason is when I call DirectDrawCreate twice I need some was for DIRECTX NOT ME to conferm that a Direct draw object using the current display driver exist. The reason i'm doing this is I suspect when this code snippit 'ddraw_ptr := nil' is run, it frees the object it points to. But I need some way of testing this. I know I can just look at the % of resources consumed and then loop through this code snippit var ddraw_ptr: IDirectDraw; ... ddraw_ptr := DirectDrawCreate(nil,ddraw_ptr,nil); ddraw_ptr := nil; I want a more elegent way of testing AND not having to restarting the computer all the time. Edited by - ggs on 1/15/00 7:26:14 AM

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.