Recent

Author Topic: LazProfiler - "File Not open"  (Read 1331 times)

Nicole

  • Hero Member
  • *****
  • Posts: 970
LazProfiler - "File Not open"
« on: January 12, 2024, 06:46:18 pm »
hope, this is the correct place to post my question:

Just tried LazProfiler (Laz 3).

There was something strange:
It did not compile until I changed
TVirtualStringTree => TLazVirtualStringTree
for three or four times.

Then it integrated into the IDE as it is said here:
https://wiki.freepascal.org/LazProfiler#Hints_in_source_code

I can click inside the IDE the checkbox "activate" from the tab configuration, but on every attempt to use the function, - I read "file no open".
This is on startup, this is on an attempt of checking the tab "result", this is on several other occasions.

My own project compiles fine and runs and can be closed.
However: Lazprofiler does not show me anything because "file not open".

The reset thing I have tried already.

What can I do?


yus

  • Jr. Member
  • **
  • Posts: 57
Re: LazProfiler - "File Not open"
« Reply #1 on: January 18, 2024, 07:44:49 pm »
« Last Edit: January 18, 2024, 07:48:52 pm by yus »

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: LazProfiler - "File Not open"
« Reply #2 on: January 18, 2024, 07:55:37 pm »
Try this fork.
https://github.com/seryal/LazProfiler
If that one is really fixed and confirmed to work with latest official Lazarus, then it should replace the original one in OPM which seams to be abandoned...
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

yus

  • Jr. Member
  • **
  • Posts: 57
Re: LazProfiler - "File Not open"
« Reply #3 on: January 18, 2024, 07:59:49 pm »
Quote
If that one is really fixed and confirmed to work with latest official Lazarus, then it should replace the original one in OPM which seams to be abandoned...
It's probably right for the maintainer to do this.
I have created a pull request to the main repository.

Nicole

  • Hero Member
  • *****
  • Posts: 970
Re: LazProfiler - "File Not open"
« Reply #4 on: January 19, 2024, 05:12:57 pm »
Laz Profiler the second... another fail.

I could install the above version, these are the good news.
The bad news are, - I hated it, this is why:

- there is another component needed, et... (what was the name?). I had to get it by hand, because the profiler did not install it as "dependent" alike other component

- the profiler messes: it writes itself twice into the uses list for several times, nobody knows why and when and when not. I had to remove this manually.

- it messes into the code. There was a code looking fine after the profiler included himself, but the compiler wined. So I had to put this methods into commentary to run it

- finally after much waiting time and re-starts of the IDE, the profiler worked.
However it did not show me anything useful. As I checked "results" there was the name of my project, checked, but no information.

As the profiler wrote into my code and I got no warning it will do this, - I did not backup my code.
As I had to change that much, put something into commentary, editing the uses list.... I killed all of it including the profiler and reset the whole VM to its recent version.

A pity!
I bet the profiler is a great work and only the last brush is missing to make it robust.

 

TinyPortal © 2005-2018