473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Attach causes the FILE references to the system dll's

Hi All,
During Attach to a process like DLLHOST ,DLLHOST has FILE references to
the system dlls like " odbc32.dll etc..(One can observer this in process
explorer tool of Sysinternals.com by selecting the "View Handles" from the
View menu)

But during the Detach process same handles are not getting released by the
DLLHOST process.WHY?
Any suggestions are welcome.
Regards,
Ramesh
Nov 16 '05 #1
3 1003
What exactly do you mean with attach to a process?
If you are talking about a debugger attaching to a process, why would you
expect the handles are getting released when the debugger detaches?
The handles are obtained by a the DLLHOST loading the dll's? and will only
be released by the DLHOST when he desides to do so.

Willy.
like DLLHOST ,DLLHOST has FILE references to
the system dlls like " odbc32.dll etc..(One can observer this in process
explorer tool of Sysinternals.com by selecting the "View Handles" from the
View menu)

But during the Detach process same handles are not getting released by the
DLLHOST process.WHY?
Any suggestions are welcome.
Regards,
Ramesh

Nov 16 '05 #2
First of all Thanks for the reply..
What is mean by Attach to a process is let us suppose there is a
component "A" that is installed under component services, which creates
another normal DLL component "B".
Now if i try to debug "B" component , "B" has to attach to DLLHOST using
the Debug+Process menu of devenv. After attaching there is a FILE Handle
for the "B" component stored by DLLHOST..NOW Detach from the
DLLHOST..Now if the component "B" is unloaded using
CoFreeUnUsedLibraries() "B" is not in the memory of DLLHOST, but DLLHOST
still holds the FILE Handle for "B".

FYI..The term FILE Handle i used is different from the DLL reference..

My application's user updates the custom dll's whenever needed by
compiling the custom component using VC .NET.As the FILE Handle for "B"
is still in DLLHOSt recompilation of "B" is not possible even after
CoFreeUnUsedLibraries()..

Regards,
Ramesh
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
Please don't multipost, the right NG for these sort of questions is
microsoft.public.dotnet.framework.component_servic es.
See my reply posted in -> microsoft.public.dotnet.framework.interop.

Willy.

"ramesh kodati" <ra**********@rediffmail.com> wrote in message
news:uL**************@TK2MSFTNGP09.phx.gbl...
First of all Thanks for the reply..
What is mean by Attach to a process is let us suppose there is a
component "A" that is installed under component services, which creates
another normal DLL component "B".
Now if i try to debug "B" component , "B" has to attach to DLLHOST using
the Debug+Process menu of devenv. After attaching there is a FILE Handle
for the "B" component stored by DLLHOST..NOW Detach from the
DLLHOST..Now if the component "B" is unloaded using
CoFreeUnUsedLibraries() "B" is not in the memory of DLLHOST, but DLLHOST
still holds the FILE Handle for "B".

FYI..The term FILE Handle i used is different from the DLL reference..

My application's user updates the custom dll's whenever needed by
compiling the custom component using VC .NET.As the FILE Handle for "B"
is still in DLLHOSt recompilation of "B" is not possible even after
CoFreeUnUsedLibraries()..

Regards,
Ramesh
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4

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

Similar topics

0
by: Ramesh K | last post by:
Hi All, During Attach to a process like DLLHOST ,DLLHOST has FILE references to the system dlls like " odbc32.dll etc..(One can observer this in process explorer tool of Sysinternals.com by...
7
by: Brian Sabolik | last post by:
I'm not sure if I've broken any Object Oriented rules or not, but ... I have projects in 2 different solutions that need to use each other's methods. Therefore I may have an "update" method in...
0
by: Erik Anderson | last post by:
There is a COM object (written in ATL) that I have been using for a little while (in scheduled events mostly) that I am very interested in getting to run inside of an ASP page. This site uses...
24
by: MLH | last post by:
Most people tell me I only need 3 references. It seems that many of my problems are related to references. I don't know what a reference is, quite frankly. I wish that, instead of about 200...
3
by: Ramesh K | last post by:
Hi All, During Attach to a process like DLLHOST ,DLLHOST has FILE references to the system dlls like " odbc32.dll etc..(One can observer this in process explorer tool of Sysinternals.com by...
0
by: Ramesh K | last post by:
Hi All, During Attach to a process like DLLHOST ,DLLHOST has FILE references to the system dlls like " odbc32.dll etc..(One can observer this in process explorer tool of Sysinternals.com by...
3
by: prabhupr | last post by:
Hi Folks Not sure if this is the right group, if not please re-direct me to the right one. Here is my question =============== When I compile my ASP.NET WEB project from VS 2005 (.NET...
1
by: Ryan.Mohammed | last post by:
I have a problem that does not happen without .NET 1.1 however it does happen on machines that have .NET 1.1 SP1 installed. Createinstance attempts to create an instance of ICEBOX.dll which...
6
by: eric.goforth | last post by:
Hello, I'm calling a VB.NET 2003 dll that's registered in COM+. I've added a reference to it in a VB6 DLL that I'm calling from a Classic ASP page. Previously I was able to attach to my .NET...
0
by: Mike | last post by:
Hi, I have a collection object bound to a data grid, after I remove an item from the collection, the minute I click on the datagrid I get an error saying the specified argument was out of the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...

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.