[Mono-list] Boehm GC is eating my Qt bindings ;)

Adam Treat manyoso@yahoo.com
Sat, 16 Mar 2002 11:21:18 -0800


Just recompiled from cvs.  --with-gc:  no love.  without gc:  bindings work
great.

Sorry, I don't think this solves my problem.

adam

On Saturday 16 March 2002 10:41 am, you wrote:
> On 03/16/02 Adam Treat wrote:
> > I'm having some difficulties with the new garbage collection.  When I
> > compile latest cvs with the --with-gc switch, the Qt bindings start
> > throwing out errors WRT the pinvoke statements.  All is well when not
> > configured with --with-gc.  Here is the error:
> >
> > Unhandled exception System.NullReferenceException Segmentation fault.
> > #0: 0x00000            in Qt.QApplication::qt_new_QApplication ([0]
> > [0x813c750] )
> > #1: 0x00009 call       in Qt.QApplication::.ctor ([0] [0x813c750] )
> > #2: 0x00009 newobj     in QtSamples.HelloWorld::Main ([0x813c750] )
> >
> > Not much to go on I know... I've tried to duplicate the error by writing
> > some c code and pinvoking it, but no love.  Kind of hard to make a test
> > case since I'm not sure what is going on and the bindings require the QtC
> > bindings.  Any ideas on how to track this bug down?   Paolo?
>
> In some cases creating the P/Invoke trampoline may have overwritten the
> stack. cvs has a fix: can you check if that solves your problem?
>
> lupus