Bogusław Brandys schreef: > > I think it should by default look for program.dbg file , and then if not > exists for paramstr(0). Is that enough ? If so,please explain how to > check if file exists , which function could be used here. No, as Peter described, you should look in the executable for a link to the file with debug info. Vincent