TIP: Click on subject to list as thread! ANSI
echo: delphi
to: BRYAN SMITH
from: LARS SKOVLUND
date: 1997-05-02 13:40:00
subject: Need insight into object behaviour.

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.