RE: BadImageFormatException from mixed-mode multi-file assembly
- From: jetan@xxxxxxxxxxxxxxxxxxxx ("Jeffrey Tan[MSFT]")
- Date: Wed, 11 Jun 2008 10:09:22 GMT
Hi Henry,
Since most of linker options are the same as used in the link below, I did
not see anything wrong with it.
http://blogs.msdn.com/texblog/archive/2007/04/05/linking-native-c-into-c-app
lications.aspx
Also, since the "Add Reference" in the VS IDE works and the .Net Reflector
works, I think the metadata and manifest of the assembly is correct.
Can you show me the detailed stack trace of this BadImageFormatException as
it throws at runtime? It is helpful if you can provide both the native and
managed stack traces. To get the native stack, you may have to turn on the
unmanaged debugging in the VS debugger->Project Property->Debug->Enable
unmanaged code debugging. Also, you have to setup the Microsoft symbol
server correct, so that the native addresses are resolved as function names
correctly.
Finally, do you have the detailed steps to help me reproduce this problem?
Once I can reproduce it locally, I can contact the C++/CLI team to
collaborate on it. Thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Prev by Date: Re: BadImageFormatException from mixed-mode multi-file assembly
- Next by Date: defining entry point (main) in an external static lib for a CLR executable
- Previous by thread: Re: BadImageFormatException from mixed-mode multi-file assembly
- Next by thread: RE: BadImageFormatException from mixed-mode multi-file assembly
- Index(es):
Relevant Pages
|