I am trying to unload an NLM using...
Articles and Tips: qna
01 Jun 2003
Q.
I am trying to unload an NLM using UnloadModule(Null, NLMname). The NLM has been built with the screen option as console. The message I am getting is the NLM is not loaded. I tried passing "hello" as well as "hello.nlm," such as:
UnloadModule(NULL,"hello")
or
UnloadModule(NULL,"hello.nlm")
But neither of these worked. I didn't specify a path, but the NLM path was added as search path before performing the operation.
A.
The string passed in NLMname (actually a command line) must be in uppercase. The following examples list command line parameter strings and explain what is unloaded when you use such a string.:
"MONITOR" Unloads the NLM with the specified name.
"ADDRESS SPACE=GROUPWISE" Unloads all modules from the groupwise address space.
"ADDRESS SPACE=GROUPWISE CLIB" Unloads clib.nlm from the groupwise address space.
"KILL ADDRESS SPACE=GROUPWISE" Shuts down the groupwise address space.
"\"MY LONG NAME MODULE.NLM"\" Unloads the module named "my long name module.nlm" which contains spaces.
"NE2000.LAN" If multiple instances of NE2000.LAN were loaded, UnloadModule attempts to unload all instances of the NE2000.LAN module.
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.