Home All Groups Group Topic Archive Search About
Author
27 May 2005 5:17 PM
Marc Friedman
I have a VB6 application which uses HTMLHelp.  When running the executable,
there are reproducible instances where selecting help causes a blank help
window to appear at which point the application goes 100% CPU bound and eats
up memory for about 30 seconds and then crashes with:

There is not enough memory available for this task.
Quit one or more programs to increase available memory, and then try again.

followed by an Application Error:

The instruction at ... reference memory at ... The memory could not be "read".

However, this behaviour does NOT occur when running the application in the
IDE (except for one time which has proven to be unreproducible).  As far as I
can tell the creation of the help window and the display of the help file
contents is handled completely by the HTMLHelp routine of hhctrl.ocx.  Does
anybody know of any reason why this kind of behaviour would occur?  Any
suggestions would be welcome.

Thanks.

Marc

Author
27 May 2005 8:20 PM
Bonj
vb has the ability to produce a pdb file, you could do that and then attempt
production mode debugging.

Show quoteHide quote
"Marc Friedman" <MarcFried***@discussions.microsoft.com> wrote in message
news:9134808F-652D-4903-B68E-C4C891FB7580@microsoft.com...
>I have a VB6 application which uses HTMLHelp.  When running the executable,
> there are reproducible instances where selecting help causes a blank help
> window to appear at which point the application goes 100% CPU bound and
> eats
> up memory for about 30 seconds and then crashes with:
>
> There is not enough memory available for this task.
> Quit one or more programs to increase available memory, and then try
> again.
>
> followed by an Application Error:
>
> The instruction at ... reference memory at ... The memory could not be
> "read".
>
> However, this behaviour does NOT occur when running the application in the
> IDE (except for one time which has proven to be unreproducible).  As far
> as I
> can tell the creation of the help window and the display of the help file
> contents is handled completely by the HTMLHelp routine of hhctrl.ocx.
> Does
> anybody know of any reason why this kind of behaviour would occur?  Any
> suggestions would be welcome.
>
> Thanks.
>
> Marc
Author
31 May 2005 1:03 PM
Marc Friedman
Thanks for the suggestion.

Show quoteHide quote
"Bonj" wrote:

> vb has the ability to produce a pdb file, you could do that and then attempt
> production mode debugging.
>
> "Marc Friedman" <MarcFried***@discussions.microsoft.com> wrote in message
> news:9134808F-652D-4903-B68E-C4C891FB7580@microsoft.com...
> >I have a VB6 application which uses HTMLHelp.  When running the executable,
> > there are reproducible instances where selecting help causes a blank help
> > window to appear at which point the application goes 100% CPU bound and
> > eats
> > up memory for about 30 seconds and then crashes with:
> >
> > There is not enough memory available for this task.
> > Quit one or more programs to increase available memory, and then try
> > again.
> >
> > followed by an Application Error:
> >
> > The instruction at ... reference memory at ... The memory could not be
> > "read".
> >
> > However, this behaviour does NOT occur when running the application in the
> > IDE (except for one time which has proven to be unreproducible).  As far
> > as I
> > can tell the creation of the help window and the display of the help file
> > contents is handled completely by the HTMLHelp routine of hhctrl.ocx.
> > Does
> > anybody know of any reason why this kind of behaviour would occur?  Any
> > suggestions would be welcome.
> >
> > Thanks.
> >
> > Marc
>
>
>
Author
28 May 2005 12:19 PM
J French
On Fri, 27 May 2005 10:17:21 -0700, "=?Utf-8?B?TWFyYyBGcmllZG1hbg==?="
<MarcFried***@discussions.microsoft.com> wrote:

>I have a VB6 application which uses HTMLHelp.  When running the executable,
>there are reproducible instances where selecting help causes a blank help
>window to appear at which point the application goes 100% CPU bound and eats
>up memory for about 30 seconds and then crashes with:
>
>There is not enough memory available for this task.
>Quit one or more programs to increase available memory, and then try again.

Probably bad HTML - replace the lot with something simple

Then, if my hunch is correct, look for a few HTML parsers
- and let your help pages 'run the gauntlet'

ie: check out the HTML through at least three parsers

Personally I would delegate the Help function to a totally separate
EXE - but that is a different matter
Author
31 May 2005 1:04 PM
Marc Friedman
Thanks for the suggestion.

Show quoteHide quote
"J French" wrote:

> On Fri, 27 May 2005 10:17:21 -0700, "=?Utf-8?B?TWFyYyBGcmllZG1hbg==?="
> <MarcFried***@discussions.microsoft.com> wrote:
>
> >I have a VB6 application which uses HTMLHelp.  When running the executable,
> >there are reproducible instances where selecting help causes a blank help
> >window to appear at which point the application goes 100% CPU bound and eats
> >up memory for about 30 seconds and then crashes with:
> >
> >There is not enough memory available for this task.
> >Quit one or more programs to increase available memory, and then try again.
>
> Probably bad HTML - replace the lot with something simple
>
> Then, if my hunch is correct, look for a few HTML parsers
> - and let your help pages 'run the gauntlet'
>
> ie: check out the HTML through at least three parsers
>
> Personally I would delegate the Help function to a totally separate
> EXE - but that is a different matter
>