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

Sciter 3.3.0.2 can not compile #5

Open
NYWONG opened this issue Aug 13, 2015 · 11 comments
Open

Sciter 3.3.0.2 can not compile #5

NYWONG opened this issue Aug 13, 2015 · 11 comments

Comments

@NYWONG
Copy link

NYWONG commented Aug 13, 2015

SR := API.SciterWindowAttachEventHandler(Handle, LPELEMENT_EVENT_PROC(@_SciterViewEventProc), Self, UINT(HANDLE_ALL));

this line error

@da-baranov
Copy link
Owner

Which Delphi version are you using?

@NYWONG
Copy link
Author

NYWONG commented Aug 14, 2015

D7 XE8

@gxlmyacc
Copy link

Sciter TSciterApi record was changed from 3.3.0.2

@Mikanoshi
Copy link

SciterWindowAttachEventHandler and ElementEventProc look the same in SciterSDK 3.3.0.6...

@Mikanoshi
Copy link

Fixed it for 3.3.0.6, you have to delete SciterEnumUrlData and all SciterDebug* from ISciterAPI

@da-baranov
Copy link
Owner

Thanks Mikanoshi, I'm testing.
Damn, 3.3.0.6 gets hang and freeze, both as Delphi component and in sciter.exe, and I don't know why.

@Mikanoshi
Copy link

Working for me) in SDK's sciter/sciter64.exe and when created in runtime in Delphi.

@Mikanoshi
Copy link

Well, not really working in Delphi :) Simple code

<script type="text/tiscript">
function doSmth() {
  var chat = self.$(#chat);
  chat.text = "ok";
}
</script>
...
<div id="chat">xyz</div>
...
Sciter.Call('doSmth', []);

causes Access Violation, but stdout.println(chat.text) displays "xyz", no idea why it can't assign value to the element...

@Mikanoshi
Copy link

My crash was a Sciter problem, 3.3.0.6 works well otherwise:
http://sciter.com/forums/topic/previous-versions/#post-42961

@Mikanoshi
Copy link

There are still a number of bugs, even with 3.2.0.7.
Black line always appears on the right after loading document, it can be removed only by resizing Sciter component.

scide

Also my program and SciDe demo sometimes crash with Access Violation on close, crash happens when Sciter component has alredy been destroyed, somewhere inside DLL. I'll ask developer about it.

@Mikanoshi
Copy link

Black line can be fixed by calling Application.ProcessMessages after Sciter was created and positioned on the form.

Access Violation on close happens because Sciter uses Direct2D and conflicts with apps that hook DirectDraw to display overlays (FPS, monitoring, etc). It was Bandicam in my case.

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

No branches or pull requests

4 participants