I'm using V8 32-bit Version 4.10.253 compiled with Visual Studio 2015.
I'm trying to run the example that Google has at: Chrome V8 - Getting Started
But when I try to run it, I get:
Exception thrown at 0x00000000 in V8Test.exe: 0xC0000005: Access
violation executing location 0x00000000.
I get this when the following is executed:
Isolate* isolate = Isolate::New(create_params);
My project settings:
To get the project to compile in debug, I set the runtime library to:
Multi-threaded Debug /MTd.
I include the v8 include directory under additional include directories.
Lastly, I include the following libraries:
icuuc.lib icui18n.lib v8_libplatform.lib v8_external_snapshot.lib
v8_base_3.lib v8_base_2.lib v8_base_1.lib v8_base_0.lib v8_libbase.lib
winmm.lib
Anyone know what I'm doing wrong? Thanks in advance.
Ok, I feel stupid. I didn't finish reading the rest of the tutorial. You must copy all the .bin files where your executable is stored. Specifically:
natives_blob.bin
snapshot_blob.bin
V8 will crash at Isolate::New if you do not.