On Tue, 2002-08-13 at 09:27, Joseph Wenninger wrote:
> Hi
> 
> >
> >No, there are no restrictions. But i am not sure if I really understand
> >the above example.
> >
> 
> To be a littlebit more precicely:
> 
> I call with mono_jit_exec a method, which initializes some QtC# objects. Those 
>create reall QWidgets, which are handled by the main event loop of my hosting 
>application, since it is a QApplication. Those created QWidgets  are able to call 
>back into the c# code (eg button clicks,....).
> 
> In the qtc# examples and in the gtk-sharp examples, the main event loop is created 
>from within the c# code's main method. My main method returns immediatly though, to 
>avoid blocking the hosting application, which already has a main event loop. 
> 
> I had not been sure, if it is really save that the widgets still call back into the 
>c# code.

It should be save.
 
> Another question:
> Why does the init method already need the filename ?

Good question. I the early days of the jit I used it to get the address
of the stack frame. But the code seems to be broken and unused, so I
will try to remove the filename parameter (you can pass an arbitrary
string in the meantime).

> If I get it right, I can still open more than one assembly  at the same within the 
>same domain by calling: assembly = mono_domain_assembly_open (domain, file); right ?
> Otherwise I could only load one plugin at a time, which wouldn't make much sense for 
>me.

yes, you can load more than one assembly.

- Dietmar



_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to