home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4820 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.2 KB

  1. 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
  2. From: gysin1@urz.unibas.ch
  3. Newsgroups: comp.lang.pascal
  4. Subject: Problems with tResourceFile
  5. Message-ID: <1992Aug12.174022.39466@urz.unibas.ch>
  6. Date: 12 Aug 92 16:40:22 GMT
  7. Organization: University of Basel, Switzerland
  8. Lines: 26
  9.  
  10.  
  11. I'm writing a more extended application than usual, so I would appreciate
  12. saving memory to get more heap space. For this purpose I want to load some
  13. dialogs from a tResourceFile instead of having them defined in the program
  14. code.
  15.  
  16. The problem I have is that once a pointer on a tResourceFile is allocated,
  17. I can load my objects [ pResourceFile^.Get(IndexStr) ] but not dispose the
  18. resource file nor the stream associated with it.
  19.  
  20. Do I have to allocate memory for a resource file at the beginning of run-time
  21. an keep it active unless the user will quit ? It seems that a
  22. Dispose(pResourceFile, Done) not only frees the associated stream, but even the
  23. pointers it has returned with Get.
  24.  
  25. Does somebody know what's matter ?
  26.  
  27. Any hint would be appreciated.
  28.  
  29. Many thanks
  30.  
  31. Philipp Gysin
  32. University of Basel, Switzerland
  33.  
  34.  
  35. "Life is too short to spend it on debugging...."
  36.