[haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos
- From: "Janus" <trac@xxxxxxxxxxxx>
- Date: Wed, 04 Mar 2015 12:10:42 -0000
#8902: Crash upon closing, after rapidly scrolling through many large photos
--------------------------------------+----------------------------
Reporter: mmadia | Owner: axeld
Type: bug | Status: assigned
Priority: normal | Milestone: R1
Component: Applications/ShowImage | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking: 7095
Has a Patch: 1 | Platform: All
--------------------------------------+----------------------------
Comment (by Janus):
Replying to [comment:9 axeld]:
> I haven't had the time to actually test your changes, I just looked at
the patch.
>
> Anyway, the point I was trying to make is that it is '''never''' a good
idea to assume a certain error code in such a way. The error code was just
an example. Another example would be that we'd memorize thread IDs in the
kernel, and find_thread() would then return B_THREAD_EXITED if the thread
is no longer with us -- I hope you get the idea now :-)
Yes, I have understood your concern and I agree with you 100%. I know that
it isn't a good practice to test for a single error, but in this
particular case I don't have a better solution. I also prefer not penalize
the normal flow for the exit condition. I don't like this solution
myself.
--
Ticket URL: <https://dev.haiku-os.org/ticket/8902#comment:10>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.
Other related posts:
- » [haiku-bugs] [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- mmadia
- » [haiku-bugs] [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- mmadia
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- anevilyak
- » [haiku-bugs] [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- Janus
- » [haiku-bugs] [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- Janus
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- axeld
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- axeld
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- Janus
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- Janus
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- Janus
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- axeld
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos - Janus
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- Janus
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- axeld
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- Janus
- » [haiku-bugs] Re: [Haiku] #8902: Crash upon closing, after rapidly scrolling through many large photos- waddlesplash