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.
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.
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:
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
How can I find the mistake.
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.
On 22 Aug 2025 06:07:55 GMT, Rolf Buenning <[email protected]> tippte:figure
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:
Unless you have a serious number of procedures the easiest method to
How can I find the mistake.
andthis out without a debugger is to log to the console or a "log file"
theset up 'log entries' along the path you expect plus along the path to
yourprocedure that was unexpected. While doing this step you might find
file)answer in an unexpected call to the offending procedure.
Run the application once. Then examine the output log (screen or log
theto find the procdure that was called unexpectedly. You can also pipe
typingoutput to a log file on most operating systems; it just takes more
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.
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.
Thanks and have a nice time.
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.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 13:54:50 |
| Calls: | 12,101 |
| Calls today: | 1 |
| Files: | 15,004 |
| Messages: | 6,518,017 |