User forums > Help
Problem with Help
gd_on:
I have configured the help to access some files as man files or .chm files. Until now it worked, but recently it crashes C::B. I don't know with which svn version it began.
Generally, I right click on on word in the editor, then I try to locate it in the help files through the popup obtained with a right clic and choose in which file to search.
For example I have "wxWidgets" configured with "C:\wxWidgets-3.1.5\docs\wxWidgets-3.1.5.chm". But this also happen on other .chm files.
When I have made my choice, C::B crashes after a while.
Here is the RPT file obtained.
I tried to compile C::B with -g and launch C::B with gdb. Nevertheless, the backtrace (gdb_out.txt) does not give many more informations.
oBFusCATed:
Looks like it is crashing inside some HtmlHelp COM component.
Does it crash in 20.03 or the latest official night build?
gd_on:
for me, it crashes in svn 12312, so the very last svn.
oBFusCATed:
I'm asking about official builds specifically to rule out problematic self-builds.
Miguel Gimenez:
Can you change fp_htmlHelp to false in the first if() in this code (help_plugin.cpp:121) and try again?
--- Code: --- wxThread::ExitCode LaunchCHMThread::Entry()
{
if (fp_htmlHelp) // do it our way if we can
{
cbHH_AKLINK link;
link.cbStruct = sizeof(cbHH_AKLINK);
link.fReserved = FALSE;
link.pszKeywords = m_keyword.c_str();
link.pszUrl = NULL;
link.pszMsgText = NULL;
link.pszMsgTitle = NULL;
link.pszWindow = NULL;
link.fIndexOnFail = TRUE;
#if defined(_WIN64) | defined(WIN64)
fp_htmlHelp(0L, (const wxChar*)m_filename, cbHH_KEYWORD_LOOKUP, (DWORDLONG)&link);
#else
fp_htmlHelp(0L, (const wxChar*)m_filename, cbHH_KEYWORD_LOOKUP, (DWORD)&link);
#endif
}
else // do it the wx way then (which is the same thing, except for the 0L in the call to fp_htmlHelp)
{
m_helpctl.KeywordSearch(m_keyword);
}
return 0;
}
--- End code ---
BTW, shouldn't
--- Code: ---#if defined(_WIN64) | defined(WIN64)
--- End code ---
be
--- Code: ---#if defined(_WIN64) || defined(WIN64)
--- End code ---
?
Navigation
[0] Message Index
[#] Next page
Go to full version