One thing i discover, that the errori got here:
v8::Handle<v8::Object> Result = Character::POT->NewInstance();
I have commited a working version with custom class commented and working with a simple sprite, while i discover how exchange c++ classes to v8.
---------------
UPDATED:
More specific here:
Character::POT->NewInstance();
---------------
UPDATED - ANOTHER CLUE:
GDB ERROR FROM COMMAND-LINE
Starting program: /Users/paulo/Pessoal/workspaces/qt/sfml-cmake/build/sfml-project.app/Contents/MacOS/sfml-project
Reading symbols for shared libraries .++++++++++.............................................................................................. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x000000010012ec25 in v8::internal::Execution::InstantiateObject ()
--------------------
UPDATED - FULL DETAILED
Now i know where is the problem, but dont know how to solve it
Reading symbols for shared libraries . done
Breakpoint 1, main () at /Users/paulo/Pessoal/workspaces/qt/sfml-cmake/main.cpp:82
82 v8::Handle<v8::Object> Result = JSCharacter::POT->NewInstance();
(gdb) step
v8::Handle<v8::ObjectTemplate>::operator-> (this=0x10051bb88) at v8.h:216
216 inline T* operator->() const { return val_; }
(gdb) step
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x000000010012ec25 in v8::internal::Execution::InstantiateObject ()
It is acessing a NULL value but, why?
If we "print" the property "val_", we have a NULL object:
(gdb) print val_
$1 = ('v8::ObjectTemplate' *) 0x0