473,513 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

anyway to unload the dll

Amy
Hi,

I'm using vb.net vs2005 to development an mobile device application. I need
to call a dll in the program but i discovery that the resource of the dll is
not free after using it. Is there any way to free the dll?

Thanks!
Oct 12 '06 #1
3 1275

How did you discovered that the resources are not free after usage ??
Not that after unloading objects the memory footprint will not be inmediatly
smaller , the framework will reserve the memory for future usage , unless
the system is running low on resources the memory will not be given back to
the system

regards

Michel Posseth [MCP]
"Amy" <Am*@discussions.microsoft.comschreef in bericht
news:57**********************************@microsof t.com...
Hi,

I'm using vb.net vs2005 to development an mobile device application. I
need
to call a dll in the program but i discovery that the resource of the dll
is
not free after using it. Is there any way to free the dll?

Thanks!

Oct 12 '06 #2
Michel Posseth [MCP] wrote:
How did you discovered that the resources are not free after usage ??
Presumably because the DLL file on disk is locked. We have the same issue
here, the application must be closed before the lock is released. This is
only a problem in WinForms based apps, due to the excellent DLL shadowing
feature in ASP.NET.

I'd like to know if there's a workable solution to this problem too...

--

(O)enone
Oct 13 '06 #3
Aha , now we are getting somewhere :-)

I asumed we were discussing resources in terms of memory , and now i
understand we are talking about IO locks
I'd like to know if there's a workable solution to this problem too...
I guess there is , you could dynamicly load and unload your objects i guess
this would lock and unlock the file

We are thus talking about "Reflection at runtime"

a simple example ? : ( i am gonna write this on a comp without dev
environment , just out of my plain head so excuse me for anny typo`s :- )

Dim ObjType as Type
=Assembly.getexecutingAssembly().Gettype("assembly name.objectname")
Dim Obj as object = Activator.CreateInstance(Type)

obj now holds an instance of the class

please note that this is a sort of equivalant to "late binding" , so the
execution speed will be slower as a direct referenced assembly
regards

Michel Posseth [MCP]

"Oenone" <oe****@nowhere.comschreef in bericht
news:eq**************@TK2MSFTNGP03.phx.gbl...
Michel Posseth [MCP] wrote:
>How did you discovered that the resources are not free after usage ??

Presumably because the DLL file on disk is locked. We have the same issue
here, the application must be closed before the lock is released. This is
only a problem in WinForms based apps, due to the excellent DLL shadowing
feature in ASP.NET.

I'd like to know if there's a workable solution to this problem too...

--

(O)enone

Oct 14 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
20821
by: Harry J. Smith | last post by:
I have written a Visual Basic program that does a long calculation and writes the results to disk as it runs. If I click the Close button the window closes but the program keeps running. How can I...
0
4067
by: razheev | last post by:
Hi, I have a Table which contains 1 million rows. I want to do an unload of the table and do some massaging (tranforming) of data and do a load to a different table where the column attributes are...
2
10821
by: Lauren Hines | last post by:
Hello, I have read numerous post stating that the only way to unload an assembly (DLL in my case) is to create a separate AppDomain, load the assembly, then unload it by calling AppDomain.Unload....
6
8173
by: Wal Turner | last post by:
Hi there. There are various snippets on forums regarding issues with AppDomain.Unload and how it just doesnt work. Fortunately, I got it working with the base case, after much fiddling. Consider...
2
6855
by: brianbender | last post by:
I am trying to load and unload assemblies dynamically and call methods and properties when loaded into an Appdomain I can load assemblies all day in the current AppDomain without references and...
1
2633
by: hal | last post by:
I have an application that includes an activex component that consumes resources that must be released when the a page is unloaded. Toward this end I subscribe to the unload event of the body...
1
2918
by: Hal | last post by:
My most sincere gratitude to anyone who can help me work around this! I have work that needs to be done in javascript on the client whenever a page is unloaded. To this end, I subscribe to...
2
1427
by: TR | last post by:
I'm coming to asp.net with mainly a desktop application background, and would be grateful if someone could explain what is meant by "unload" in asp.net . It's not the same as unload in a desktop...
11
8609
by: Timofmars | last post by:
I'm try to Unload DB2 data from a table into a record sequential file on NT. I can an unload on Mainframe, but it doesn't seem to be an option in NT. In NT, all I can do is export/import. I can...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7394
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7123
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.