Share

NAnt - A .NET Build Tool

Tracker: Bugs

5 MIDL task throws an exception. - ID: 1078558
Last Update: Comment added ( drieseng )

The MIDL task throws an error on the second time run if
the following parameters are not specified:
- header
- iid

The error is:
======================
INTERNAL ERROR

System.ArgumentNullException: Value cannot be null.
Parameter name: path2
at System.IO.Path.Combine(String path1, String path2)
at NAnt.VisualCpp.Tasks.MidlTask.NeedsCompiling
(String outputFile) in c:\Program Files\Nant\nant-0.85-
rc1\src\NAnt.VisualCpp\Tasks\MidlTask.cs:line 364
at NAnt.VisualCpp.Tasks.MidlTask.NeedsCompiling() in
c:\Program Files\Nant\nant-0.85-rc1
\src\NAnt.VisualCpp\Tasks\MidlTask.cs:line 344
at NAnt.VisualCpp.Tasks.MidlTask.ExecuteTask() in
c:\Program Files\Nant\nant-0.85-rc1
\src\NAnt.VisualCpp\Tasks\MidlTask.cs:line 302
at NAnt.Core.Task.Execute() in c:\Program
Files\Nant\nant-0.85-rc1\src\NAnt.Core\Task.cs:line 177
at NAnt.Core.Target.Execute() in c:\Program
Files\Nant\nant-0.85-rc1\src\NAnt.Core\Target.cs:line
249
at NAnt.Core.Project.Execute(String targetName,
Boolean forceDependencies) in c:\Program
Files\Nant\nant-0.85-rc1\src\NAnt.Core\Project.cs:line
882
at NAnt.Core.Project.Execute() in c:\Program
Files\Nant\nant-0.85-rc1\src\NAnt.Core\Project.cs:line
839
at NAnt.Core.Project.Run() in c:\Program
Files\Nant\nant-0.85-rc1\src\NAnt.Core\Project.cs:line
908
=================

To reproduce the problem, write the following task in a
build file (With a correct filename):
<midl filename="EIV5Serial.odl"
tlb="Debug\EIV5Serial.tlb" />

The first run of the build works fine, the second time you
will get an exception.


Hope this helps..

Thanks,


Hani Atassi ( haniatassi ) - 2004-12-03 19:42

5

Closed

Fixed

Gert Driesen

Tasks

0.85

Public


Comment ( 1 )

Date: 2004-12-04 17:13
Sender: driesengProject AdminAccepting Donations

Logged In: YES
user_id=707851

This issue is now fixed in cvs, and will be available in the next
nightly build.

Thanks for the report !


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2004-12-04 17:13 drieseng
resolution_id None 2004-12-04 17:13 drieseng
assigned_to nobody 2004-12-04 17:13 drieseng
close_date - 2004-12-04 17:13 drieseng
artifact_group_id 0.84-rc1 2004-12-03 21:56 haniatassi