[fpc-pascal]TObjectList.free

2004-02-14 Thread Charl van Jaarsveldt
Hi all, According to the docs for TObjectList, if it's OwnsObjects property is set to true, then, if you clear the list, it will automatically call free for all the objects contained in the list. At least that is how I understand it. Now, I did a little test program and found that calling TObj

Re: [fpc-pascal]reading windows registry

2004-02-04 Thread Charl van Jaarsveldt
Hi I found my mistake: I didn't give the size of the buffer in variable bl. It now works. Peace. Charl Charl van Jaarsveldt wrote: Hallo. I have this little program to get te info of a certain ODBC entry n the registry, but it doesn't work and I am at a loss. I admit, I haven&

[fpc-pascal]reading windows registry

2004-02-03 Thread Charl van Jaarsveldt
Hallo. I have this little program to get te info of a certain ODBC entry n the registry, but it doesn't work and I am at a loss. I admit, I haven't done too much win32 stuff before. Any ideas and help would be appreciated. Peace. Charl Here is the program: (please see comments at the end) Prog