Re: [fpc-pascal] Newbie problems with memory leak and access violation/AV

2010-03-30 Thread Jim
On 30-3-2010 9:28, Michael Van Canneyt wrote: > After allocating an object which you will free in the same routine, > you should ALWAYS put a try..finally statement, and free the object in > the > finally clause: ++ makes sense. > After that, the error still happens, but at least there is no memor

Re: [fpc-pascal] Newbie problems with memory leak and access violation/AV

2010-03-30 Thread Michael Van Canneyt
On Tue, 30 Mar 2010, Jim wrote: Hi all, Background: Hobby programmer; Microsoft Access VBA/Visual Basic 6/Visual Basic.Net background. I'm a FreePascal newbie but have fiddled with it some time ago. Was looking into learning C++ but that seems too curly, so started again. I've decided to writ

[fpc-pascal] Newbie problems with memory leak and access violation/AV

2010-03-30 Thread Jim
Hi all, Background: Hobby programmer; Microsoft Access VBA/Visual Basic 6/Visual Basic.Net background. I'm a FreePascal newbie but have fiddled with it some time ago. Was looking into learning C++ but that seems too curly, so started again. I've decided to write a file scanner program that indexes