Post Reply 
Proper way to terminate a HPGCC C program after using hpg_set_mode_xxxx()?
05-11-2023, 08:15 PM (This post was last modified: 05-11-2023 08:49 PM by dkostan.)
Post: #4
RE: Proper way to terminate a HPGCC C program after using hpg_set_mode_xxxx()?
(05-11-2023 06:08 PM)dkostan Wrote:  
(05-11-2023 06:00 PM)pier4r Wrote:  I am not sure, but maybe here there are useful examples? http://sense.net/~egan/hpgcc/

Thank you. I did look there and they just return(0); and that's its.

I did find this but they say it deprecated. It was one of the things I tried (by itself) and it did not work Sad

/*!
* \brief Restores the graphics hardware to the default state.
*
* This function is no longer required
*/
void hpg_cleanup(void);


Solved... Note to self: Allocate enough memory for your arrays Sad doh!
So what was happening that the memory locations it overflowed into (past the array last location) was not causing the custom hpgcc app to crash but caused the calculator app/kernel to crash when returning control to it...

------------------------------------------------
Prime, 50g,49g+,48gII,48sx,48g, 48gx,71b,75c,28s,28c
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Proper way to terminate a HPGCC C program after using hpg_set_mode_xxxx()? - dkostan - 05-11-2023 08:15 PM



User(s) browsing this thread: 1 Guest(s)