Skip to content

Unknown Error in code when i add delay #492

Answered by pschatzmann
SandeepJagdev asked this question in Q&A
Discussion options

You must be logged in to vote

You pass a variable that was created on the stack to the effects. When the loop is executed this variable does not exist any more and bad things will happen!
Define it either as global variable or via new on the heap...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants