\CLR Mixed mode compilation woes!
- From: "Herby" <prmarjoram@xxxxxxxxx>
- Date: 7 Dec 2005 11:13:41 -0800
Iv compiled my current C++ project as \clr as i want to start putting
in some specific C++\CLI code to serialize my MFC objects to .NET
equivalents.
The program crashes on startup, something to do with the stack frame
being corrupted.
My first concern is the program has ballooned in terms of the size of
the executable image.
When it attempts to run it fails and some report about stack frame
corruption.
Iv noticed any C files have to be converted to C++.
The program links to a DLL and Libs that have been compiled as C.
Is this a problem when compiling a program as /CLR that then links with
C libs etc and on startup loads C Dlls?
How can i specifically instruct the compiler to only compiler specific
functions/methods as managed(mixed mode) and to leave everything else
as native?
Is this possible?
Thanks in advance.
.
- Follow-Ups:
- Re: \CLR Mixed mode compilation woes!
- From: Carl Daniel [VC++ MVP]
- Re: \CLR Mixed mode compilation woes!
- From: Nishant Sivakumar
- Re: \CLR Mixed mode compilation woes!
- Prev by Date: Re: Change a value in registry (hklm/system) as user
- Next by Date: Re: \CLR Mixed mode compilation woes!
- Previous by thread: Re: Change a value in registry (hklm/system) as user
- Next by thread: Re: \CLR Mixed mode compilation woes!
- Index(es):
Relevant Pages
|