CPS Unhandled expection error - SOLVED

OpenGD77CPS
VK7BOB
Posts: 5
Joined: Sat Feb 01, 2025 1:15 pm

CPS Unhandled expection error - SOLVED

Post by VK7BOB » Sun Feb 23, 2025 5:30 am

Hi all,

After enjoying Open GD77 for some years I have unexpectedly had an issue.

Recently a TYT MD-380 joined my set up and now when plugging in the TYT MD-760 to download the updated codeplug I get an error message.
To remedy this I have uninstalled and reinstalled the latest CPS. I have also selected to reinstall the drivers. I have found the 380 works flawlessly, however the 760 continues to create an error. What I mean by this is I plug in the 760 and get non stop errors, and then plug in the 380 and everything instantly works.
I am using Windows 10.

The error from inside the OpenGd77 CPS says:

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 DMR.OpenGD77Form.readOpenGD77RadioInfoAndUpdateUSBBufferSize(SerialPort port, Boolean stealth)
at DMR.OpenGD77Form.probeRadioModel(Boolean stealth)
at DMR.OpenGD77Form.OpenGD77Form_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9282.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
OpenGD77CPS
Assembly Version: 1.2.9165.30499
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/OpenGD77CPS/OpenGD77CPS.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9251.0 built by: NET481REL1LAST_C
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.9282.0 built by: NET481REL1LAST_C
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.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
WeifenLuo.WinFormsUI.Docking
Assembly Version: 3.0.4.0
Win32 Version: 3.0.4.0
CodeBase: file:///C:/Program%20Files%20(x86)/OpenGD77CPS/WeifenLuo.WinFormsUI.Docking.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9214.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
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.9277.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.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.

I believe the issue is logically in relation to using 2 different radios. And yes I have ensured to have selected the radio type to the top option as reinstalled the driver software using a different USB port.
Last edited by VK7BOB on Sun Feb 23, 2025 11:31 am, edited 1 time in total.

User avatar
F1RMB
Posts: 3426
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: CPS Unhandled expection error

Post by F1RMB » Sun Feb 23, 2025 9:22 am

Your firmware is way too old, and the CPS expects a newer one.
Update your firmware.

VK7BOB
Posts: 5
Joined: Sat Feb 01, 2025 1:15 pm

Re: CPS Unhandled expection error

Post by VK7BOB » Sun Feb 23, 2025 9:29 am

Thanks F1RMB, I will flash the firmware. If it works I'll change the thread to solved. I'm just getting a firmware file too large error to work out first.

User avatar
F1RMB
Posts: 3426
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: CPS Unhandled expection error

Post by F1RMB » Sun Feb 23, 2025 10:41 am

VK7BOB wrote: ↑
Sun Feb 23, 2025 9:29 am
Thanks F1RMB, I will flash the firmware. If it works I'll change the thread to solved. I'm just getting a firmware file too large error to work out first.
I don't know which CPS version your using, or the firmware file you're trying to flash.
This error message appears when the selected file a not really an expected OpenGD77 firmware, as the firmware file has a size limit.
The MD-760 is a GD-77.

VK7BOB
Posts: 5
Joined: Sat Feb 01, 2025 1:15 pm

Re: CPS Unhandled expection error

Post by VK7BOB » Sun Feb 23, 2025 11:30 am

F1RMB wrote: ↑
Sun Feb 23, 2025 10:41 am
VK7BOB wrote: ↑
Sun Feb 23, 2025 9:29 am
Thanks F1RMB, I will flash the firmware. If it works I'll change the thread to solved. I'm just getting a firmware file too large error to work out first.
I don't know which CPS version your using, or the firmware file you're trying to flash.
This error message appears when the selected file a not really an expected OpenGD77 firmware, as the firmware file has a size limit.
The MD-760 is a GD-77.
Hi F1RMB, I was following the instructions by yours truly in this forum to ensure it was the latest files. The issue was me not reading past step 10 clearly and using the incorrect .bin file. I learnt the hard way it must be the open gd77 .bin file! As you also mentioned, upgrading the firmware (it was indeed very old, 2020) fixed the issue with the CPS software error. I will change the status to solved and hope this may assist others.

User avatar
F1RMB
Posts: 3426
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: CPS Unhandled expection error

Post by F1RMB » Sun Feb 23, 2025 11:35 am

VK7BOB wrote: ↑
Sun Feb 23, 2025 11:30 am
F1RMB wrote: ↑
Sun Feb 23, 2025 10:41 am
VK7BOB wrote: ↑
Sun Feb 23, 2025 9:29 am
Thanks F1RMB, I will flash the firmware. If it works I'll change the thread to solved. I'm just getting a firmware file too large error to work out first.
I don't know which CPS version your using, or the firmware file you're trying to flash.
This error message appears when the selected file a not really an expected OpenGD77 firmware, as the firmware file has a size limit.
The MD-760 is a GD-77.
Hi F1RMB, I was following the instructions by yours truly in this forum to ensure it was the latest files. The issue was me not reading past step 10 clearly and using the incorrect .bin file. I learnt the hard way it must be the open gd77 .bin file! As you also mentioned, upgrading the firmware (it was indeed very old, 2020) fixed the issue with the CPS software error. I will change the status to solved and hope this may assist others.
Nice you solved the problem.