home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!asuvax!ennews!telesys!wierius!witsend!dcs
- Message-ID: <765346d6891474t227@witsend.uucp>
- Date: Saturday, 2 January 1993 19:03:59 MST
- X-Mailer: TMail version 1.15R
- From: "D. C. Sessions" <dcs@witsend.tnet.com>
- Organization: Nobody but me -- really
- References: <30DEC92.02825818.0033@music.mus.polymtl.ca> <765343d37755t218@witsend.uucp> <01JAN93.18333440.0031@music.mus.polymtl.ca>
- Subject: Re: TVision : BUG in my head or in TV?
- Newsgroups: comp.lang.pascal
- Distribution: world
- Lines: 31
-
- In <01JAN93.18333440.0031@music.mus.polymtl.ca>, CT80@music.mus.polymtl.ca (Steph) wrote:
- #
- # In article <765343d37755t218@witsend.uucp> "D. C. Sessions" <dcs@witsend.tnet.com> writes:
- # >In <30DEC92.02825818.0033@music.mus.polymtl.ca>, CT80@music.mus.polymtl.ca (Steph) wrote:
- # ># What happens is this : I found out (after many bugs with this), that
- # ># EndOfStatic (my before-adding-spaces-to-AText-length) is set to 0
- # ># after the call to TStaticText.Init! Why is this so?
- # >
- # > TObject.Init zeros out the object in question. Therefore, any
- # > initialization you do prior to a call to the ancestral Init
- # > procedure is wasted.
-
- # Someone else mentioned it before. I don't know why/how it does it,
- # but I programmed around it and now it works. Sheesh, and I thought
- # I didn't need people forcing me to do spaghetti.
-
- Actually, it makes considerable sense. The runtime checks
- recognize a 0000:0000 pointer as invalid, so if you fail to
- initialize pointer fields you'll get caught. Handy. Much
- as I hate to admit it, I made that error on numerous
- occasions when writing TMail, so OF COURSE I'll defend
- Borland on this one!
-
- BTW, the workaround is pretty simple. Just place your constant
- fields together & copy a constant into them. Works for me.
-
-
- --- D. C. Sessions Speaking for myself ---
- --- Note new network address: dcs@witsend.tnet.com ---
- --- Author (and everything else!) of TMail (DOS mail/news shell) ---
-