Hi,
My app. uses two threads, one to run the kernel(shell) and the other is gui.
If a long running process is started in GUI, I go to the shell and delete the pointers used by my GUI, the app. crashes.
So, Is there a clean way(except from copying everything to gui, as the data structures are heavy), to stop the app. from crashing.

please suggest the possible solutions

Thanking you,

regards,
sree