sciter-js-sdk
sciter-js-sdk copied to clipboard
in 4.4.7.2 the C# call api.SciterCreateWindow is null
4.4.7.2 get crash, but 4.4.6.6 is OK. in 4.4.7.2, the C# app call _API.SciterCreateWindow, which is NULL, so the latest ISciterAPI changed?
public delegate IntPtr FPTR_SciterCreateWindow(SciterXDef.SCITER_CREATE_WINDOW_FLAGS creationFlags, ref PInvokeUtils.RECT frame, SciterXDef.FPTR_SciterWindowDelegate delegt, IntPtr delegateParam, IntPtr parent);
public FPTR_SciterCreateWindow SciterCreateWindow;
https://github.com/c-smile/sciter-js-sdk/blob/main/logfile.md#4470
https://github.com/c-smile/sciter-js-sdk/blob/main/logfile.md#4470
C# How to update
SciterCore
and SciterCore.JS
are still in active development (my time is very limited at the moment), I do try get updates out regularly.
As SciterCore
and SciterCore.JS
use runtime bindings to the Sciter.TIS
(formerly Sciter
) and Sciter
(formerly Sciter.JS
) adding support for the UniversalApi
was rather simple.
If you want to download and try the latest versions you get get them from the GitHub repo or download the packages below (they are being indexed on NuGet at the moment)
For SciterSharp
you should be able to get them to work with the latest binaries by updating SciterX.cs
I haven't tried (and PRs into the repo aren't permitted) but it should be as easy as removing the compiler directives in ISciterAPI
[StructLayout(LayoutKind.Sequential)]
public struct ISciterAPI
{
#if WINDOWS
...
#if OSX
...
#if GTKMONO
...
}
Remove #if WINDOWS
, #if OSX
and #if GTKMONO
and the corresponding #endif