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

Charles-Louis charlouis.mono@wanadoo.be
06 Mar 2003 11:09:56 +0100


Sorry, I think the problem was from my side... it's not a bug :|

Le mar 04/03/2003 à 19:21, Paolo Molaro a écrit :
> 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?
> 
> Thanks
> 
> lupus
-- 
Charles-Louis <charlouis.mono@wanadoo.be>