LoadString loads a blank page depending on the url

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.

LoadString loads a blank page depending on the url

Postby romariorios » Sun Mar 05, 2017 6:25 pm

Hello, all.

I've noticed that, depending on the URL, LoadString will load a blank paage, no matter what the string is. It doesn't always happen, and I don't know what triggers it, but, when it happens, it seems that if the URL doesn't start with "http://www" or "https://www", then the string won't be loaded.

Any reason why this might be happening? Is anyone else experiencing the same issue?

Thanks.
romariorios
Mentor
 
Posts: 50
Joined: Thu Apr 30, 2015 6:13 am
Location: Brazil

Re: LoadString loads a blank page depending on the url

Postby amaitland » Sun Mar 05, 2017 6:33 pm

Call `LoadUrl` with a data uri instead.

`LoadString` is problematic, go read some of the old topics if you want to know more

search.php?keywords=LoadString
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: LoadString loads a blank page depending on the url

Postby romariorios » Sun Mar 05, 2017 6:36 pm

amaitland wrote:Call `LoadUrl` with a data uri instead.

`LoadString` is problematic, go read some of the old topics if you want to know more

http://magpcss.org/ceforum/search.php?k ... LoadString

I was doing that so far, but is there a problem if the string I want to load is large?
romariorios
Mentor
 
Posts: 50
Joined: Thu Apr 30, 2015 6:13 am
Location: Brazil

Re: LoadString loads a blank page depending on the url

Postby amaitland » Sun Mar 05, 2017 6:42 pm

Doing what? Please be specific.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: LoadString loads a blank page depending on the url

Postby romariorios » Sun Mar 05, 2017 6:44 pm

amaitland wrote:Doing what? Please be specific.

During OnLoadError.
romariorios
Mentor
 
Posts: 50
Joined: Thu Apr 30, 2015 6:13 am
Location: Brazil

Re: LoadString loads a blank page depending on the url

Postby amaitland » Sun Mar 05, 2017 6:54 pm

I've got no idea what your asking now.

Just use LoadUrl with a data uri instead of LoadString
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 108 guests