Re: Still doesn't work
Status: Inactive
Brought to you by:
manyoso
|
From: Adam T. <ma...@ya...> - 2003-01-18 17:07:09
|
On Saturday 18 January 2003 07:05 am, Adam Treat wrote:
> Sorry, I made all of those changes you were speaking of and forgot to
> commit last night ;) I'll commit them today and install csc...
>
> On Saturday 18 January 2003 05:00 am, Marcus wrote:
> > I have to make some changes to the QApplication.cs's constructor because
> > of the int& argc parameter in new_QApplication0. Since argc is passed by
> > reference in C++, the P/Invoke signature needs to be "ref int". Also, I
> > had to create a temporary variable
> >
> > int length = args.Length
> >
> > since you can't you can't write "ref args.Length" because you can't
> > assign to args.Length (in C terms, it's not an lvalue).
> >
> > Mono is still totally unhappy about this program. ilrun gets a little
> > further -- far enough to produce this when I run it under gdb:
> >
> > marcus@linux:~/src/QTSHARP-HEAD/qtsharp> gdb /usr/local/bin/ilrun
> >
> > (gdb) r hello.exe
> > Starting program: /usr/local/bin/ilrun hello.exe
> > [New Thread 1024 (LWP 10707)]
> > qApp
> > Qt: gdb: -nograb added to command-line options.
> > Use the -dograb option to enforce grabbing.
> > HelloWorld
> > Qt.QString
> > Qt.QPushButton
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 1024 (LWP 10707)]
> > 0x409db2da in QString::unicode() const (this=0x8130ed4)
> > at ../include/qstring.h:597
> > 597 const QChar* unicode() const { return d->unicode; }
> > Current language: auto; currently c++
> > (gdb) bt
> > #0 0x409db2da in QString::unicode() const (this=0x8130ed4)
> > at ../include/qstring.h:597
> > #1 0x40dd5cac in operator==(QString const&, QString const&)
> > (s1=@0x8287734, s2=@0x8130ed4) at tools/qstring.cpp:17323
> > #2 0x40b5a2c2 in QButton::setText(QString const&) (this=0x82876c0,
> > text=@0x8130ed4) at widgets/qbutton.cpp:467
> > #3 0x40be47bf in QPushButton (this=0x82876c0, text=@0x8130ed4,
> > parent=0x0, name=0x823efe8 "") at widgets/qpushbutton.cpp:284
> > #4 0x40746ac2 in QPushButtonGlue (this=0x82876c0, text=@0x8130ed4,
> > parent=0x0,
> > name=0x823efe8 "") at QPushButtonGlue.cpp:7
> > #5 0x407468e9 in new_QPushButton1 (managedPtr=0x12, text=@0x8130ed4,
> > parent=0x0, name=0x823efe8 "") at QPushButtonGlue.cpp:16
> > #6 0x080b1acb in ffi_call_SYSV ()
> > #7 0x080b1a92 in ffi_raw_call ()
> > #8 0x0808101d in _ILCVMInterpreter (thread=0x8108fc0) at cvm_call.c:665
> > #9 0x0804b912 in _ILCallMethod (thread=0x810903c, method=0x8109068,
> > unpack=0x804b620 <_ILCallUnpackDirectResult>, result=0x1, isCtor=0,
> > _this=0x1, pack=0x804b2a0 <_ILCallPackVaParams>, userData=0x1) at
> > call.c:705
> > #10 0x0804bc6c in ILExecThreadCall (thread=0x1, method=0x1, result=0x1)
> > at call.c:909
> > #11 0x0804b09b in main (argc=2, argv=0xbffff5e4) at ilrun.c:344
> > #12 0x40093991 in __libc_start_main () from /lib/libc.so.6
|