Hello @Mehrdadh ,
If your application uses too much memory, the Azure Sphere OS terminates it with a SIGKILL signal. For example, in the debugger you'll see the following:
Child terminated with signal = 0x9 (SIGKILL)
The SIGKILL signal also occurs if a high-level application fails to handle the SIGTERM request; see Lifecycle of an application for details.
Also, see Memory use in high-level applications
Hope this helps.