[v8-users] Executing a script will occur an error "Access violation executing location"

2022-05-05 Thread Kazuya Hiruma
I'm new to C++ and V8. I'm googling some scripts for creating a V8 engine wrapper. I refered some implementations to implement my system. I'm so confused why the error is occurred. My all code are below. *1. Header* #pragma once #include namespace v8_api { class Core { private:

[v8-users] Re: Executing a script will occur an error "Access violation executing location"

2022-05-05 Thread Kazuya Hiruma
I solved this problem. The reason is I decleared `std::unique_ptr` as local variable then its destructor will be invoked at last of the `Initialize` method. I changed to store the value on the `Core` class side then the problem was solved. 2022年5月5日木曜日 21:41:57 UTC+9 Kazuya Hiruma: > I'm new