Doesn't load anymore - Unhandled Exception

Post Reply
hellothereitsme
Posts: 4
Joined: 04 Jan 2021, 13:13

Doesn't load anymore - Unhandled Exception

Post by hellothereitsme »

It seemed great to start with, I installed it, set up some key/buttons and worked ok for the first couple of uses, now it just refuses to load with an Unhandles Exception. I'm on Windows 10 64bit, no other midi/audio software running, just booting up and clicking the icon returns this error 100% of the time.


Code: Select all

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

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at PureMidi.Monitor.Monitor.checkBoxLogToWindow_CheckedChanged(Object sender, EventArgs e)
   at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
   at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
   at System.Windows.Forms.CheckBox.set_Checked(Boolean value)
   at PureMidi.Monitor.Monitor.StartUpSequence2()
   at PureMidi.Monitor.Monitor.Monitor_Shown(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnShown(EventArgs e)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4110.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
MidiKey2Key
    Assembly Version: 2.3.7517.30124
    Win32 Version: 2.3.5.0
    CodeBase: file:///C:/Program%20Files/MidiKey2Key/MidiKey2Key.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4110.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4110.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4110.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Attachments
midikey.JPG
midikey.JPG (23.16 KiB) Viewed 13884 times
User avatar
dbump
Posts: 3
Joined: 15 Aug 2020, 14:19

Re: Doesn't load anymore - Unhandled Exception

Post by dbump »

You might try renaming your default .ini file to see if you can get the software running again? I have seen an invalid ini cause that kind of error.
User avatar
Der Abt
Site Admin
Posts: 90
Joined: 14 Aug 2020, 09:30
Location: Fulda, Germany
Contact:

Re: Doesn't load anymore - Unhandled Exception

Post by Der Abt »

There is something wrong in general.
Is this still persistent?
Rename Your last .ini or rename the whole folder.
If this does not help, delete the whole reg key (which is a folder) with regedit: Computer\HKEY_CURRENT_USER\SOFTWARE\MidiKey2Key
Greetz
Der Abt

Creator of MidiKey2Key
https://midikey2key.de
hellothereitsme
Posts: 4
Joined: 04 Jan 2021, 13:13

Re: Doesn't load anymore - Unhandled Exception

Post by hellothereitsme »

Hi everyone, thanks for the responses.
I did absolutely nothing and it just started loading again and has worked ever since. *shrug*
Handy to know possible solutions if it returns again though, thankyou!
hellothereitsme
Posts: 4
Joined: 04 Jan 2021, 13:13

Re: Doesn't load anymore - Unhandled Exception

Post by hellothereitsme »

take it back, its started again, doesn't load 50% of the time, so just removed it. Don't really have time to remake all the key bindings every months when it stops working.

Thanks for the attempt but I'll look for an alternative!
User avatar
Der Abt
Site Admin
Posts: 90
Joined: 14 Aug 2020, 09:30
Location: Fulda, Germany
Contact:

Re: Doesn't load anymore - Unhandled Exception

Post by Der Abt »

Your debug log is interesting - I never saw that.
It tries to check some elements on the GUI that seems not to exist. As if they were not loaded.

I have no idea except that Your PC is very slow in the moment of loading MK2K.

Is that possible?
Greetz
Der Abt

Creator of MidiKey2Key
https://midikey2key.de
Post Reply