home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!kth.se!kjell
- From: kjell@elixir.e.kth.se (Kjell Rilbe)
- Newsgroups: comp.lang.pascal
- Subject: Re: Compiler directive help wanted!
- Message-ID: <1992Aug17.071519.12108@kth.se>
- Date: 17 Aug 92 07:15:19 GMT
- References: <1992Aug17.045945.22109@uxa.ecn.bgu.edu>
- Sender: usenet@kth.se (Usenet)
- Organization: Dept. of EE, Royal Institute of Technology, Stockholm, Sweden
- Lines: 29
- Nntp-Posting-Host: elixir.e.kth.se
-
- In article <1992Aug17.045945.22109@uxa.ecn.bgu.edu> mudrc@uxa.ecn.bgu.edu (Daniel R. Crowson) writes:
- >
- > I've been working on some graphics programs in TP 6.0, but I
- > have some problems (don't we all). I want to link in some obj code
- > to play music, but when I do this, I can't initialize the graphics.
- > I've narrowed my problem down to one of the compiler directives
- > needed for the music playing part.
- >
- > {$M 4000, 0, 0}
- >
- > This frees up memory (I think). How can I get the program to
- > initialize graphics with the above directive?
-
- This directive sets the maximum heap size to 0. That will not allow room for
- the BGI, which is loaded at runtime and placed on the heap.
-
- Try changing the latter 0 to the size of the BGI file or something like that.
- Experiment! Test how much you need to fit in the BGI!
-
- Then you would probably want to set the first zero to the same size, which is
- the minimum heap size. I think DOS won't execute the program at all (program
- won't fit in memory...) if DOS hasn't got enough memory to fit in at least
- that much heap.
-
- Hope this is what's wrong with it.
-
- Good luck!
-
- /Kjell Rilbe
-