PDA

View Full Version : unhandled exception



ash0803
11-12-2010, 05:03 PM
Hi

When I try to go to options->settings from the import screen I get the following error. From the other screens it seems to be fine. Also seems to only happen with one of my databases.


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.IOException: The requested operation cannot be performed on a file with a user-mapped section open.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter.CreateFile(String path, Boolean append)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
at az.e()
at a3.e(Object A_0, EventArgs A_1)
at System.Windows.Forms.CheckBox.OnCheckedChanged(Eve ntArgs e)
at System.Windows.Forms.CheckBox.set_CheckState(Check State value)
at System.Windows.Forms.CheckBox.set_Checked(Boolean value)
at a3..ctor()
at c9..ctor(bc A_0)
at i.ax(Object A_0, EventArgs A_1)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
HoldemManager
Assembly Version: 1.11.4.2731
Win32 Version: 1.11.04.2731
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/HoldemManager.exe
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
DevComponents.DotNetBar2
Assembly Version: 8.3.0.0
Win32 Version: 8.3.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/DevComponents.DotNetBar2.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
DeployLX.Licensing.v3
Assembly Version: 3.2.2000.0
Win32 Version: 3.2.2000.3813
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/DeployLX.Licensing.v3.DLL
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4955 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
WindowsFormsIntegration
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.4902 built by: NetFXw7
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/WindowsFormsIntegration/3.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
----------------------------------------
PresentationCore
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.5001 built by: Win7RTMGDR
CodeBase: file:///C:/Windows/assembly/GAC_32/PresentationCore/3.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
WindowsBase
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.5001 built by: Win7RTMGDR
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
Softelvdm.SftTreeNET
Assembly Version: 2.0.13.0
Win32 Version: 2.0.13.0
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/Softelvdm.SftTreeNET.DLL
----------------------------------------
Softelvdm.Controls
Assembly Version: 1.0.0.17
Win32 Version: 1.0.0.17
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/Softelvdm.Controls.DLL
----------------------------------------
Npgsql
Assembly Version: 2.0.6.0
Win32 Version: 2.0.6.0
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/Npgsql.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
Mono.Security
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/Mono.Security.DLL
----------------------------------------
ZedGraph
Assembly Version: 5.1.4.31904
Win32 Version: 5.1.4.31904
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/ZedGraph.DLL
----------------------------------------
PresentationFramework
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.5001 built by: Win7RTMGDR
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/PresentationFramework/3.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
SitNGoWizard.1.1
Assembly Version: 1.0.2.17
Win32 Version: 1.0.2.017
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/SitNGoWizard.1.1.EXE
----------------------------------------
SitNGoWizard.Localization.2.0
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/SitNGoWizard.Localization.2.0.DLL
----------------------------------------
log4net
Assembly Version: 1.2.10.0
Win32 Version: 1.2.10.0
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/log4net.DLL
----------------------------------------
HoldemVision
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/HoldemVision.DLL
----------------------------------------
LeakBuster2.5
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/LeakBuster2.5.DLL
----------------------------------------
LeakBuster2.5 Limit
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/LeakBuster2.5%20Limit.DLL
----------------------------------------

morny
11-12-2010, 09:18 PM
Follow this FAQ FAQ]FAQ - Hold'em Manager Poker Tracking Software :: Reinstalling HEM without Losing Preferences (http://faq.holdemmanager.com/questions/99/Reinstalling+HEM+without+Losing+Preferences+) - Hold'em Manager Poker Tracking Software - Reinstalling HEM without Losing Preferences
Please Uninstall Holdem Manager and reinstall it

FAQ - Hold'em Manager Poker Tracking Software :: Using Revo Uninstaller (http://faq.holdemmanager.com/questions/126/Using+Revo+Uninstaller+) - Using Revo Uninstaller (uninstall HM with Revo FREE and reinstall it)

If your doing a clean reinstall you should consider the following.

See this FAQ FAQ - Hold'em Manager Poker Tracking Software :: Registration Benefits (http://faq.holdemmanager.com/questions/26/Registration+Benefits) on how to reset your code

Finally Please install the latest version: http://rvgsoftware.fileburst.com/HmBetaUpdate.exe

ash0803
11-12-2010, 09:56 PM
uninstalled with revo and reinstalled latest version and same issue.

Like I mentioned before it works fine with one of my databases but not the one i'm using. I guess its not a big deal as I can get to the settings dialog from a different page just not the import page. Just a bit weird

ash0803
11-12-2010, 10:08 PM
uninstalled with revo and reinstalled latest version and same issue.

Like I mentioned before it works fine with one of my databases but not the one i'm using. I guess its not a big deal as I can get to the settings dialog from a different page just not the import page. Just a bit weird

Ok I reinstalled again and the problem now only happens like 1 in 10 times. Have no idea why..

netsrak
11-13-2010, 07:00 AM
Must be something with the database - please try a vacuum/full via pgadmin->maintenance and after completion run a reindex.

ash0803
11-13-2010, 07:03 AM
Must be something with the database - please try a vacuum/full via pgadmin->maintenance and after completion run a reindex.

Just did that yesterday. I tend to run the maintenance quite often. Anyway like I said its quite sporadic now so it doesn't bother me too much.

Thanks for your help

edit: and just after saying that the error came up about 4/5 times lol.

morny
11-13-2010, 09:47 PM
googled this and it seems to suggest the problem is a permissions one possibly something having one of the HM files open, some threads mentioned AVG as a culprit so set your firewall and antivirus to exclude the HM folders

Also Try setting the security permissions for the Holdem Manager and PostgreSQL folders in Program files.

Right click on the main PostgreSQL folder, choose properties and go into the security TAB, youll see a list of group or usernames in the top pane, select the first one and choose edit. You should see a new popup window quite similar to the previous one, in the bottom pane make sure all the Allow boxes are ticked, then go back to the top pane and select the next user, again make sure all the allow boxes are ticked, repeat this for all the users and click apply when finished. Now try restarting PostgreSQL and then repeat the process for HM with it closed and see if this helps

ash0803
11-14-2010, 02:25 AM
googled this and it seems to suggest the problem is a permissions one possibly something having one of the HM files open, some threads mentioned AVG as a culprit so set your firewall and antivirus to exclude the HM folders

Also Try setting the security permissions for the Holdem Manager and PostgreSQL folders in Program files.

Right click on the main PostgreSQL folder, choose properties and go into the security TAB, youll see a list of group or usernames in the top pane, select the first one and choose edit. You should see a new popup window quite similar to the previous one, in the bottom pane make sure all the Allow boxes are ticked, then go back to the top pane and select the next user, again make sure all the allow boxes are ticked, repeat this for all the users and click apply when finished. Now try restarting PostgreSQL and then repeat the process for HM with it closed and see if this helps

Thanks for your reply. Just to let you know my findings.

First of all I tried setting the permissions on the holdemmanager folder and postgresql folder. The first user was CREATOR OWNER so I allowed all permissions for that user. It showed a long list of files being altered. However the weird thing is when I check the properties again the CREATOR OWNER user had none of the permissions checked again. Anyway, onto the next step.

I use MSE and have already excluded specifically the HM exes and the postgres exes so I tried excluding the entire folder for HM and postgres and the problem went away.

So I tried it again with excluding them separately and it turns out its the HM folder that needs excluding.

So far the error hasn't come up at all in quite a few attempts so that seems to have fixed it. Very weird how it was temperamental. Anyway thanks for the help. Hope this info will be useful for someone else