home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7816 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  2.0 KB

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