[Mono-list] Threads - Calling the Parent constructor from another assembly?

Paolo Molaro lupus@ximian.com
Tue, 4 Mar 2003 19:21:22 +0100

On 02/28/03 Charles-Louis wrote:
> Basically, the core assembly contains an empty thread, and some classes
> to access it. My Mono assembly contains a frontend for those methods,
> and the GtkComponent class inherits from a BasicComponent in the core.
> in the Parent's constructor: (Core.dll)
> 	this.theThread = new Thread(new ThreadStart(WorkerThread));
> 	//where WorkerThread is an empty virtual function//
> in Child:
> 	Class1 theClass = new Class1();
> 	// the Class1 constructor doesn't exist, so it should call
> 	// the parent's constructor
> Problem:
> 	If I compile Mono + Common classes into one assembly, it works, andthe
> Thread is initialized, but if I separate both assemblies (in order to
> share the core), the Thread is never initialized (Parent's constructor
> is not used).

Can you provide a small test case and file a bug report at
bugzilla.ximian.com with instructions about how to compile it and reproduce
the issue?



lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better