g4klx / ircDDBGateway

The ircDDB Gateway for D-Star
GNU General Public License v2.0
61 stars 41 forks source link

Can't read value of key 'HKCU\Software\G4KLX\ircDDB Gateway' (error 234: More data is available.) #71

Closed KB4MDD closed 2 years ago

KB4MDD commented 2 years ago

I have compiled the latest version on Windows. When I run ircddbgateway.exe, it faults with this error in the logfile.

Can't read value of key 'HKCU\Software\G4KLX\ircDDB Gateway' (error 234: More data is available.)

I removed the registry key for ircDDB Gateway and just run the program to see if it would launch - it does launch. Looks ok, but not setup.

E: 2022-02-23 19:28:30: Can't read value of key 'HKCU\Software\G4KLX\ircDDB Gateway' (error 234: More data is available.) E: 2022-02-23 19:29:16: Can't read value of key 'HKCU\Software\G4KLX\ircDDB Gateway' (error 234: More data is available.) E: 2022-02-23 19:29:55: Can't read value of key 'HKCU\Software\G4KLX\ircDDB Gateway' (error 234: More data is available.) M: 2022-02-23 19:30:40: File C:\Users\dlloyd\CCS_Hosts.txt not readable M: 2022-02-23 19:30:40: Reading C:\Program Files (x86)\ircDDBGateway\CCS_Hosts.txt M: 2022-02-23 19:30:40: Downloading XLX reflector list from http://xlxapi.rlx.lu/api.php?do=GetXLXDMRMaster M: 2022-02-23 19:30:41: Created temporary file C:\Users\dlloyd\AppData\Local\Temp\XLXC5A6.tmp M: 2022-02-23 19:30:41: XLX Successfuly downloaded to C:\Users\dlloyd\AppData\Local\Temp\XLXC5A6.tmp M: 2022-02-23 19:30:41: Truncating C:\Users\dlloyd\Links.log M: 2022-02-23 19:30:41: Truncating C:\Users\dlloyd\STARnet.log M: 2022-02-23 19:30:41: Allocated UDP ports 30001-30007 to DExtra M: 2022-02-23 19:30:41: Allocated UDP ports 20001-20007 to D-Plus M: 2022-02-23 19:30:41: Allocated UDP ports 30051-30057 to DCS

I stopped ircddbgateway and ran the ircddbgatewayconfig to setup the program. When I attempt to run ircddbgateway.exe again, it fails with one line in the log.

E: 2022-02-23 19:31:30: Can't read value of key 'HKCU\Software\G4KLX\ircDDB Gateway' (error 234: More data is available.)

I am using visual studio 2019 with WxWidgets 3.1.5 on Windows 10. I am compiling as 32bit.

Is there something else to set to make it work properly on Windows?

KB4MDD commented 2 years ago

There is an issue IRCDDBGatewayConfig.cpp with this code:

m_config->Read(m_name + KEY_GPSD_PORT, &temp, long(DEFAULT_GPSD_PORT));
m_gpsdPort = (unsigned int)temp;

I attempted to fix the problem and caused the above reported error. When I got the fix right, the problem went away and everything works.

This should be:

m_config->Read(m_name + KEY_GPSD_PORT, &m_gpsdPort, DEFAULT_GPSD_PORT);
//m_gpsdPort = (unsigned int)temp;