PC Review


Reply
Thread Tools Rate Thread

How to determine what process blocks my DLL?

 
 
nano2k
Guest
Posts: n/a
 
      1st May 2007
Hi

I'm implementing an simple updater application that updates another
application.
The scenario is as follows:
The main application (MA) checks if there are any updates. If updates
are present, it starts another application: the updater application
(UA).
After that, UA waits for MA to exit. After MA exits, UA reads the
updating package and overwrites all the files.
Unfortunately, some private dll's are still in use, even after MA has
exited (!). It's impossible that those dll's are used by another
process because no running process references my dll.

Is there a way to find out what other process holds and blocks my dll?

Thanks.

 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      1st May 2007
nano2k,

Not to try and dissuade you, but considering that there is an
Application Updater Block in the Enterprise Library, and that ClickOnce also
provides very similar functionality, why would you try and rewrite this
functionality yourself?

For more information on ClickOnce:

http://msdn2.microsoft.com/en-us/net.../aa497348.aspx

For more information on the Application Updater Block:

http://msdn2.microsoft.com/en-us/library/ms978574.aspx

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"nano2k" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> I'm implementing an simple updater application that updates another
> application.
> The scenario is as follows:
> The main application (MA) checks if there are any updates. If updates
> are present, it starts another application: the updater application
> (UA).
> After that, UA waits for MA to exit. After MA exits, UA reads the
> updating package and overwrites all the files.
> Unfortunately, some private dll's are still in use, even after MA has
> exited (!). It's impossible that those dll's are used by another
> process because no running process references my dll.
>
> Is there a way to find out what other process holds and blocks my dll?
>
> Thanks.
>



 
Reply With Quote
 
nano2k
Guest
Posts: n/a
 
      1st May 2007
Thanks Nicholas,

Forgot to mention. I'm using VS2003 with .NET 1.1.
Anyway, meantime I found out that VS was blocking my DLLs because I
used them for toolbox.
But still the question remains - is there a way to programatically get
the process/es that loaded a specific DLL?

Thanks.


Nicholas Paldino [.NET/C# MVP] a scris:
> nano2k,
>
> Not to try and dissuade you, but considering that there is an
> Application Updater Block in the Enterprise Library, and that ClickOnce also
> provides very similar functionality, why would you try and rewrite this
> functionality yourself?
>
> For more information on ClickOnce:
>
> http://msdn2.microsoft.com/en-us/net.../aa497348.aspx
>
> For more information on the Application Updater Block:
>
> http://msdn2.microsoft.com/en-us/library/ms978574.aspx
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> "nano2k" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi
> >
> > I'm implementing an simple updater application that updates another
> > application.
> > The scenario is as follows:
> > The main application (MA) checks if there are any updates. If updates
> > are present, it starts another application: the updater application
> > (UA).
> > After that, UA waits for MA to exit. After MA exits, UA reads the
> > updating package and overwrites all the files.
> > Unfortunately, some private dll's are still in use, even after MA has
> > exited (!). It's impossible that those dll's are used by another
> > process because no running process references my dll.
> >
> > Is there a way to find out what other process holds and blocks my dll?
> >
> > Thanks.
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some process blocks shutdown - how to find that culprit? Michael Moser Windows XP General 2 30th Nov 2006 04:23 AM
how to determine blocks of time in a date range =?Utf-8?B?aHlkcm8xZ3V5?= Microsoft Excel Misc 4 9th Dec 2005 03:13 AM
any logging when ipsec blocks a port? how to determine which ports need to be opened? Les Caudle Microsoft Windows 2000 Networking 2 24th Aug 2004 10:33 PM
Access 97 blocks MS SQL Server 7 process Gary Thompson Microsoft Access 1 25th Mar 2004 08:10 PM
Process.StandardOutput.Read Blocks Asynchronous Behavior? Al Cohen Microsoft C# .NET 3 6th Sep 2003 11:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:45 AM.