Hello all,
Now I ran into a very annoying issue:
The code always crashed when calling LISTBOX_GetItemText() in LISTBOX user draw function.
All I known is that, the code is inherited from an earlier project which works very well.
When I look into this issue, I found this is the reason:
I comment them, and fill the char array "String" with const string, everything works very well:
I do add strings to the LISTBOX before setting user draw function:
Also, if I don't use user draw function, everything also runs well.
The strings displayed are just the ones I added.
So, the problem is, where goes wrong?
How can I tell whether the strings attached to the LISTBOX or not?
My emWin version is v5.4.0. Any ideas? Thanks in advance.
Kenmux
Now I ran into a very annoying issue:
The code always crashed when calling LISTBOX_GetItemText() in LISTBOX user draw function.
All I known is that, the code is inherited from an earlier project which works very well.
When I look into this issue, I found this is the reason:
I comment them, and fill the char array "String" with const string, everything works very well:
I do add strings to the LISTBOX before setting user draw function:
Also, if I don't use user draw function, everything also runs well.
The strings displayed are just the ones I added.
So, the problem is, where goes wrong?
How can I tell whether the strings attached to the LISTBOX or not?
My emWin version is v5.4.0. Any ideas? Thanks in advance.
Kenmux