Suffering a postgres lock problem

Never had this problem until about 2-3 days ago. I am finding that if I run PT3 once it is no problem. Then if I shut it down, and try to restart at a later time it fails.
Looking in the log, as suspected PT3 seems to get stuck trying to access my DB
2008/12/02 23:44:06.140: [00001832][PostgresConnection] Connecting to database: PT3 DB
And never manages to get past this.
After killing PokerTracker.exe using Task Manager, I noticed a postgres.exe hanging around. When, I try to shutdown the PostgresSql service, it won't stop properly, the single instance of postgres.exe still hangs around. If I try to kill it directly using Task Manager it says it is locked and can't be killed off that way. If I try and do a restart of postgres (using the command prompt) I get the following error
"could not create lock file "postmaster.pid": Permission denied
The only way I seem to be able to go again, is rebotting the whole machine. Is there any reason why my postgres DB is getting locked and can't be accessed or shut down? Until 2-3 days ago I have never had these problems before. Is there anything PT3 could be doing which is locking access? (using A94 btw).
Looking in the log, as suspected PT3 seems to get stuck trying to access my DB
2008/12/02 23:44:06.140: [00001832][PostgresConnection] Connecting to database: PT3 DB
And never manages to get past this.
After killing PokerTracker.exe using Task Manager, I noticed a postgres.exe hanging around. When, I try to shutdown the PostgresSql service, it won't stop properly, the single instance of postgres.exe still hangs around. If I try to kill it directly using Task Manager it says it is locked and can't be killed off that way. If I try and do a restart of postgres (using the command prompt) I get the following error
"could not create lock file "postmaster.pid": Permission denied
The only way I seem to be able to go again, is rebotting the whole machine. Is there any reason why my postgres DB is getting locked and can't be accessed or shut down? Until 2-3 days ago I have never had these problems before. Is there anything PT3 could be doing which is locking access? (using A94 btw).