Are Visit methods called once and only once?

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.

Are Visit methods called once and only once?

Postby cybersight » Wed Feb 21, 2024 10:42 am

The specific case I'm having an issue with is CefStringVisitor::Visit() when passed to CefFrame::GetSource(). Somehow I seem to be receiving Visit callbacks after already having received the source string.
cybersight
Techie
 
Posts: 38
Joined: Mon Dec 11, 2023 11:04 am

Re: Are Visit methods called once and only once?

Postby magreenblatt » Wed Feb 21, 2024 11:16 am

It should only be called once, unless you are re-using the same CefStringVisitor object (passing it to GetSource multiple times).
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Are Visit methods called once and only once?

Postby cybersight » Sun Feb 25, 2024 11:21 am

Thanks for confirming, I've resolved the issue now.
cybersight
Techie
 
Posts: 38
Joined: Mon Dec 11, 2023 11:04 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 226 guests