Recent

Author Topic: LHelp strange behavior  (Read 9806 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: LHelp strange behavior
« Reply #15 on: September 25, 2014, 03:15:12 pm »
I did some quick research.

I don't use that .lpr, but build_lcl_chm.sh

How do you extract the index? with "extractindex lcl.chm" or extract lcl.chm default.hhk ?

I had a quick look, and I notice two things:

- the binary one (extractindex) is a lot larger.
- Windows seems to use the textual one
- the binary one has keyword attribute equal to the name attribute where IMHO that is wrong. Question is only if that is wrong in chmls or in the original index (and thus fpdoc).

I guess I have my homework for the weekend cut-out.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: LHelp strange behavior
« Reply #16 on: September 25, 2014, 04:51:53 pm »
How do you extract the index? with "extractindex lcl.chm" or extract lcl.chm default.hhk ?
extractindex lcl.chm

I guess I have my homework for the weekend cut-out.
;)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Sergios

  • New Member
  • *
  • Posts: 10
Re: LHelp strange behavior
« Reply #17 on: September 28, 2014, 08:09:13 am »
I spent a few time for little investigation. Results are following:
  • lhelp.exe launched directly works fine as standalone CHM viewer.
  • lhelp.exe launched indirectly from another app(s) works fine too.
  • lhelp.exe launched either directly or indirectly with parameter "--ipcname servername" works with problems ("strange behavior").
I found than Lazarus create two pairs of IPC server-client (one pair for F1 Help and one pair for Help from IDE menu. But why?). I am sure it is interesting. :)
As you know, last digits of servername generated by Lazarus are PID of Lazarus. But if we try to launch LHelp from IDE (Help->Help) then we can see that servername contains terminated zero (why?).
...
Windows 8.1 Pro, Lazarus 1.2.4, FPC 2.6.4

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: LHelp strange behavior
« Reply #18 on: September 28, 2014, 08:12:45 am »
@Sergios:
http://wiki.lazarus.freepascal.org/Help_protocol

But if we try to launch LHelp from IDE (Help->Help) then we can see that servername contains terminated zero (why?).
No idea - perhaps the SimpleIPC code does that...

Does context-sensitive help work for you or do you see problems (that are not known bugs as I posted before)?
« Last Edit: September 28, 2014, 08:14:16 am by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Sergios

  • New Member
  • *
  • Posts: 10
Re: LHelp strange behavior
« Reply #19 on: September 28, 2014, 09:20:43 pm »
Does context-sensitive help work for you or do you see problems (that are not known bugs as I posted before)?
Context-sensitive help works fine in my case.
Windows 8.1 Pro, Lazarus 1.2.4, FPC 2.6.4

 

TinyPortal © 2005-2018