Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-07

LHelp flickering solution: request for comments

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd
to Reinier Olislagers
Reinier Olislagers wrote 9 lines
Hi *, I've written up a proposal to stop lhelp from flickering (e.g. when loading multiple chm files on start) and close it when the IDE is closed. See bug: http://bugs.freepascal.org/view.php?id=24743 Comments/suggestions welcome.

Two questions if I may. First, what happens if two copies of the IDE are open? Are there two separate lhelp instances, and do they track correctly?

Second, when lhelp is invoked by F1 (or direct equivalent), could .chm files be loaded in order of relevance so as to get /something/ useful visible ASAP?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Reinier Olislagers
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 6 lines
Reinier Olislagers wrote: > http://bugs.freepascal.org/view.php?id=24743 > > Comments/suggestions welcome. Two questions if I may.

Of course, that's why I posted this...

First, what happens if two copies of the IDE are open? Are there two separate lhelp instances, and do they track correctly?

Good point. I've been thinking about that - what about this:
* The IDE passes an --ipcname starting with lhelp then an (e.g.; depends on any --ipcname length limits) 4 character random identifier so multiple IDE/lhelp sets does not interfere with communication.

Second, when lhelp is invoked by F1 (or direct equivalent), could .chm files be loaded in order of relevance so as to get /something/ useful visible ASAP?

I don't think so. It seems lhelp is single-threaded or at least synchronous. I wouldn't think this is a big problem though - it takes a couple of seconds on my pc to load all files; perhaps the proposed --hide argument will let lhelp shave off some time as it doesn't need to update its GUI while loading.

Reply by email

Vincent Snijders
to Reinier Olislagers

2013/7/16 Reinier Olislagers

Show quoted text 17 lines
On 16-7-2013 14:56, Mark Morgan Lloyd wrote: > Reinier Olislagers wrote: >> http://bugs.freepascal.org/view.php?id=24743 >> >> Comments/suggestions welcome. > > Two questions if I may. Of course, that's why I posted this... > First, what happens if two copies of the IDE are > open? Are there two separate lhelp instances, and do they track correctly? Good point. I've been thinking about that - what about this: * The IDE passes an --ipcname starting with lhelp then an (e.g.; depends on any --ipcname length limits) 4 character random identifier so multiple IDE/lhelp sets does not interfere with communication.

Instead of the random identifier it could pass the PID of the current process.

Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130716/675cbd0d/attachment.html>

Reply by email

Reinier Olislagers
to Vincent Snijders
Vincent Snijders wrote 14 lines
2013/7/16 Reinier Olislagers < On 16-7-2013 14:56, Mark Morgan Lloyd wrote: > First, what happens if two copies of the IDE are > open? Are there two separate lhelp instances, and do they track correctly? Good point. I've been thinking about that - what about this: * The IDE passes an --ipcname starting with lhelp then an (e.g.; depends on any --ipcname length limits) 4 character random identifier so multiple IDE/lhelp sets does not interfere with communication. Instead of the random identifier it could pass the PID of the current process.

Good idea, thanks.

Reply by email