Skip to content

Problems with structs and pointers (does not save value). Works on ESP32 #892

Answered by MX682X
DJPX asked this question in Q&A
Discussion options

You must be logged in to vote

My best guess, based on looking at the code, is that you are running out of RAM when calling new/malloc. When malloc is returning a nullpointer, it means the memory allocation has failed. Neither code is checking, if the allocation failed. And the 202 has only 128 Bytes of SRAM.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
4 replies
@DJPX
Comment options

@DJPX
Comment options

@SpenceKonde
Comment options

@DJPX
Comment options

Comment options

You must be logged in to vote
6 replies
@MX682X
Comment options

@SpenceKonde
Comment options

@SpenceKonde
Comment options

@MX682X
Comment options

@DJPX
Comment options

Answer selected by DJPX
Comment options

You must be logged in to vote
1 reply
@MX682X
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants