Crash on GetException() on CefRefPtr<CefV8Value>

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Re: Crash on GetException() on CefRefPtr<CefV8Value>

Postby tomst » Fri Oct 10, 2014 1:25 am

@Czarek, I just tried, but HasValue() causes the same error as GetValue()
tomst
Techie
 
Posts: 43
Joined: Fri Aug 22, 2014 4:38 pm

Re: Crash on GetException() on CefRefPtr<CefV8Value>

Postby Czarek » Fri Oct 10, 2014 2:43 am

@tomst Have you also called HasValue() before getting PhoneHandler? Also phoneHandler->IsObject()? If it's not an object I don't think you can call HasValue/GetValue.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Crash on GetException() on CefRefPtr<CefV8Value>

Postby tomst » Fri Oct 10, 2014 1:06 pm

Thanks Czarek, both global->HasValue("PhoneHandler") and handler->IsObject() are both returning false indeed, so looks like it's necessary to check these.
tomst
Techie
 
Posts: 43
Joined: Fri Aug 22, 2014 4:38 pm

Previous

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 57 guests