.NET program crashes involving stubbed functions

Adam Petaccia adam at tpetaccia.com
Wed Aug 13 12:54:17 CDT 2008


Its customary to make a function return NotImplemented in Gdiplus, if
its just a dummy function that does nothing and returns. But .NET seems
to check for this and throw an exception, crashing the program anyway. 

See bug http://bugs.winehq.org/show_bug.cgi?id=12951 for details, but
originally a program crashed because GdipNewPrivateFontCollection was
just a stub. After the function was created, it still crashes because it
returns "NotImplemented", rather than "Ok". IIRC, we return
"NotImplemented" for some debugging reason, but if the goal of Wine is
to run Windows applications, should we just go ahead and return "Ok" so
that .NET apps don't freak out?

Of course in a perfect world, we wouldn't have to fake a return code,
but until that time comes do people have opinions one way or another?




More information about the wine-devel mailing list