[mythtv] [mythtv-commits] Ticket #4422: when linking errors occur while loading plugins, the errors are not displayed correctly

Harold Brown labrat.hb at gmail.com
Sat Jan 5 07:59:24 UTC 2008


would the code at this site be appropriate?

http://code.google.com/p/dlfcn-win32/

On Jan 4, 2008 11:33 PM, Anduin Withers <awithers at anduin.com> wrote:
> > Comment(by nigel):
> >
> >  Simon, does something like this fix it?
>
> No but a simple mapping of dlerror() to GetLastError() is wrong anyway.
>
> The compat layer should create a dlerror() function that calls
> GetLastError() and then uses FormatMessage() to format the error code into a
> string.
>
> I'm not doing the Windows builds yet but to someone who is: If you look at
> the MSDN example for FormatMessage(), something like that code in a compat
> dlerror() (with a local buffer so we don't have to LocalFree()) should be
> done.
>
> --
> Anduin Withers
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>


More information about the mythtv-dev mailing list