Thread Rating:
  • 458 Vote(s) - 2.91 Average
  • 1
  • 2
  • 3
  • 4
  • 5
importされたパッケージ
09-28-2011, 08:58 AM, (This post was last modified: 09-28-2011, 09:23 AM by alchimiste.)
#5
RE: importされたパッケージ
(08-19-2011, 09:02 AM)cbarber Wrote: Packages that are loaded using the 'import' or 'import-package' are stored in a shared memory area so that they can be used by multiple applets. Such a package will not be unloaded from memory until there are no remaining applets that have imported it. Flushing of unused packages occurs after an applet finishes loading, thus reloading an applet will not flush a package from memory unless the applet has been changed to no longer import the package.



But is it possible to reload a package that has been loaded already without restarting an applet?

I found from Curl6.0, packages can be reloaded by dynamically importing manifest and package.

It' very useful in applications which has many menu, and each of those menu is a independent manifest.

Here is a sample code:

Code:
let mf:ComponentManifest = {with-file-caching-style FileCachingStyle.resynchronize do
                               {import-manifest
                                   path asa Url,
                                   check-out-of-date? = true
                               }
                           }
let agent-package:#Package
set agent-package = {import-package
                        manifest=mf,
                        {make-package-selector pkg-name}
                    }


I'm using this code for loading menu applications in the main appication with OCC




Messages In This Thread
RE: importされたパッケージ - by nmyzk - 08-18-2011, 05:31 PM
RE: importされたパッケージ - by cbarber - 08-19-2011, 09:02 AM
RE: importされたパッケージ - by alchimiste - 09-28-2011, 08:58 AM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('214')