Hello,
I am using below routines to initialize the knob using memory device. The knob and related functionality working as expected. I am using a knob on two different screens and switching in between. While switching between the screens, I have observed in task manager that the memory is increasing when switched between the screens and it is around 0.2-0.3 MB memory per iteration.
It seems like the issue is related to memory device only. I am trying to delete the memory using GUI_MEMDEV_Delete(handle) but I am getting an exception for this routine.
If this issue is related to the memory device and deallocating the memory will be the solution then could you please let me know how and where to de-allocate the memory?
Display All
I am using below routines to initialize the knob using memory device. The knob and related functionality working as expected. I am using a knob on two different screens and switching in between. While switching between the screens, I have observed in task manager that the memory is increasing when switched between the screens and it is around 0.2-0.3 MB memory per iteration.
It seems like the issue is related to memory device only. I am trying to delete the memory using GUI_MEMDEV_Delete(handle) but I am getting an exception for this routine.
If this issue is related to the memory device and deallocating the memory will be the solution then could you please let me know how and where to de-allocate the memory?
Source Code
- WM_INIT_DIALOG:
- // Here knob is initialized using below routines.
- WM_GetDialogItem(handle, id);
- handle = GUI_MEMDEV_CreateFixed32(x0, y0, xSize, ySize);
- GUI_MEMDEV_Select(handle)
- GUI_SetBkColor(color);
- GUI_Clear();
- GUI_DrawBitmap(pBM, x0, y0);
- GUI_MEMDEV_Select(LCD);
- KNOB_SetDevice(handle, MemdevHandle);
- KNOB_SetRange(handle, minRange, maxRange);
- KNOB_SetOffset(handle, offset);
- //GUI_MEMDEV_Delete(handle)
- WM_NOTIFY_PARENT:
- //Here knob is updated/rotated.