¿ªÔÆÌåÓý

CW Keyboard Crashes #sBitx #sBitxDevel


 

I've been looking at the problem report where sbitx exits when the CW "KBD" softkey function is activated.

You probably don't notice this if you have the panel (taskbar) set to automatically hide. To enable automatic panel hiding:
Right click on the Panel, select Panel Settings, select the Advanced tab, then check the "Minimize panel when not in use" in the Automatic hiding section.

The problem is that with the panel visible, the height of the waterfall display is reduced. When the CW keyboard is opened, the height of the waterfall will try to be reduced to a size that's less than 0 pixels.
The sbitx application then tries to allocate a memory buffer for the waterfall, using a negative size. When the malloc() function call fails, the application exits.

I've submitted a pull request to limit the minimum size of the sbitx window so that the waterfall size is never less than zero. Alternatives to this solution could include reducing the size of the spectrum display that's above the waterfall.

73; Steve, N3SB

Join [email protected] to automatically receive all group messages.