Hi Koen,
Did you try CLOSE INDEXES? From the help:
CLOSE INDEXES
Closes all open index files (both single-entry .idx and independent compound .cdx files) in the current work area. A structural compound index (a .cdx file automatically opened with the table) is not closed.
Also ATAGINFO can help you, but I am not sure if it will distinguish non-structural CDX files (Update: Well, I guess you can check the name as the structural CDX will have the same name/path of the table, right?)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges