c-smile / sciter-sdk

Sciter is an embeddable HTML/CSS/scripting engine
http://sciter.com
Other
2.11k stars 224 forks source link

sciter.dll from bin.win folder does not work #211

Closed TopsDesk closed 2 years ago

TopsDesk commented 2 years ago

I have an old version of sciter.dll that works fine with the application rustdesk.

But when I use the fresh small DLL from bin.win directory, it does not run. I get this error thread 'main' panicked at 'error: 'sciter.dll' was not found neither in PATH nor near the current executable. Please verify that Sciter SDK is installed and its binaries (from SDK/bin/64) are available in PATH.'

But when I replace this sciter.dll with the old one it just works fine.

Please help. I would like to use the small DLL please.

wdcossey commented 2 years ago

Think you would need to provide some more information:

  1. What version is your old version?
  2. Is this for an x86 or x64 project (I assume x64 from the error message)?
  3. What version is the fresh small DLL?
  4. Can you explain what small dll you are talking about, is this Sciter Lite, is you app compatible with the lite version?
  5. Have you updated your rust bindings (link)?
  6. If this is a rust issue it may be quicker to get help from @pravic as he maintains rust-sciter

FYI: Not all versions of Sciter are backwards compatible out-of-the-box, you may require additional updates (see point 5).

TopsDesk commented 2 years ago

Thanks for a quick response. To answer your questions: I have not updated any code or bindings. I am using X64 RustDesk Executable (rustdesk.exe for Windows 64.) This points to a large 8MB sciter.dll ( I am not sure, which version is that).

Question for you: Are these 2 versions compatible - both of them come from sciter code(s) of c-smile? https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll and https://github.com/c-smile/sciter-sdk/blob/master/bin.win/x64/sciter.dll

Answers to your questions:

  1. What version is your old version? : This version works with the rustdesk.exe - here is the link https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll

  2. Is this for an x86 or x64 project (I assume x64 from the error message)? : X64

  3. What version is the fresh small DLL? : 4.4.8.7 from https://github.com/c-smile/sciter-sdk/blob/master/bin.win/x64/sciter.dll (size is about 149K vs. 8 Meg of old DLL).

  4. Can you explain what small dll you are talking about, is this Sciter Lite, is your app compatible with the lite version? The link does not say it is sciter-lite. : I am not using sciter-light DLL, Here is the link of new small DLL https://github.com/c-smile/sciter-sdk/blob/master/bin.win/x64/sciter.dll

  5. Have you updated your rust bindings (link)? : No. - This may be the reason - I will check and rebuild the project.

  6. If this is a rust issue it may be quicker to get help from @pravic as he maintains rust-sciter : I will check this and will let you know..

Regards.

c-smile commented 2 years ago

There are two sciter x64 Windows binaries:

sciter-sdk/bin.win/x64/sciter.dll - 7.86 MB - this includes Direct2D + GDI+ backend. sciter-sdk/bin.win/x64skia/sciter.dll - 9.66 MB - this includes Direct2D + Skia/OpenGL backend (so it is larger).

I have no idea where these 149K comes from.

TopsDesk commented 2 years ago

Okay - Thank you.