home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gossip.pyramid.com!olivea!sgigate!odin!mips!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!chx400!urz.unibas.ch!gysin1
- From: gysin1@urz.unibas.ch
- Newsgroups: comp.lang.pascal
- Subject: Problems with tResourceFile
- Message-ID: <1992Aug12.174022.39466@urz.unibas.ch>
- Date: 12 Aug 92 16:40:22 GMT
- Organization: University of Basel, Switzerland
- Lines: 26
-
-
- I'm writing a more extended application than usual, so I would appreciate
- saving memory to get more heap space. For this purpose I want to load some
- dialogs from a tResourceFile instead of having them defined in the program
- code.
-
- The problem I have is that once a pointer on a tResourceFile is allocated,
- I can load my objects [ pResourceFile^.Get(IndexStr) ] but not dispose the
- resource file nor the stream associated with it.
-
- Do I have to allocate memory for a resource file at the beginning of run-time
- an keep it active unless the user will quit ? It seems that a
- Dispose(pResourceFile, Done) not only frees the associated stream, but even the
- pointers it has returned with Get.
-
- Does somebody know what's matter ?
-
- Any hint would be appreciated.
-
- Many thanks
-
- Philipp Gysin
- University of Basel, Switzerland
-
-
- "Life is too short to spend it on debugging...."
-