Re: memory issue
- From: "Michael C" <mculley@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 15:07:12 +1000
"Tom Esh" <tjeshGibberish@xxxxxxxxxx> wrote in message
news:d7h6c1d7co94amnbu3fjakrl6ghul410p1@xxxxxxxxxx
> VB loads the library dll the first time you call one of it's declared
Hey Ben,
Try this sample. Extract the files to a directory and double click
project1.vbp in the debug directory and then push f5 to run the project.
Push the "SomeFunction" button with task manager open and you'll see the dll
load into memory and allocate 128MB of ram. If you hit it again it won't
allocated any more ram so hit it as many times as you like. Then push
LoadLib and then FreeLib twice and you'll see the memory go back down as the
dll is unloaded. At this stage if you hit the SomeFunction button again vb
will crash. But all you've got to do to get around that is push LoadLib
again.
http://mikesdriveway.com/misc/TestLoadLib.zip
Michael
.
- References:
- memory issue
- From: Ben
- Re: memory issue
- From: Tom Esh
- Re: memory issue
- From: Casey Provance
- Re: memory issue
- From: Tom Esh
- Re: memory issue
- From: Ben
- Re: memory issue
- From: Tom Esh
- Re: memory issue
- From: Ben
- Re: memory issue
- From: Tom Esh
- memory issue
- Prev by Date: Re: memory issue
- Next by Date: Add text to Header in word doc
- Previous by thread: Re: memory issue
- Next by thread: excel column name
- Index(es):