Quantcast
Channel: MultiTech Developer Resources » All Posts
Viewing all articles
Browse latest Browse all 7111

Reply To: MDot hangs when using mbed5 EventQueue.

$
0
0

Yogesh,

You’re allocating the stack for your worker thread off the main thread’s stack. As soon as your main thread attempts any other operations that require stack, it’ll overflow its stack.

You need to new() your work thread stack from the heap or allocate it statically in the global space before main.

Cheers,
Mike


Viewing all articles
Browse latest Browse all 7111

Trending Articles