AnsweredAssumed Answered

GUI_JPEG_Draw always crashes

Question asked by lee.jongheon.001 on Apr 27, 2015
Latest reply on Aug 19, 2015 by lynch_staunton.trevo
I'm evaluating STemWin for our custom board.

current i'm programming under simulatoin environmnet(VS2013 us used)

And now, i have faced strange behavior with STemWin V5.26

It always crashes when i try to draw a jpeg file with GUI_JPEG_Draw function.

I also check this with tutorial file(2DGL_DrawJPEG.c) and this one also crashed.

To findout what is wrong, i downloaded nxp's emwin bsp, and i tested same file

(2DGL_DrawJPEG.c) under nxp's bsp.

They uses emwin V5.22 and there are no crash at all. my code also runs as well.

and then i swich library file to ST's library, and it failes.

The error message is "Run-Time Check Failure #3 - The variable 'hBmpLine' is being used without being initialized." and it breaked at if (!GUI_JPEG_Draw(pFile, FileSize, XPos, YPos)) in _ShowJPG function.

I think there are something wrong with GUI_JPEG_Draw function of STemWin V5.26.

Those anyone have any idea with this?

Outcomes