opensubscriber
   Find in this group all groups
 
Unknown more information…

n : nant-developers@lists.sourceforge.net 7 September 2009 • 6:21AM -0400

[nant-dev] [ nant-Bugs-2853031 ] comregister handle leak
by SourceForge.net

REPLY TO AUTHOR
 
REPLY TO GROUP






Bugs item #2853031, was opened at 2009-09-06 12:57
Message generated for change (Comment added) made by thetoejoe
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2853031&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: 0.86
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tom DeMay (thetoejoe)
Assigned to: Nobody/Anonymous (nobody)
Summary: comregister handle leak

Initial Comment:
If DLL cannot be loaded into memory due to missing DLLs, comregister will fail as expected.
But it does not let go of the handle, so any operations to follow fail due to access denied problems.

<comregister unregister="true" failonerror="false" file="C:\Projects\Receiver\bin\PSFileStore.dll" />
<delete file="C:\Projects\Receiver\bin\PSFileStore.dll" />

C:\Projects\Receiver\Components\PSFileStore>nant
NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
Copyright (C) 2001-2007 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/Projects/Receiver/Components/PSFileStore/PSFileStore.build
Target framework: Microsoft .NET Framework 3.5
Target(s) specified: release

[property] Target framework changed to "Microsoft .NET Framework 2.0".
[loadtasks] Scanning assembly "GigaTrust.NAntExtensions" for extensions.
[loadtasks] Scanning assembly "NAnt.Contrib.Tasks" for extensions.

release:


compile:


buildVC:


_unregisteronbuild:

     [echo] deleting
[comregister] Unregistering 1 files
[comregister] C:\Projects\Receiver\NAnt\default.include.build(305,4):
[comregister] Error while unregistering 'C:\Projects\Receiver\bin\PSFileStore.dll'
[comregister]     Error accessing the OLE registry. (Exception from HRESULT: 0x8002801C (TYPE_E_REGISTRYACCESS))
   [delete] Deleting file C:\Projects\Receiver\bin\PSFileStore.dll.

BUILD FAILED - 1 non-fatal error(s), 0 warning(s)

C:\Projects\Receiver\NAnt\default.include.build(306,4):
Cannot delete file 'C:\Projects\Receiver\bin\PSFileStore.dll'.
    Access to the path 'C:\Projects\Receiver\bin\PSFileStore.dll' is denied.

Total time: 0.3 seconds.


----------------------------------------------------------------------

Comment By: Tom DeMay (thetoejoe)
Date: 2009-09-06 18:21

Message:
I can't send you the DLL I used. Code provided in original post. Just use
ANY com dll and make sure dependent DLLs are not in the path.

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2009-09-06 14:30

Message:
Please attach a small repro to this bug report.

Thanks!

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2853031&group_id=31650

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
nant-developers mailing list
nant-developers@list...
https://lists.sourceforge.net/lists/listinfo/nant-developers

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.