PDA

View Full Version : Umm err is this right???



Armand
19-11-2002, 11:11 AM
Okay,

Ive downloaded the Jedi Dx8 stuff.
Now all the C apps Ive written with DX requiers a device->Release() call.
When I try that in delphi it dies. badly.

In the simple app thats with the delphi stuff it just sets the device to nil.

Is this right??
Whats going on here, is there some method I can't trace into going on or what?

Armand.

Useless Hacker
19-11-2002, 11:15 AM
In Delphi you do not need to call Release, since Delphi calls it automatically when you set the reference to nil. i.e, instead of doing this:
MyInterface._Release;
MyInterface := nil;
you simply say:
MyInterface := nil;

Armand
19-11-2002, 11:22 AM
Useless Hacker: Thanksfor the quick responce.
I hoped it was something like that but wasn't sure.

Cool.

Useless Hacker
19-11-2002, 11:23 AM
My pleasure. :)