Hugo Benicio
2014-01-27 17:36:42 UTC
Hi guys.
I'm trying to port my application from wxWidgets 2.8 to 3.0.0
I did all major changes needed in my code, but there is an issue
with wxHtmlWindow here that gives me no option but to ask for help here at
wxWidgets list.
I'm trying to load a html with it. It worked just fine with 2.8, but 3.0.0
gives me some runtime assertation errors during parsing.
Here is my code:
wxHtmlWindow *about = new wxHtmlWindow(this, -1, wxDefaultPosition,
wxSize(390,270));
about->SetRelatedFrame(dialog->frame, "SIGA");
abou ->SetRelatedStatusBar(0);
wxFileName exeFileName(wxStandardPaths::Get().GetExecutablePath());
wxString aboutFilePath = exeFileName.GetPathWithSep() + wxT("about.htm");
about->LoadFile(wxFileName(aboutFilePath));
And the html goes attached.
What I realized from the callstack is that wxHtmlWindow is parsing the
title element from html, then trying to set the title with
wxHtmlWindow::OnSetTitle, which calls wxString::Printf that fails for some
strange reason. I can send you the complete callstack is needed.
Please, can someone help me? All my efforts were worthless...
Thanks in advance, Hugo BenĂcio.
PS.: I tried a Unicode version of the html file... didn't work.
I'm trying to port my application from wxWidgets 2.8 to 3.0.0
I did all major changes needed in my code, but there is an issue
with wxHtmlWindow here that gives me no option but to ask for help here at
wxWidgets list.
I'm trying to load a html with it. It worked just fine with 2.8, but 3.0.0
gives me some runtime assertation errors during parsing.
Here is my code:
wxHtmlWindow *about = new wxHtmlWindow(this, -1, wxDefaultPosition,
wxSize(390,270));
about->SetRelatedFrame(dialog->frame, "SIGA");
abou ->SetRelatedStatusBar(0);
wxFileName exeFileName(wxStandardPaths::Get().GetExecutablePath());
wxString aboutFilePath = exeFileName.GetPathWithSep() + wxT("about.htm");
about->LoadFile(wxFileName(aboutFilePath));
And the html goes attached.
What I realized from the callstack is that wxHtmlWindow is parsing the
title element from html, then trying to set the title with
wxHtmlWindow::OnSetTitle, which calls wxString::Printf that fails for some
strange reason. I can send you the complete callstack is needed.
Please, can someone help me? All my efforts were worthless...
Thanks in advance, Hugo BenĂcio.
PS.: I tried a Unicode version of the html file... didn't work.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users