Connection issue

Your code doesn't seem wrong, but maybe a closer debug is needed. If you are passing the second parameter false while creating the dbexpress adapter, your TSQLConnection won't be touched by Aurelius (destroyed, I mean), so either it's being destroyed by something else, or your code is not correctly recreating it, or maybe the problem is not with connection? Where is the exact line where the AV is raised?