Subject RE: [IBO] Help! Simple routine keeps giving Invalid Pointer on close of app.
Author Roger Vellacott

I haven't read all your code, but this looks wrong. You set length to 9, and loop 1o times.

SetLength(IrrelevantFolderArray, 9 );
//fill the array
for i := 0 to 9 do

Roger Vellacott
Passfield Data Systems Ltd
Tel +44 1404 514402
Mob +44 7831 156839