[DUG] UseHTML.pas strangeness

Ross Levis ross at stationplaylist.com
Mon Jun 21 14:02:31 NZST 2010


Good thought, but I searched the entire hard drive for usehtml and found
only one instance of the .pas and .dcu.

Here is the initialization section.
  HTMLHelpUser := TUseHTMLHelp.Create;
  Application.OnHelp := HTMLHelpUser.ApplicationHelp;

If I place a breakpoint here, it is being executed, but the ApplicationHelp
function isn't being executed when initiating Help.

My guess is something is changing the Application.OnHelp but I've searched
all code and cannot find anything.

But after writing this and searching the entire drive for "onhelp :=" I saw
the AppEvnts.pas come up in the list and I wondered if perhaps this unit had
been added to one of my units, and sure enough there it was in one of my
forms.  I guess I had at some stage accidentally added the Application
Events component to the form and deleted it later, but AppEvnts was still in
the uses clause.  This apparently does bad things.

Resolved!

-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Jeremy North
Sent: Monday, 21 June 2010 12:13 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] UseHTML.pas strangeness

Since the unit probably just has an initialization section that
registers the reader, you most likely have another dcu with the same
name on your path.

An easy test is to delete the pas and dcu of the file you think it is
using. It is still compiles, then you have another copy on your system
somewhere.

On Mon, Jun 21, 2010 at 9:56 AM, Ross Levis <ross at stationplaylist.com>
wrote:
> I’m using D7 and for several years I’ve been using a freeware unit UseHTML
> which loads CHM files instead of HLP files when activating the help
system.
>
>
>
> As of about 6 months ago, in one of my programs, if I compile it without
> changing any code in the main form, UseHTML doesn’t appear to be used, and
> pressing help produces a dialog saying the CHM file is not a valid Windows
> Help file, which it isn’t.
>
>
>
> If I modify some code in the main form such as inserting a space and
> removing it again, and then compile, it works!  I have to keep remembering
> to do this otherwise I get complaints from users.
>
>
>
> Any ideas why I should have to do this every time?
>
>
>
> I had this problem with a different program a year or 2 back but it’s not
> doing it these days.  Other programs using the same unit are not affected.
>
>
>
> Thanks,
>
> Ross.
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
> unsubscribe
>

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe




More information about the Delphi mailing list