Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: Guix problem printf

$
0
0
Hi all, thanks for the replies. I think i have some witchcraft in my code (or a bug). I am struggling for a few days with a GUIX vertical list. At first the sprintf thing. Solved by the loadscript. This error occurred when I filled the list with items for the list. After this fix (happy) i placed the scrollbar in the list. The function to update the list is called from the list ( callback). Error (see  first mssg of this thread)  Even without the sprintf. I made a fresh project with only  a window with a list: Works. No problem. Back to my original project: I found that this line:  gx_widget_created_test(&row- icon, &result);  caused a change in row. So it points to the moon or something. Causing the code later to give a status error. I modified the code to create my listwidgets outside the callback. Works. Today I read Jeremys last post. Modified my code to the original state, with sprintf, put a breakpoint in the NMI: YES, BINGO! Set the nano stuff: data code shrinks: Run: no NMI, Works! happy! Then i did something i should not have done: I went back to the non-nano lib, rebuild the project, got back my old size and: No NMI, code works! not happy. Concerning the stack: I expected that it was a stack item and doubled the thread stacksize of the HMI thread and all other stacksizes i could find. With the huge amount of RAM and SDram for my display, this must not be a problem. That is why i had some doubts from the effect of the nano lib. Where am i now: I use my own hardware with home-made spi-touch driver. I started with the weatherpanel. OK. On top of my ssp 1.1.0 BSP  I implemented (stole) the medical app demo with more spectacular images like a vertical list from the RZ demos. Also this works without problems, even the list. My code is based on this code. So i think my base system is OK. My pointers , buffers etc are all global. By the way: With my list miraculously working for half an hour a least, when scrolling up/ down i sometimes see half lines, partly written under and above the list-window. It seems that the screen redraw is not executed properly. I included the code for the list. Thanks, Dig.

Viewing all articles
Browse latest Browse all 59170

Trending Articles