[futurebasic] CloseDialog or DisposDialog

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2001 : Group Archive : Group : All Groups

From: Masakazu Nakao <PGA02150@...>
Date: Sun, 28 Oct 2001 01:15:41 +0900
Dear friend,

I have a primitive question.

When I open dialog resource with NEWDIALOG,
I used CloseDialog for a long time, but new OS-X does not support
CloseDialog.

I happened to find DisposDialog.
Which should I used, CloseDialog or DisposDialog?
Is there any harmfull effect to use DisposDialog in stead of CloseDialog?

FB^3 seems not to care about either CloseDialog or DisposDialog at least r5.

According to Think reference CD (this time I happened to read this section)
DisposDialog is used to release the dialog record and related storage area
that have been allocated (dStorage was NILL when created).
Non-allocatable object on the heap.

CloseDialog does not release the dialog record and the item list storage.
(dStorage  is not nil)
The DialogRecord will go into the caller-created buffer.

Can I used them interchangeably with OS-X and OS 9.2.1( FB^3 )?


-- 

Masa
masa.nakao@...