home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!gatech!taco!csemail.cropsci.ncsu.edu!samodena
- From: samodena@csemail.cropsci.ncsu.edu (S. A. Modena)
- Subject: Re: Strange problem with TP6 and $S-
- Message-ID: <1992Sep10.093813.499@ncsu.edu>
- Sender: news@ncsu.edu (USENET News System)
- Organization: Crop Science Dept., NCSU, Raleigh, NC 27695-7620
- References: <4169@seti.UUCP>
- Date: Thu, 10 Sep 1992 09:38:13 GMT
- Lines: 45
-
- In article <4169@seti.UUCP> lasgout@solaris.inria.fr (Jean-Marc Lasgouttes) writes:
- >I came across a strange problem in a program written in TP6 with
- >Turbo Professionnal. The program works well, but if I disable
- >stack checking ($S-), bugs appear (it does not hang, but some windows
- >do not pop up as intended). I tried to increase the stack space with
- >no success.
- >
- >My problem is that I suspect that it could be related to some bug in my
- >program, but I can't imagine what (the listing is 7000 lines long...).
- >
- >Any help would be highly appreciated
- >
- >Thanks
- >
- >Jean-Marc
-
- Well, let me ask: are you using the ValidView() call to spot when and
- where a view will pop or not pop for availability of memory?
-
- The thing that comes to mind in the general sense: some people are
- careless about how they write their T(object).Done routines and certain
- things on the stack don't get cleaned up (let along some of the stuff
- on the Heap). Come to think of it, unclean T(object).Init routines
- can cause the same set of problems.
-
- I'd suggest reading your TP manual in the chapter where they go into
- extensive detail and examples about using LowMemory and such and
- how to write code that cleans up after itself when *something* goes
- wrong during dynamic object allocation.
-
- Good luck!
-
- Steve
- ---
- +------------------------------------------------------------------+
- | In person: Steve Modena AB4EL |
- | On phone: (919) 515-5328 |
- | At e-mail: nmodena@unity.ncsu.edu |
- | samodena@csemail.cropsci.ncsu.edu |
- | [ either email address is read each day ] |
- | By snail: Crop Sci Dept, Box 7620, NCSU, Raleigh, NC 27695 |
- +------------------------------------------------------------------+
- Lighten UP! It's just a computer doing that to you.
- OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
-
-