Re: Re[4]: [fpc-pascal] TIniFile crash/memory loss

2011-04-01 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > Going back to 1 is not an option. > For case 2, I am inclined to say that the destructor must always succeed. > Errors in destructors are very ugly to trap. ... time to mark tinifile as deprecated ? _

Re: Re[4]: [fpc-pascal] TIniFile crash/memory loss

2011-04-01 Thread Michael Van Canneyt
On Fri, 1 Apr 2011, Bart wrote: On 3/31/11, José Mejuto wrote: B> This however means that the programmer has to protect TIniFile.Free B> with a Try..Except block, which is also rather unusual. It's unusual, but there is an error, or the class does not perform the save in the free procedure

Re: Re[4]: [fpc-pascal] TIniFile crash/memory loss

2011-03-31 Thread Bart
On 3/31/11, José Mejuto wrote: > B> This however means that the programmer has to protect TIniFile.Free > B> with a Try..Except block, which is also rather unusual. > > It's unusual, but there is an error, or the class does not perform the > save in the free procedure and uses a "flush" (forced) o

Re[4]: [fpc-pascal] TIniFile crash/memory loss

2011-03-31 Thread José Mejuto
Hello FPC-Pascal, Thursday, March 31, 2011, 6:52:26 PM, you wrote: B> This however means that the programmer has to protect TIniFile.Free B> with a Try..Except block, which is also rather unusual. It's unusual, but there is an error, or the class does not perform the save in the free procedure a