home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!snorkelwacker.mit.edu!tamsun.tamu.edu!zeus.tamu.edu!wwg2101
- From: wwg2101@zeus.tamu.edu (GILPIN, W.W.)
- Subject: Re: THINK Pascal- program crashes only when stand-alone
- Message-ID: <18NOV199214315539@zeus.tamu.edu>
- News-Software: VAX/VMS VNEWS 1.41
- Sender: wwg2101@zeus.tamu.edu (GILPIN, WESLEY WILSON)
- Organization: Texas A&M University, Academic Computing Services
- References: <BxtpwD.CAn@news.udel.edu> <BxvoJB.Jpv@world.std.com>
- Date: Wed, 18 Nov 1992 20:31:00 GMT
- Lines: 22
-
- >>Without going into the specifics, here's my general problem. I have a
- >>program which functions fine when running within the THINK Pascal
- >>development environment, but which crashes when compiled as a stand-alone
- >>application.
-
-
- >I would get different answers to a matrix problem depending on whether I
- >was running under Turbo or in a stand-alone application. I found out that
- >I hadn't locked a Handle properly--in the stand-alone version a memory
- >block was being moved unexpectedly and my handle was pointing to garbage.
-
- I agree. I had the same problem with a THINK C program i've been working on.
- I loaded in some bitmaps from a resource and it worked just fine, but when I
- built the stand-alone, it crashed because the pointers I was using were invalid
- after the blocks were moved. Always make sure that you lock the memory that you
- expect to see in the same place all the time.
-
- -------------------------------------------------------------------------------
- | Wes Gilpin | I'd kill myself for you...I'd kill you for myself |
- | WWG2101@TAMZEUS(BITNet) |------------------------------------------ |
- | WWG2101@ZEUS.TAMU.EDU | Southwest Knights of Nee Paintball Team | PANTERA |
- -------------------------------------------------------------------------------
-