Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2002-09

lpi writing does not correctly works...

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tony Maro
to Javier: ...which causes Lazarus to crash when opening some of my old projects. When I close a…

This has been sort of covered in a conversation titled "Corrupted LPI" the last couple of days.

The basic answer is yes, everyone agrees the lpi / project file storage structure needs fixed.

However the crashes may not be what you think. I found on mine that the last few lines of the file were actually corrupted and had CR/LF missing. I was able to correct that using VI and my project opened again.

-Tony

Javier wrote 21 lines
...which causes Lazarus to crash when opening some of my old projects. When I close a file (.pas or .inc or .pp) from inside my project, the file is still referenced in the lpi. I think this have something to do with the crashes. I think we need to have better control about all of these kind of files, or we will have a lot of problems with different versions of Lazarus. One day it does work, and the next, when a new patch arrives, it doesn't. The worst is that these kind of problems happens ramdomly, making it very difficult to debug. Bye. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Thanks, Tony Maro Dir. System Services N&L Enterprises, LLC (256) 882-8827

Reply by email

Javier

...which causes Lazarus to crash when opening some of my old projects.

When I close a file (.pas or .inc or .pp) from inside my project, the file is still referenced in the lpi. I think this have something to do with the crashes.

I think we need to have better control about all of these kind of files, or we will have a lot of problems with different versions of Lazarus. One day it does work, and the next, when a new patch arrives, it doesn't. The worst is that these kind of problems happens ramdomly, making it very difficult to debug.

Bye.

Reply by email

Tony Maro
to Javier
Mattias Gaertner wrote 9 lines
> However the crashes may not be what you think. I found on mine that the > last few lines of the file were actually corrupted and had CR/LF > missing. I was able to correct that using VI and my project opened > again. I found a bug, where a line end was not added. But I doubt that this was the bug for the crashes, because the xmlreader should ignore line ends anyway. Perhaps someone can send me an xml file, that crashes lazarus. Mattias

Mmm - well that one time adding the CR/LF (or replacing whatever control char might have been there) allowed the project to open again.

I just scoured my 5 backup copies and can't find a project that won't open. I'll check my backups at home and if I find one will mail you that file. In the meantime I'll keep an eye out for another corruption.

-Tony

Reply by email

Mattias Gaertner
to Javier: ...which causes Lazarus to crash when opening some of my old projects. When I close a…
Show quoted text 10 lines
This has been sort of covered in a conversation titled "Corrupted LPI" the last couple of days. The basic answer is yes, everyone agrees the lpi / project file storage structure needs fixed. However the crashes may not be what you think. I found on mine that the last few lines of the file were actually corrupted and had CR/LF missing. I was able to correct that using VI and my project opened again.

I found a bug, where a line end was not added. But I doubt that this was the bug for the crashes, because the xmlreader should ignore line ends anyway. Perhaps someone can send me an xml file, that crashes lazarus.

Mattias

Reply by email

Javier
to Javier: ...which causes Lazarus to crash when opening some of my old projects. When I close a…

El vie, 27-09-2002 a las 19:38, Tony Maro escribi�:

This has been sort of covered in a conversation titled "Corrupted LPI" the last couple of days.

Sorry, I tend to check my mail just once a day. :-)

However the crashes may not be what you think. I found on mine that the last few lines of the file were actually corrupted and had CR/LF missing. I was able to correct that using VI and my project opened again.

I've examinated my lpi and seems to do not have such kind of corruption. So I had to create a new one, adding the previusly created unit files. I'm not able to determine when and why these crashes are produced. But, as I said before, it happens along Lazarus growing.

Bye.

Reply by email