473,325 Members | 2,872 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,325 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 1392
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...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.