orlandov / node-sqlite

Asynchronous, non-blocking SQLite3 bindings for Node.js
262 stars 29 forks source link

Not able to use callback with sqlite3_update_hook #39

Open ash123jad opened 12 years ago

ash123jad commented 12 years ago

I am using nodejs with node-sqlite (nodejs version is 0.6.6 and I an not sure how to get the version for node-sqlite that I am using.

The problem I am facing is that when I use the commented out code in (database.cc) to add a callback for update, my Node js application gets a segmentation fault. After attaching a debugger and adding a breakpoint in the UpdateHook function, I see that the segv happens on the first line of the function :

   HandleScope scope; 

Can someone tell me what I am missing?

ThanksQ