[Mono-list] Problems with delegates (Qt#)
Dietmar Maurer
dietmar@maurer-it.com
03 Jan 2003 14:38:59 +0100
I tried to install qt#, but if i run:
> mono hello.exe
i get various warnings:
** (hello.exe:29609): WARNING **: Failed to load library libqtsharp (libqtsharp): /usr/local/lib/libqtsharp.so: undefined symbol: _ZNSt8ios_base4InitC1Ev
** (hello.exe:29609): WARNING **: Failed to load library libqtsharp (libqtsharp): /usr/local/lib/libqtsharp.so: undefined symbol: _ZNSt8ios_base4InitC1Ev
** (hello.exe:29609): WARNING **: Failed to load function qt_new_QApplication3 from libqtc
** (hello.exe:29609): WARNING **: Failed to load function qt_new_QApplication3 from libqtc
any ideas whats wrong?
- Dietmar
On Tue, 2002-12-31 at 00:56, Marcus wrote:
> Qt# is having major problems involving delegates. Essentially, we are
> creating
> delegates for C# instances/methods (since a delegate for an instance
> encapsulates both the instance and the method), and we are passing the
> delegate to unmanaged code. The unmanaged code is supposed to invoke
> the
> delegate at the appropriate time.
>
> Under Mono, delegates with no parameters (e.g. void quit() ) work, but
> delegates that take an int, for example (e.g. void display(int) ), are
> never
> called.
>
> The same problems occurs when using mint or mono, and it does not
> matter
> whether the code is compiled with mcs or csc. Interestingly, the same
> code
> does work correctly under Portable.NET.
>
> I really do not know what to do at this point. I have spent hours and
> hours
> trying to figure out why this isn't working. It's seems as though the
> runtime
> is not allowed the unmanaged code to invoke the managed code.
>
>
>
> _______________________________________________
> Mono-list maillist - Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>