I'm getting crash running under Simulator Chibios 1760 + ugfx. Works fine under Chibios 1615 + ugfx
Please see attached project.
Crash happens inside this file: gdisp_lld_Win32.c:
Code: Select all
mousemove:
if (priv->capfn) ///////capfn must be null but under 1760 it 's not
priv->capfn(hWnd, g, btns, (coord_t)LOWORD(lParam), (coord_t)HIWORD(lParam));
It crashes because it looks like mouse structure initialization overruns the memory in here setting value of the capfn in mouse structure
Code: Select all
#if GFX_USE_GINPUT && GINPUT_NEED_MOUSE
priv->mouseenabled = hWndParent ? FALSE : TRUE;
priv->mouse = (GMouse *)gdriverRegister((const GDriverVMT const *)GMOUSE_DRIVER_VMT, g);
#endif
Any advise?
Thank you!