# Question about the close(); method

**URL:** <https://forum.kirupa.com/t/question-about-the-close-method/287535>\
**Category:** Uncategorized\
**Created:** [May 3, 2009, 3:40am UTC](https://forum.kirupa.com/t/question-about-the-close-method/287535 "2009-05-03T03:40:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrBulbous](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@MrBulbous](https://forum.kirupa.com/u/MrBulbous)\
**Post date:** [May 3, 2009, 3:40am UTC](https://forum.kirupa.com/t/question-about-the-close-method/287535/1 "2009-05-03T03:40:41Z")

</div>

As the title of the thread implies, I’m having some trouble with closing an open stream on an image\_loader.

I’ve got a navigation class which instantiates instances of a portfolio class. When I click on on another project I want to close any image\_loaders that are currently downloading a jpg. The following demonstrates how i’m trying to close the stream…

image\_loader.close();

Should work right? For some reason it doesn’t. If I test locally it throws the following error:

```auto
Error: Error #2029: This URLStream object does not have a stream opened.

```

I’ve tried testing it live and I get this in the activity monitor:

```auto
Error WebKitErrorDomain

```

I feel like this should be pretty easy. What am I missing? I’ve looked for a long time trying to find documentation on this seemingly simple problem. Any help someone can offer would be greatly appreciated. Thanks in advance.
