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

Paolo Molaro lupus@ximian.com
Sat, 16 Mar 2002 19:41:16 +0100


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

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better