Forum > General

Program lock up

(1/2) > >>

user5:
    On one occasion I stretched the bottom border of a Lazarus program page down into the task bar area of the computer screen and when I released the border that page and the whole program it was a part of locked up so bad that I had to use the Task Manager to shut the main program down. It was as if the program was lost in an unescapable loop but I know that no loop was running. This problem has never happened again but it's particularly disturbing because it apparently has nothing to do with the program code which unfortunately means that there's nothing I can change to fix it. That page worked fine after the main program was restarted.
    Perhaps it was just a fluke, one-time event. I don't expect that this odd problem will ring a bell with anyone but I have to ask just in case it's happened to someone else.
    If it ever happens again but I still can't find the solution then one thing I could do which I've done on other occasions would be to make a separate program out of that page. That way, if it ever locks up again then at least it could be shut down without needing to shut down the main program. It would be better to understand what happened. I'm using Windows 10 and Lazarus 1.0.10. All praise to Lazarus.

Handoko:
Was it a program created using Lazarus or the Lazarus itself? I never experienced such the thing you mentioned. But I remember the older versions of Lazarus were buggy. Your Lazarus IDE is very old, you should the use newer versions. Many features have been added, less bugs and more stable. Maybe the bug you experienced is already fixed too.

Thaddy:
Indeed the Laz version is very old! And do not forget to use the latest FPC version as well. (3.0.4) that makes it also easier to give you support. Old cars may drive but often fail. New cars have likely less issues.

user5:
    The page I mentioned was part of a program compiled by Lazarus, not a Lazarus editor page. The program was originally built on a Windows XP machine with Lazarus1.0.10 and after some adaptation changes the program runs fine on Windows 10.
    I moved all of the program code to the Windows 10 machine, installed Lazarus1.8.4, installed three component packages and then loaded the program into Lazarus.
    When I tried to compile the program I got an error message reading: Error: Identifier not found "IrsUnableToCreateConfigDirectory5". The Source Editor opened and a highlighted line in winlazfileutils.inc (line 467) read: raise EInOutError.Create(Format(lrsUnableToCreateConfigDirectory5,{Result]));
    I have tried several times to compile this program with Lazarus1.2.0 but it just won't work because of some incompatibility somewhere along the line. I guess that I'm stuck with using Lazarus1.0.10 for this program.
    I wouldn't have thought that this would be true. I would have thought that any program compiled on an old version of Lazarus would compile on a newer version (Write once... Compile Anywhere) regardless of the operating system used.
    This problem could have something to do with paths... The program compiles and builds fine when I use Lazarus1.0.10 on the Windows 10 machine but even then it won't run from the compiler because (I think) there is a space in the user name for this computer! It seems that Lazarus is unable to establish a path because of that space and to remove that space in the user name would be a lot of trouble and work. Thanks.

lainz:
Paths must be quoted.. to avoid that 'space' problems.

Edit: config should be in a writable directory, even better on Windows in %AppData% of your application.

Try GetConfigDir function.

Navigation

[0] Message Index

[#] Next page

Go to full version