Javascript first chance exception

This section is for programmers. Please use it for all discussons on interfacing help with your applications and related subjects.

Moderators: Alexander Halser, Michael Schwarzl

Post Reply
appleton
Posts: 37
Joined: Mon Nov 26, 2012 3:40 pm

Javascript first chance exception

Unread post by appleton »

I'm using H&M v6.5.2 with Premium Pack 2, skin "CHM_LightBlue.hmskin" to make a compiled help file.

My program is written in Visual C++ using Visual Studio 2010.

I'm invoking the help window using

HtmlHelp(hwndOwner, sTopicPath.GetBuffer(), HH_DISPLAY_TOPIC, (DWORD)0);

It works fine. I can invoke the help window displaying any topic or even at an anchor position - great!

But each time HtmlHelp is called, the debugging console outputs several javascript exceptions, e.g.:
First-chance exception at 0x764cc42d in MyProg.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x2191d36c..
First-chance exception at 0x764cc42d in MyProg.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x2191c6d4..
First-chance exception at 0x764cc42d in MyProg.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x2191c6c4..
First-chance exception at 0x764cc42d in MyProg.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x2191cb2c..
First-chance exception at 0x764cc42d in MyProg.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x2191c774..
First-chance exception at 0x764cc42d in MyProg.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x2191d65c..
First-chance exception at 0x764cc42d in MyProg.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x2191a164..
and the Call Stack for one of them is:
KernelBase.dll!764cc42d()
[Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
KernelBase.dll!764cc42d()
jscript9.dll!54445f66()
jscript9.dll!54445e9c()
jscript9.dll!54444788()
jscript9.dll!544ccfd3()
jscript9.dll!545a9b76()
jscript9.dll!544a54d2()
jscript9.dll!544a549e()
jscript9.dll!54402b6c()
jscript9.dll!543282cd()
jscript9.dll!543bde4c()
jscript9.dll!544a54f9()
jscript9.dll!544a54d2()
jscript9.dll!544a549e()
jscript9.dll!54390b64()
jscript9.dll!543c5b0e()
jscript9.dll!543a1cd5()
jscript9.dll!5432cecb()
jscript9.dll!54321ce9()
jscript9.dll!54321cb8()
jscript9.dll!5432d0ef()
jscript9.dll!5432c60a()
msvcrt.dll!759198cd()
mshtml.dll!54c53424()
mshtml.dll!54abd89a()
mshtml.dll!54f70539()
mshtml.dll!54f6e0dc()
mshtml.dll!54b5107e()
mshtml.dll!54b594a2()
mshtml.dll!54b59da8()
mshtml.dll!549bd18a()
user32.dll!759f6381()
user32.dll!759e80a9()
user32.dll!759e62fa()
user32.dll!759e6d3a()
user32.dll!759e6ce9()
user32.dll!759e77c4()
user32.dll!759e788a()
hhctrl.ocx!54234717()
hhctrl.ocx!5423bb19()
kernel32.dll!7550336a()
ntdll.dll!77b392b2()
ntdll.dll!77b39285()
Does anyone have any idea what might be causing this?
User avatar
Tim Green
Site Admin
Posts: 23155
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Javascript first chance exception

Unread post by Tim Green »

I'm using H&M v6.5.2 with Premium Pack 2, skin "CHM_LightBlue.hmskin" to make a compiled help file.
Your version of Help & Manual is out of date. Before doing anything else, please update all your installations to the current version of the program. The current version of HM6 is 6.5.5 Build 3020. You can download the installer here (just install on top of your current version to update):

http://www.helpandmanual.com/downloads.html

My guess is that your Premium Pack installation is also out of date. You can check this in the Help & Manual Premium Pack chapter in the main Help & Manual help. The change log topic at the beginning of that chapter shows the installed version, which should be 2.51. If it is earlier, you need to download the current installer with the link and installation credentials from the mail you got when you purchased. If you no longer have that please contact me at support AT ec-software.com (replace the AT with @) and we will help you out.

All that being said, first chance exceptions generally do not mean that there are any genuine problems in the code. See this blog entry for the background on this:

http://blogs.msdn.com/b/davidklinems/ar ... 38061.aspx
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Post Reply