Welcome, Guest. Please login or register.

Author Topic: Thinking to change to the dark side (blue)  (Read 13094 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline falemagn

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 269
    • Show all replies
    • http://www.aros.org/
Re: Thinking to change to the dark side (blue)
« on: April 03, 2004, 12:51:12 AM »
Quote

Yes it does.
The app with the "fuzzypointer" is more probably detected & killed before it messes up the memory of other apps/OS.


Sorry, but it's not as simple as you make it sound. For one, you can't just kill the culprit task, if you do, you risk to really damage the rest of the system, as that task might be holding information that another task has got a pointer to, for instance, or it might be holding a semaphore (and no, you can't safely just release the semaphore, as that might leave the data it was protecting in an incoherent state), or whatever else can come to your mind.

 

Offline falemagn

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 269
    • Show all replies
    • http://www.aros.org/
Re: Thinking to change to the dark side (blue)
« Reply #1 on: April 03, 2004, 04:35:43 AM »
Quote

Then do not kill it.


Not killing it is no real solution either, because the alternative is just freezing it, which again may cause all kind of troubles, although the chances troubles may happen are lower than in the case the task were killed.

Quote

But surely you rather know something/anything about the memory corruption proceeding in your system than just crash and loose all data.


Sure, but then, it's not really "memory protection", it's just another situation in which the classical "suspend or reboot" requester pops up.