when End is called is that equivelant to ExitProcess ... If so then I guess it would close all DLL's that are opened by the program using Open Library ? or no because OpenLibrary is opening DLL's @ runtime ?
If not does PB go through all opened libraries and close them at the end ?
Just curious if anyone knows ?
CloseLibrary()
-
Codemonger
- Enthusiast

- Posts: 384
- Joined: Sat May 24, 2003 8:02 pm
- Location: Canada
- Contact:
CloseLibrary()
<br>"I deliver Justice, not Mercy"
    - Codemonger, 2004 A.D.
    - Codemonger, 2004 A.D.
While it may not apply to the library functions, the help file description for CloseFile() says:
Close the specified #File and it can't be used anymore for later use. Closing a file ensure the buffer will be put effictively on the disk. Note: when the program ends, PureBasic is smart enough to close all the opened files, so it's useless to do it.
If it is smart enough to close opened files, I dont see why it cant close opened libraries.
Close the specified #File and it can't be used anymore for later use. Closing a file ensure the buffer will be put effictively on the disk. Note: when the program ends, PureBasic is smart enough to close all the opened files, so it's useless to do it.
If it is smart enough to close opened files, I dont see why it cant close opened libraries.
Mark my words, when you least expect it, your uppance will come...
- NoahPhense
- Addict

- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
Re: CloseLibrary()
It's always good habit to ClostLibrary(lib#) before End ..Codemonger wrote:when End is called is that equivelant to ExitProcess ... If so then I guess it would close all DLL's that are opened by the program using Open Library ? or no because OpenLibrary is opening DLL's @ runtime ?
If not does PB go through all opened libraries and close them at the end ?
Just curious if anyone knows ?
- np