• Slow Startups...

    From mark lewis@1:3634/12 to Murray Lesser on Saturday, November 03, 2001 04:32:24
    * Crossposted to OS2
    * Crossposted to OS2REXX


    i'm crossposting this to OS2REXX as it is definitely on topic in there and OS2PROG as well as it seems to be something that would also be covered in the more generic programming area... not to mention that those areas could use the traffic that this discussion will/can bring...

    Your second suggested statement enables all the
    RexxUtil "external functions" for the program
    within which it was called. The "CALL SysLoadFuncs"
    statement "loads" REXXUTIL.DLL, only if that is
    the first call to any external function within
    REXXUTIL.DLL by any running REXX program in the
    system (otherwise, it has already been loaded).

    keeping this in mind... read on...

    [trim]

    "SyDropFuncs" is a vary dangerous function to use
    in a REXX program. It is a "global" function. If
    it is called by any active REXX program, it will
    drop any RexxUtil "external function" in use by any
    REXX program running in any OS/2 session.

    for some reason, i'm remembering that this isn't the way... i'm remembering that the system will _not_ unload the functions and/or dlls unless there are no
    other tasks using them... in otherwords, there is (sort of?) an INUSE counter that is incremented each time a task loads the function/dll... the function/dll
    won't be unloaded until that counter is back to one or zero... i suspect back to one as the rexx program itself would be that one...

    my understanding about rexx (and many other coding stuffs) is that it is better
    to always load what you need in the program and then to unload it afterwards...
    the system will handle loading it if it isn't already loaded by some other process and will also handle unloading it if it is not used by any other processes, but you have to make the calls yourself each time...

    even in my pascal days (still code most of my stuff in pascal, FWTW <smile>), i
    always did both parts of whatever process i was working with... never relying on the system to free up allocated memory when the program ended, for one common example...

    am i missing something?? if so, what and why??

    oh yeah, we're definitely gonna have to watch the quoting initials... especially if mike luther joins us <<GG>> three ml's talking together can get confusing <<wink wink>>

    )\/(ark


    * Origin: (1:3634/12)
  • From Mike Luther@1:117/100 to Mark Lewis on Sunday, November 04, 2001 02:10:00
    Which .. Mark

    m lewis> * Crossposted to OS2
    m lewis> * Crossposted to OS2REXX

    i'm crossposting this to OS2REXX as it is definitely
    m lewis> on topic in there and OS2PROG as well as it seems to
    m lewis> be something that would also be covered in the more
    m lewis> generic programming area... not to mention that those
    m lewis> areas could use the traffic that this discussion
    m lewis> will/can bring...

    Arrived here in OS2PROG

    talking together can get confusing
    m lewis> <<wink wink>>

    Mmmmm I don't have OS2REXX linked at eithet the HUB or 1:117/3001 .. So maybe I should go add them!

    Herbert A. M. Luther @ 1:117/3001 <- Chuckle!


    ---
    * Origin: BV HUB CLL(409)696-3600 (1:117/100)