sciter-js-sdk icon indicating copy to clipboard operation
sciter-js-sdk copied to clipboard

in 4.4.7.2 the C# call api.SciterCreateWindow is null

Open christan-duplicate opened this issue 3 years ago • 4 comments

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;

christan-duplicate avatar Apr 28 '21 07:04 christan-duplicate

https://github.com/c-smile/sciter-js-sdk/blob/main/logfile.md#4470

pravic avatar Apr 28 '21 08:04 pravic

https://github.com/c-smile/sciter-js-sdk/blob/main/logfile.md#4470

C# How to update

christan-duplicate avatar Apr 28 '21 08:04 christan-duplicate

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)

SciterCore.JS SciterCore

wdcossey avatar Apr 28 '21 21:04 wdcossey

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

wdcossey avatar Apr 28 '21 21:04 wdcossey