Hello Bryan!
Thursday May 01 1997, Bryan Smith writes to All:
BS> Can anybody provide some insight into what is going on here ? Did
BS> assigning FontDialog.Font to Bodyfont and then freeing Bodyfont have
BS> the effect of freeing FontDialog.Font, which was not supposed to be
BS> freed ? I'm guessing
That sounds reasonable.
BS> that the "TFont" variables that we create (and all other such
BS> T-Types)
BS> are not really T-variables at all, but really pointers to such
BS> variables - i.e. they are equivlaent to the P-variables of older Turbo
BS> Pascal.
Yep...
BS> Just to confuse the issue, I read in "Delphi 2 Developer's Guide" by
BS> Pacheco and Teixeira that "Under Win32, GDI objects are not shared as
BS> are their 16-bit counterparts. GDI objects are stored in the process's
BS> address space instead of a globally accessible memory block". Is this
BS> relevant to the problem, and to whether it is also a problem in Delphi
BS> 2 ?
No, the TFont still resides in the process space although one can use Common
Dialogs to fill them out.
Lars
--- GoldED/386 2.50 UNREG
---------------
* Origin: Yet another T.P.I. Point (2:238/64.46)
|