On the C++ side IsEmpty() is just checking if the handle internal val_ is == 0, which is effectively equivalent to a null pointer when used in that context.
Doesn't look like it was that anyway sadly. I seem to be have had some success by introducing a further context, scoping more aggressively and reordering a few things, but it's not clear to me if this is a permanent fix, or some temporary bit of luck. (It's a little bit 'voodoo', which I always hate -- I prefer to know _exactly_ why it is/ isn't working) (FYI: I noticed it actually failed with a floating point exception first, then a write access violation on subsequent passes through that block.) Much as I'd like to jump up the compiler chain so I wasn't having to use a custom header, we have a million-line codebase that we support across both windows and linux (where, try not to laugh, we're currently stuck on GCC 3.x -- though at least there we've almost finished updating everything so it can build under GCC 4.x too, thank god, at which point I can roll this out for linux usage too. A few of us have VS2008 to test-compile too, and sporadically updates are made to get things working there, but it's not a high priority -- it's not like there's anything actually wrong with VS2003. If anything VS2008 is more irritating due to the endless warnings begging you to use their own 'secure' [aka: slow] STL features) -A On May 20, 1:53 am, Stephan Beal <[email protected]> wrote: > On Tue, May 19, 2009 at 6:16 PM, <[email protected]> wrote: > > dereference. Can anyone suggest better defaults than the below? I > > would be eternally grateful, this is now the only thing holding me > > back from production deployment! > > [snyde comment about using a production-ready compiler removed] > > > using something other than "v8::Handle<v8::Value>()" (which seems to > > be null), but I haven't a clue what might be suitable... :-\ > > Handle<>() is-not IsNull(), but is IsEmpty(). To get a JS-side null > value use v8::Null() instead. > > -- > ----- stephan bealhttp://wanderinghorse.net/home/stephan/ --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
