PDA

View Full Version : Problem connecting to database - System.BadImageFormatException(..)



petteja
01-13-2010, 03:25 PM
Ive been using Win7 and HEM (1.10 latest and earlier betas) for some time, and it has all been working great. But, yesterday I suddenly couldnt connect to my database any more. Pressing connect in the Database Control Panel gives the following exception:

"Connection Error: Invalid access to memory location. (Exception from HRESULT: 0x800703E6)

System.BadImageFormatException: Invalid access to memory location. (Exception from HRESULT: 0x800703E6)
at Npgsql.NpgsqlConnection..ctor(String ConnectionString)
at Npgsql.NpgsqlConnection..ctor()
at g.f(Object A_O, EventArgs A_1)"

Ive searched the forums and some people have had similar problems which had made them format their hard drives in order to get it working again. Im afraid thats not an option for me.

Ive been double checking all your tips regarding running HEM on win7 (uac, secondary logon, administrator rights). Ive also tried uninstalling HEM both manually and with Revo Uninstaller, but I get the same error.

Can I turn on more debugging to give you more information on whats causing this?

Cheers

fozzy71
01-14-2010, 02:28 AM
Which Firewall, and Anti-Virus are you using?

Please give HoldemManager Administrator rights, if it doesnt have them yet -

1) Go to C:\Program Files\RVG Software\Holdem Manager (Program Files (x86) if you have the 64bit version)
2) Rightclick the HoldemManager.exe and choose "Properties".
3) Go to the Compatibility Tab and select "Run this program as an Administrator".
4) Do the same for HMHud.exe and DBControlPanel.exe


Try this:

Start > Programs > PostgreSQL > 8.x > Stop Service

Start > Programs > PostgreSQL > 8.x > Start Service

If that doesnt help delete the \postgresql\8.x\data\postmaster.pid file, if you see it.

Add exceptions to the windows firewall, even if it is off. If you have a 3rd party firewall, do the equivalent or uninstall it temporarily - http://www.holdemmanager.net/faq/afmviewfaq.aspx?faqid=171

Please try following all of these FAQs, step by step:

1) http://www.holdemmanager.net/faq/afmviewfaq.aspx?faqid=34
2) reinstall the same version of postgresql, using the same \data folder - http://www.holdemmanager.net/faq/afmviewfaq.aspx?faqid=177
3) http://www.holdemmanager.net/forum/showthread.php?t=8261

If that doesn't help you will probably have to reinstall PostgreSQL completely and reimport your hands using these instructions - http://forums.holdemmanager.com/showthread.php?t=20755

petteja
01-14-2010, 01:14 PM
Yes, as stated in my previous post, Ive checked that HEM is running with administrator rights, and its been working until two days ago, so I doubt it has something to do with that. Ive also tried to disable both my firewall (the default windows firewall) as well as my norman security suite.

Postgres is running on a linux server which I use for others things, so Im sure thats not the problem.

Also, I did a tcpdump while connecting to the database, and it doesnt send or recieve any TCP packets at all. That means that the error occurs before trying to establish the connection to the database.

netsrak
01-15-2010, 05:36 AM
This is probably a hardware or operating system related problem. You should try to check this with some diagnostic tools.