Home Dashboard Directory Help
Search

ITypeLibExporterNotifySink.ReportEvent receives malformed message by Frank Heimes


Status: 

Active


1
0
Sign in
to vote
Type: Bug
ID: 800929
Opened: 9/16/2013 5:15:59 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

When calling TypeLibConverter.ConvertAssemblyToTypeLib with an event handler, the ReportEvent() function receives messages with incomplete type names; i.e. only the first letter of each type is reported, e.g. "Type 'W' exported."

We use this function to create type libraries from assemblies that export dozens of types. Tracking down type resolution problems is very cumbersome if only the first letter of each type is reported.
Details
Sign in to post a comment.
Posted by Frank Heimes on 9/19/2013 at 12:15 AM
Most likely, the very same error leads to the following output of the Microsoft tool "tlbexp" (long lines truncated):

tlbexp "D:\Sources\Foo\bin\Debug\Fabrikam.Foo.Settings.dll" /verbose /win32 /nologo /out:"D:\Sources\Foo\bin\Debug\Fabrikam.Foo.Settings32.tlb"
Resolved referenced file 'D:\Sources\Foo\bin\Debug\Fabrikam.Foo.Settings.dll' to file 'D:\Sources\Foo\bin\Debug\Fabrikam.Foo.Settings.dll'.
Assembly reference 'System.Windows.Forms, Version=4.0.0.0, ...
Assembly reference 'System, Version=4.0.0.0, ...
Assembly reference 'System.Drawing, Version=4.0.0.0, ...
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Type 'F' exported.
Assembly exported to 'D:\Sources\Foo\bin\Debug\Fabrikam.Foo.Settings32.tlb'
Posted by Microsoft on 9/16/2013 at 5:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
UploadSummary-130916121559.xml (restricted) 9/16/2013 -
VsInfo.xml (restricted) 9/16/2013 -
TestConvertAssemblyToTypeLib.zip 9/16/2013 83 KB
DxDiagOutput.txt (restricted) 9/16/2013 -