Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of DllImport for GetLastError & FormatMessageA prevents running under Silverlight #9

Closed
GoogleCodeExporter opened this issue Oct 2, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Use of DllImport for GetLastError prevents running under Silverlight


    [DllImport( "kernel32", SetLastError = true )]
    static extern int GetLastError();

in referenced in os_win_c.cs and used by getLastErrorMsg

This prevents fulling running under Silverlight

Original issue reported on code.google.com by noah.hart@gmail.com on 7 Aug 2009 at 4:05

@GoogleCodeExporter
Copy link
Author

Issue 8 has been merged into this issue.

Original comment by noah.hart@gmail.com on 7 Aug 2009 at 4:09

@GoogleCodeExporter
Copy link
Author

Also [DllImport( "kernel32.dll", SetLastError = true )]
    static extern int FormatMessageA( int dwFlags, ref object lpSource,
    int dwMessageId, int dwLanguageId, string lpBuffer,
    int nSize, ref int Arguments );

in referenced in os_win_c.cs and used by getLastErrorMsg

Original comment by noah.hart@gmail.com on 7 Aug 2009 at 4:10

  • Changed title: Use of DllImport for GetLastError & FormatMessageA prevents running under Silverlight

@GoogleCodeExporter
Copy link
Author

Removed GetLastError & FormatMessage dllImports; replaced with managed calls
Marshal.GetLastWin32Error() and System.ComponentModel.Win32Exception

Original comment by noah.hart@gmail.com on 24 Aug 2009 at 1:22

  • Changed state: f

@GoogleCodeExporter
Copy link
Author

Corrected Sastus

Original comment by noah.hart@gmail.com on 24 Aug 2009 at 1:23

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant