[target performSelectorOnMainThread] will crash when target is released???

Hi, everybody:
It seems that:
[target performSelectorOnMainThread] will crash when target is released???
I have a back-end thread to download the images.
I have an instance which is a display object in OpenGL ES.
In this instance, I need a image as texture from the network.
so, when the instance initing, I send the download task to back-end thread.
[FileCacher appendImageDownloadTask:self
uri:imageUrl
callback:@selector(setImageCallBack:)
And in my thread, if the image is download, it notify the instance by:
if( callback != nil && target != nil )
[target performSelectorOnMainThread:callback
withObject:image
waitUntilDone:YES];
it works, but not always.
If the instance is released before the download finished, it usually crashed.
In my idea, the performSelectorOnMainThread here should equal to the SendMessage API in windows, if the HWND of the window is gone, the SendMessage may failed but never crash,
here, it usually crashed, plz help me, how to solve this one?

you need keep image,not release before the performSelectorOnMainThread 's selector invoked.

Similar Messages

  • I can not get my Adobe Photoshop Elements 8 organize to open. The edit option comes up with no problem, but will crash when I try to access organize. What should I do to fix this problem?I can not get my Adobe Photoshop Elements 8 organize to open. The ed

    I can not get my Adobe Photoshop Elements 8 organize to open. The edit option comes up with no problem, but will crash when I try to access organize. What should I do to fix this problem?

    Hi,
    Which operating system are you running on?
    Try starting the organizer while holding down the shift key.  Hopefully, it should load the Catalog Manager.
    Select your current catalog and click on the Repair button. Once it has finished, click on the Open button to see if the catalog opens.
    Good luck,
    Brian

  • Known Issue: The XAML designer in VS and Blend will crash when opened in Windows 10 Technical Preview Build 10049

    Following the installation of Windows 10 Technical Preview Build 10049, the XAML designer in Visual Studio and Blend will crash when opened.

    We now have a patch you can install to work around the following issue: “The XAML designer in VS and Blend will crash when opened.”
    This is only intended to be used with the Windows version 10049, and Windows SDK version 10030.
    Download the following
    patch to a temp folder
    Unzip the files  into a TEMP folder.
    Exit Visual Studio if you have it opened.
    From an  administrative command prompt, run the batch file: XAMLUpdate10049.cmd.
    That should do it.  If you have any issues, please post questions to the
    Tools for Windows Store apps forum.

  • Known Issue: The XAML designer in VS and Blend will crash when opened in Windows 10 Technical Preview Build 10061

    Following the installation of Windows 10 Technical Preview Build 10061, the XAML designer in Visual Studio and Blend will crash when opened.

    We now have a patch you can install to work around the following issue: “The XAML designer in VS and Blend will crash when opened.”
    This is only intended to be used with the Windows version 10061, and Windows SDK version 10030.
    Download the following
    patch to a temp folder
    Unzip the files into a TEMP folder.
    Exit Visual Studio if you have it opened.
    From an administrative command prompt, run the batch file: XAMLUpdate10061.cmd.
    That should do it.  If you have any issues, please post questions to the
    Tools for Windows Store apps forum.

  • Skype won't download and will crash when joining a call.

    I just got Windows 10 on July 29th (When it was released) and I installed the desktop version of skype, it was all working fine until I was forced to uninstall it because everytime I joined a call it would crash and it would not let me join the call. I then uninstalled skype and now cant re-download the desktop version or app version.

    Yes, I did. It wouldn't finish downloading in I-Tunes either, just as it did on my Iphone. Any other suggestions?

  • JVM will crash when running tomcat4

    Hi,
    My JVM crash when running tomcat awhile. Any suggestion? Thanks.
    Here is my platform info:
    linux-2.4.19, glibc-2.2.4-30, jdk1.4.1-rc-b19, tomcat4-4.03
    Here is the JVM message:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x6C6C75
    Function=[Unknown.]
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
    - locked <0x4485f568> (a java.net.PlainSocketImpl)
    at java.net.ServerSocket.implAccept(ServerSocket.java:439)
    at java.net.ServerSocket.accept(ServerSocket.java:410)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:293)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
    Regards,
    Steven Chan

    Hi Steven
    Also post this question at http://www.javaranch.com , there is a special forum for Apache/Tomcat.
    Regards.

  • K8MM-V will crash when using any Radeon Graphics Card (ok with NVIDIA)

    Can anybody help!!!
    Hi, OS MCE 2005 (Fully Patched) I have tested my system with 3 fully working ATI Radeon Cards (9800Pro, 5550 & 9200SE) all cards crash when entering Media Centre GUI or using any 3D app (e.g 3DMark 2003). I have fitted an NVIDIA 5900XP and the system runs 100% stable. I have a fresh install of OS, .NET ,Motherboard & latest ATI Drivers (V5.10) drivers. I have even fitted a replaced the motherboard (MSI K8MM-V. Is there a fix or are ATI cards incompatible with this motherboard/chipset. Any advice greatly received.
    MSI K8MM-V MB
    512MB DDR 400 (Crucial)
    160GB SATA HD
    Athlon 64 3000+
    NEC DVD/RW
    Hauppauge WinTV-PVR 150
    Gigabyte GN-WPKG Wireless PCI Card
    Sound Blaster Live 5.1
    ATI Radeon - 9550 256MB or 9200 128MB or 9800Pro 128MB
    Media Centre Edition 2005 - Patched
    ALL CARDS AND DRIVERS NOT INSTALLED EXCEPT ATI for testing.

    I flashed to 9.20 and my video went in the crapper and the computer became unstable, unusable really .  I had crashing with my 9800 Pro and installed a 9200 and it worked fine.  I read on another topic to change some BIOS setting, for me it was turning off the spread spectrum under the cell settings that changed everything .  Once that happened, about 5 minutes ago, I booted for the first time in a week and the 9800 Pro appears to be working fine. 
    Look at this link...https://forum-en.msi.com/index.php?topic=89456.0
    Props to Tiresmoke for the fix
    If it works, let the forum know so other can figure this out as well. 

  • ITunes 7.1 will crash when attempting to play music

    Ever since I've upgraded to version 7.1, iTunes crashes whenever I attempt to play music. This also occurs when I try to listen to a song in iTunes Store.
    Thanks for any help!
    Dell Dimension 8100   Windows XP Pro  

    are you still at iTunes 7.1.0.59? to check, go "help > about iTunes", and wait for the version number to scroll up from the bottom of the screen.
    if you've got a 7.1.0.59, try upgrading to 7.1.1.5:
    iTunes 7.1.1.5 installer
    do you still get the crash when playing music with that in place?

  • Logic prox will crash when editing notes in the editor.

    as im editing the veocity on single notes in the editor it will crash after some edits.
    does reinstalling help with some isues?

    Vic,
    Same thing happened to me a few days back. I closed Logic, removed the Preferences files (listed below), and then ran the Logic Setup Assistant. All is well now.
    Here are the files I removed:
    com.apple.logic.pro
    com.apple.logic.pro.cs
    com.apple.logic.pro.plist
    com.apple.logic.SetupAssistant.standard.plst
    LogicProject7
    plus the folder:
    Users/<user name>/Library/Preferences/Logic/PM Data
    All of these were found in:
    Users/<user name>/Library/Preferences
    or
    Users/<user name>/Library/Preferences/Logic
    I am not sure I needed to remove all of these, but I did. Maybe someone else can ring in with a list of the exact files one should remove.
    Hope this helps,
    Mitch

  • Quick time will crash when opening movies

    I am using MS Vista 32bit, with 2 Invida cards. I installed QuickTime 7 with out any errors, but when I try to open a movie QuickTime will immediately close with the lovely "QuickTime player has stopped working, windows will close the application and try to search for a solution" window (not exact text). I have changed the QuickTime display to Safe mode on the advanced tab in the QuickTime control panel, that will allow QuickTime to open but it will clock with a blank display and never open the movie. I tried installing QuickTime 6 and it will not crash, but will not show the movie either, it will just display the first frame. Any help would be greatly appreciated, thanks!

    Just like you have to take care of your car once in a while you have to do that with your computer too.
    Repair permissions is a part of it. You have the application Disc Utility in the Utility folder. It can Repair permissions. Or get a maintenance app like the free Onyx.

  • Premiere Pro will crash when rendering part of timeline and cancelling - common issue?

    There have been times where my timeline was red- so I chose part of the timeline, hit enter to render, and then realized it was going to take too long so I cancelled out. However, every single time (when I hit cancel, not "x"), it will tell me that Premiere Pro crashed and close the program. Can anyone replicate this? Is this a known issue? I didnt see it reported anywhere. It is not random. I can anticipate it happening every time I do that.

    None at all. It's the strangest thing. There are times where I will start a render, not realizing how long it will take, change my mind, and try to cancel and it happens. I may just need to resort to reinstall the application if I can if no one else is experiencing the same issue.

  • FF will crash when starting up.

    i'm running win7x64sp1rc. i installed FF, and when it was time to start up, she crashed. and continues to crash on every attempt to start it. is there a x64 version of firefox? or does that not have anything to do with it? i have the crash report, and posted it to www.farpoint.org/ffcrash.txt. i'm really buggin out on this, because it's the same thing that happened to me last year, on another laptop. and it never got resolved.

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    More information about reinstalling Firefox can be found [https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems?esab=a&s=troubleshooting&r=3&as=s#w_5-reinstall-firefox here].
    <b>WARNING:</b> Do not run Firefox's uninstaller or use a third party remover as part of this process, because that could permanently delete your Firefox data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and saved passwords. <u>These cannot be recovered unless they have been backed up to an external device!</u>
    Please report back to see if this helped you!
    Thank you.

  • Somedays firefox crashes 10+ times within minutes, other day it does not crash at all. It will crash when opening, in email, or just on any web site. No rime or reason! Why?

    I am not technical at all. I just want to know why somedays my system crashes over and over again, and other days all is well. Each time it crashes I get a "crash report" option, and I always send in said report, but I do not think anyone is checking those!
    This has become a real issue and I am very tired of it.

    https://support.mozilla.com/en-US/kb/Firefox+crashes#Getting_help_with_your_crash
    Type '''about:crashes''' in the URL bar and hit Enter. <br />
    Click the hyperlinks to bring up the Crash Report pages and copy'n'paste the URL of each of those reports into the message box here. We'll see if we can help you figure out what is causing those crashes to happen.

  • N95 will crash when using voice tags with HS-4W

    When I try and use my Nokia Bluetooth Head Set HS-4W to access voice tags it always resets!
    Anybody else got this problem?

    I finaly got it to work by resetting the headset.
    No problem whatsoever with voice dialing.
    I have firmware V30.0.15
    Do you have the problem when using voice tags on the phone alone?

  • Hi...my email will crash when i try to open an attachment...verizon said it is a browser problem....also, my pc will just freeze up for no reason i must restart

    also a box keep coming up saying a browser setting change is needed..help

    hello, this "browser settings change" dialog is usually part of adware/malware active on your pc. please go to ''firefox > addons > extensions'' & remove any suspicious entries (toolbars, things that you have not installed intentionally, don't know what purpose they serve, etc). also go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and do a full scan of your system with the security software that you have in place and different other tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Remove a toolbar that has taken over your Firefox search or home page]]
    [[Troubleshoot Firefox issues caused by malware]]

Maybe you are looking for