-
Notifications
You must be signed in to change notification settings - Fork 49
Program crash after function call with too much parameters #82
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
Comments
Hello! This error:
occurs because you embedded a delegate to JS engine, which can take only one integer parameter:
You have only two variants for solving this problem:
|
I'm expecting the first exception with "parameter count mismatch" when I call Sleep without parameter. From my point of view this is correct behaviour and the JS engine also is still working correctly after that call. But when I call the Sleep with two parameters I get a different exception with "Runtime is active on another thread." and afterwards the JS engine is not working any longer. The whole program is crashing without any exception or comment (I guess due to problem in native code). Why I don't get the same "parameter count mismatch" exception when using too many parameters? I think the runtime should handle that the same way like when having to less parameters and the JS engine should also not be corrupted after such a call. |
…sh after function call with too much parameters”
I found the cause of error. Tomorrow I will publish a new version. Thanks for information! |
… “Program crash after function call with too much parameters”
Hello! This error is fixed in version 3.4.3. Now the ChakraCore module, like other engines, discards extra parameters before calling the delegate. No exceptions occur during such call. |
I have tested the functionality in the new version and it works like expected. I will close the issue. Thanks for the quick bug fixing! |
Hello,
I have a strange behaviour when calling embedded functions with too much parameters.
I think something gets corrupted in background because with the next function call the program is crashing. When calling a function with too less parameters everything is working like expected. You can use the following code to reproduce this behaviour:
The text was updated successfully, but these errors were encountered: