[Mono-devel-list] marshal.c assertion failed.

Scott Mohekey scott.mohekey at telogis.com
Wed Feb 23 21:40:17 EST 2005


Scott Mohekey wrote:

> Attached is a patch to keep the reference to the delegates. Also an 
> improvement on the former patch which only changes domains when needed.
>
> Scott
>
>
> Scott Mohekey wrote:
>
>> It seems I spoke too soon.
>>
>> Now I get the following assertion:
>>
>> Unmanaged code called delegate of type 
>> System.Drawing.GDIPlus/GdiPlusStreamHelper.StreamPutBytesImpl which 
>> was already garbage collected.
>> See http://www.go-mono.com/delegate.html for an explanation and ways 
>> to fix this.
>> aborting...
>>
>> However, I think this could be due to GdiPlusStreamHelper in 
>> gdipFunctions.cs not keeping references to the delegates. I'll check 
>> this now.
>>
>> Scott.
>
I still see this on occasion, so my patch is obviously not working 100%.

Scott.



More information about the Mono-devel-list mailing list