Excuse me bye the delay of my response. I am grateful with the solution
of the problem that you send to the newsgroup. The error was in the
problem that you notify me.
Thanks again.
Iv�n Su�rez
Oviedo University
P.D. Yes, I am working with the last version of Rotor.
-----Mensaje original-----
De: Discussion of the Rotor Shared Source CLI implementation
[mailto:[EMAIL PROTECTED]] En nombre de Alexei Nikitin
Enviado el: martes, 03 de diciembre de 2002 14:40
Para: [EMAIL PROTECTED]
Asunto: Re: [DOTNET-ROTOR] Adding a System Class to Rotor
> I need write a class inherited from Object (as StringObject does), and
I
> need create instances of it when objects are created (in NewObject
> helpers)...
> The problem is that when I try to create an instance of this class I
get
> an assert in line 5144, in the file gcsmp.cpp. The text of the assert
> is: "!curThread->GCForbidden()".
It seems the problem is in your helper method.
When you use code like Allocate that may trigger GC, you should create
method frames.
Be sure your code is inside HELPER_METHOD_FRAME_BEGIN_x ..
HELPER_METHOD_FRAME_END family of macros.
Hope, this helps.
PS I guess you're using the latest rotor 1.0 ;-)
Lex,
Janus Team