Assume you are running a build task, from a JSON file.
Assume that while building, you modify the JSON file.
The original build task get deleted. While the Process::finished will have a pointer to the old deleted task. App crashes.
Solutions:
- copy the task
- use smart pointers for task
Assume you are running a build task, from a JSON file.
Assume that while building, you modify the JSON file.
The original build task get deleted. While the
Process::finishedwill have a pointer to the old deleted task. App crashes.Solutions: