Internal limitation: too many fields

P

Paolo Pagano

I got the infamous run-time error

Internal limitation: too many fields.
... Could not find or load a type. (Exception from HRESULT: 0x80131522)

My 'VC++ managed' assembly (VS2005) use MFC in a shared Dll and stl, it's
'string pooled' and includes also legacy C++ code. ILDASM say my assembly
has
about 3150 classes and 24548 global methods (when dumping to file: is this
all?)

All is less then ~65K, so what's the problem? ILDASM dumps a lot of things
like:

.field static privatescope int32** $FD$5748$PST04005748 at D_00C78C68

where do they came from? I don't know if MFC+stl produce static symbols in
EVERY
including source or I missing something else.

Thanks,
pL
 
P

Paolo Pagano

the problem arise adding a method to a base class of all the legacy types
(this method has a managed type parameter):


class LegacyBaseClass : public CCmdTarget, public MyInterface
{
...
HRESULT AddedMethod( LPCTSTR name, System::Object^ obj );
}

any suggestion?

pL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top