• Do'nt know

    From Rolf Buenning@21:1/5 to All on Thu Aug 21 11:29:15 2025
    Hi,

    Sorry, if I make mistakes in this english.

    I try to make a application in free-pacal, ide is lazarus.
    All things looked good up to yesterday or so.

    The application has few units and forms, which will be started from
    a main-form via button-click event with form.showmodal.

    Now if I start the application, it jumps right into the middle of
    the application whithout all steps before whithout main-form etc.

    How can I find the mistake.

    I would be happy about answers.

    --
    Greetings Rolf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David LaRue@21:1/5 to Rolf Buenning on Thu Aug 21 17:42:30 2025
    Rolf Buenning <[email protected]> wrote in news:mgoe8bFj0oiU1 @mid.individual.net:


    Hi,

    Sorry, if I make mistakes in this english.

    I try to make a application in free-pacal, ide is lazarus.
    All things looked good up to yesterday or so.

    The application has few units and forms, which will be started from
    a main-form via button-click event with form.showmodal.

    Now if I start the application, it jumps right into the middle of
    the application whithout all steps before whithout main-form etc.

    How can I find the mistake.

    I would be happy about answers.


    Unless you have a serious number of procedures the easiest method to figure this out without a debugger is to log to the console or a "log file" and
    set up 'log entries' along the path you expect plus along the path to the procedure that was unexpected. While doing this step you might find your answer in an unexpected call to the offending procedure.

    Run the application once. Then examine the output log (screen or log file)
    to find the procdure that was called unexpectedly. You can also pipe the output to a log file on most operating systems; it just takes more typing
    when starting the application.

    Modify the log entries as needed to fine tune the results.

    Some compilers have a compile switch that will do this for you
    automatically.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rolf Buenning@21:1/5 to All on Fri Aug 22 06:07:55 2025
    On Thu, 21 Aug 2025 17:42:30 -0000 (UTC), David LaRue <[email protected]> tippte:
    Rolf Buenning <[email protected]> wrote in news:mgoe8bFj0oiU1 @mid.individual.net:


    Hi,

    Sorry, if I make mistakes in this english.

    I try to make a application in free-pacal, ide is lazarus.
    All things looked good up to yesterday or so.

    The application has few units and forms, which will be started from
    a main-form via button-click event with form.showmodal.

    Now if I start the application, it jumps right into the middle of
    the application whithout all steps before whithout main-form etc.

    How can I find the mistake.

    I would be happy about answers.


    Unless you have a serious number of procedures the easiest method to figure this out without a debugger is to log to the console or a "log file" and
    set up 'log entries' along the path you expect plus along the path to the procedure that was unexpected. While doing this step you might find your answer in an unexpected call to the offending procedure.

    Run the application once. Then examine the output log (screen or log file) to find the procdure that was called unexpectedly. You can also pipe the output to a log file on most operating systems; it just takes more typing when starting the application.

    Modify the log entries as needed to fine tune the results.

    Some compilers have a compile switch that will do this for you
    automatically.

    Thanks, I will try that and tell later about it.
    --
    Gruss Rolf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rolf Buenning@21:1/5 to All on Sun Aug 24 11:25:10 2025
    On 22 Aug 2025 06:07:55 GMT, Rolf Buenning <[email protected]> tippte:
    On Thu, 21 Aug 2025 17:42:30 -0000 (UTC), David LaRue <[email protected]> tippte:
    Rolf Buenning <[email protected]> wrote in news:mgoe8bFj0oiU1
    @mid.individual.net:


    How can I find the mistake.

    Unless you have a serious number of procedures the easiest method to figure >> this out without a debugger is to log to the console or a "log file" and
    set up 'log entries' along the path you expect plus along the path to the
    procedure that was unexpected. While doing this step you might find your
    answer in an unexpected call to the offending procedure.

    Run the application once. Then examine the output log (screen or log file) >> to find the procdure that was called unexpectedly. You can also pipe the
    output to a log file on most operating systems; it just takes more typing
    when starting the application.

    Modify the log entries as needed to fine tune the results.

    Some compilers have a compile switch that will do this for you
    automatically.



    Now I'm back.

    Soory for the long time.
    I couldn't not find anything that does that.

    Then I tried to find faulty places in various files, XML-Files and so.
    I also found things, but nothing helped.

    At the end I lost all, my mistake.

    Now I will start from scratch.

    I think, the GUI Lazarus at least under Linux makes mistakes.

    thank you for you effort.
    --
    Greetings Rolf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David LaRue@21:1/5 to Rolf Buenning on Sun Aug 24 15:51:54 2025
    Rolf Buenning <[email protected]> wrote in news:mh0b4mFsv0gU1 @mid.individual.net:

    On 22 Aug 2025 06:07:55 GMT, Rolf Buenning <[email protected]> tippte:
    On Thu, 21 Aug 2025 17:42:30 -0000 (UTC), David LaRue <[email protected]> tippte:
    Rolf Buenning <[email protected]> wrote in news:mgoe8bFj0oiU1
    @mid.individual.net:


    How can I find the mistake.

    Unless you have a serious number of procedures the easiest method to
    figure
    this out without a debugger is to log to the console or a "log file"
    and
    set up 'log entries' along the path you expect plus along the path to
    the
    procedure that was unexpected. While doing this step you might find
    your
    answer in an unexpected call to the offending procedure.

    Run the application once. Then examine the output log (screen or log
    file)
    to find the procdure that was called unexpectedly. You can also pipe
    the
    output to a log file on most operating systems; it just takes more
    typing
    when starting the application.

    Modify the log entries as needed to fine tune the results.

    Some compilers have a compile switch that will do this for you
    automatically.



    Now I'm back.

    Soory for the long time.
    I couldn't not find anything that does that.

    Then I tried to find faulty places in various files, XML-Files and so.
    I also found things, but nothing helped.

    At the end I lost all, my mistake.

    Now I will start from scratch.

    I think, the GUI Lazarus at least under Linux makes mistakes.

    thank you for you effort.

    Good luck with your application.

    Multiple version backups can be helpful in reverting unintended problems.
    diff or equivalent tool can help you find all changes in code bases. I
    used ZIPs of versions until the code bases became very large. Then using a local source code manager made such things easier before the company
    invested in such tool. There are several free tools.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rolf Buenning@21:1/5 to All on Mon Aug 25 07:01:09 2025
    On Sun, 24 Aug 2025 15:51:54 -0000 (UTC), David LaRue <[email protected]> tippte:
    I think, the GUI Lazarus at least under Linux makes mistakes.

    thank you for you effort.

    Good luck with your application.

    Multiple version backups can be helpful in reverting unintended problems. diff or equivalent tool can help you find all changes in code bases. I
    used ZIPs of versions until the code bases became very large. Then using a local source code manager made such things easier before the company
    invested in such tool. There are several free tools.

    Yes, I also do so now.
    Thanks and have a nice time.
    --
    Gruss Rolf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rolf Buenning@21:1/5 to All on Mon Sep 1 14:28:35 2025
    On 25 Aug 2025 07:01:09 GMT, Rolf Buenning <[email protected]> tippte:

    Thanks and have a nice time.

    Hallo again! :-)

    I need help again.

    Have a File of Record and try to write Records into the file.
    First I Rewrite file and after that write(File, Record), Close(File).
    That works fine.

    Then I want to add mor sentences to the file.
    I open with reset(file), then seek(file, sizeof(file)).
    The next write overwrites the last written record.
    What can I do to write behind the last written record?

    Thank you and waiting hopefully for help.

    --
    Gruss Rolf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David LaRue@21:1/5 to Rolf Buenning on Tue Sep 2 09:53:57 2025
    Rolf Buenning <[email protected]> wrote in news:mhlosjFh4s9U1 @mid.individual.net:

    On 25 Aug 2025 07:01:09 GMT, Rolf Buenning <[email protected]> tippte:

    Thanks and have a nice time.

    Hallo again! :-)

    I need help again.

    Have a File of Record and try to write Records into the file.
    First I Rewrite file and after that write(File, Record), Close(File).
    That works fine.

    Then I want to add mor sentences to the file.
    I open with reset(file), then seek(file, sizeof(file)).
    The next write overwrites the last written record.
    What can I do to write behind the last written record?

    Thank you and waiting hopefully for help.


    Hi Rolf,

    I'd read up on the sizeof() and seek() functions. Make sure that you are asking for the End of the File. If you are writing an integer number of Records perhaps adding one to the value would work. IIRC, this was a special value like -1 to indicate seeking to the end of the file to write more data.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)