bbqchickenrobot / csharp-sqlite

Automatically exported from code.google.com/p/csharp-sqlite
Other
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
Issue 8 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Corrected Sastus

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