home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3125 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: informatik.tu-muenchen.de!ganterth
  2. From: ganterth@mathematik.tu-muenchen.de (Thomas Ganter)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Library?
  5. Date: 08 Feb 1996 10:13:53 GMT
  6. Organization: Math. Institut der TU Muenchen
  7. Distribution: world
  8. Message-ID: <1996Feb8.111353@mathematik.tu-muenchen.de>
  9. References: <920.6611T1081T2480@Th0r.foo.bar>
  10. NNTP-Posting-Host: sunbulirsch5.mathematik.tu-muenchen.de
  11. X-newsreader: xrn 7.00
  12.  
  13. In article <920.6611T1081T2480@Th0r.foo.bar>, christon (Christopher Naas) writes:
  14. |> When I open a shared disk library, is the entire library loaded into RAM, or
  15. |> just the functions used?
  16.  
  17. When You open a library, how should OpenLibrary() know which functions you
  18. are going to access? Of course, all the library is loaded into memory.
  19.  
  20. |> Is there some way I can "hold back" loading a fuction
  21. |> to RAM until it is actually used?
  22.  
  23. No.
  24.  
  25. |> I want to make quite a few small libraries,
  26. |> each with their own preferences setting routines. The simplest way for me to
  27. |> do the prefs would be to include it in the library, but since many small
  28. |> libraries will be loaded, and the prefs-setting only used a couple of times
  29. |> *ever*, I don't really want to waste 10-15k RAM for each library just for a
  30. |> nice GUI prefs-setting.
  31.  
  32. What you could do is providing a small dummy routine for seldom used functions
  33. that then LoadSeg()s the according code from disk and changes the Library 
  34. pointer to the new segment. (Needs semaphore protection, a quite hairy Expunge()
  35. function and the like, but possible)
  36.  
  37. |> So, will I have to make little prefs programs for each
  38. |> library, or is there some way I can delay loading the gui stuff into memory
  39. |> until it is used?
  40.  
  41. Depends on the work you want to have... :)
  42.  
  43.  
  44.                         - Thomas
  45.  
  46. ------------------------------------------------------------------------------
  47.   Thomas Ganter            Student der Mathematik
  48.   Postweg 3            email: ganterth@mathematik.tu-muenchen.de
  49.   83209 Prien am Chiemsee    FAX  : (0) 8051 - 63179
  50.   Bavaria, Germany        Phone: (0) 8051 - 61895 & 62054
  51. ------------------------------------------------------------------------------
  52.   Amiga Developer (ETG 249)  -  A3000/14Megs/550MB HD/PicassoII
  53. ------------------------------------------------------------------------------
  54.  
  55.   Mathematicians are like Frenchmen: whenever you say something to them,
  56.   they translate it into their own language, and at once it is something
  57.   entirely different.                     J. W. v. Goethe
  58.  
  59.