App lingers before closing completely

Hello guys

I have an application that displays a list and download images from the Internet, the Image Loader sample-based.

I opened the app and it works as expected, until I close itand the BB10 home its icon remains semi transparent for 2 or 3 seconds before being opaque again.

Also, some time after that, when I open it again, it closes immediately without any registration.

He started doing when I added the Image Loader sample code.

The application uses threads, but I don't think that is the problem, since the Image Loader example also uses and has no problem when closing. Threads exit when the Chargers of Image are destroyed.

In case it helps, here's what the newspaper of the device prints from the moment where the application is sent to the bottom and then closed (code and message):

0       NavigatorEventHandler::Received - BPS - NAVIGATOR_WINDOW_STATE - NAVIGATOR_WINDOW_THUMBNAIL
0       NavigatorEventHandler::new WindowStateInternal SWIPING
0       LGM - RENDER_BEGIN  SINCE_LAST_RENDER_START: 10394448366 ns
0       LGM - RENDER_END  RENDER_DURATION: 0 ns TOTAL_FRAMES: 70 FRAMES_DROPPED: 14
0       NavigatorEventHandler::Received - BPS - NAVIGATOR_WINDOW_INACTIVE
0       NavigatorEventHandler::new WindowStateInternal PAUSED
0       LGM - RENDER_BEGIN  SINCE_LAST_RENDER_START: 714764518 ns
0       QNXApplicationEngineImpl::Application window not visible, pausing rendering
0       LGM - RENDER_END  RENDER_DURATION: 1000000 ns TOTAL_FRAMES: 71 FRAMES_DROPPED: 15
0       NavigatorEventHandler::Received - BPS - NAVIGATOR_WINDOW_COVER_ENTER
0       NavigatorEventHandler::new WindowStateInternal COVER
0       LGM - RENDER_BEGIN  SINCE_LAST_RENDER_START: 101608182 ns
0       QNXApplicationEngineImpl::Application window is visible, resuming rendering
0       LGM - RENDER_END  RENDER_DURATION: 2000000 ns TOTAL_FRAMES: 72 FRAMES_DROPPED: 16
0       NavigatorEventHandler::Received - BPS - NAVIGATOR_WINDOW_STATE - NAVIGATOR_WINDOW_INVISIBLE
0       NavigatorEventHandler::new WindowStateInternal INVISIBLE
0       LGM - RENDER_BEGIN  SINCE_LAST_RENDER_START: 853836332 ns
0       LGM - RENDER_END  RENDER_DURATION: 0 ns TOTAL_FRAMES: 73 FRAMES_DROPPED: 17
0       LGM - RENDER_BEGIN  SINCE_LAST_RENDER_START: 58109035 ns
0       LGM - RENDER_END  RENDER_DURATION: 0 ns TOTAL_FRAMES: 74 FRAMES_DROPPED: 18
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 528 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 529 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 530 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 531 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 269 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 532 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 533 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 534 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 417 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 158 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 306 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 454 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 195 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 343 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 84 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 491 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 232 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 380 ] not unrealized
9000    ERROR: Context: Object name=" "ImageData" " [objectId= 121 ] not unrealized
0       ClientContext::Destroying server context with 19 remaining objects!
0       ClientContext::Releasing remaining objects...
0       QNXPpsSubscriptionServer::PPS Thread: FINISHED
255     PERFORMANCE_STATISTICS: max frame time: 68 ms, mean render time: 9.61 ms, std.dev render time: 15.17, mean dropped frame time: 40.39 ms, std.dev dropped frame time: 17.10, #rendered frames: 47, #dropped frames: 9
255     BRIDGE_STATISTICS: messages to client: 137, messages to server: 332
255     STARTUP_STATISTICS: started: 501 ms
0       QNXApplicationEngineImpl::Server Thread: FINISHED
0       QNXApplicationEngineImpl::run(EXIT)
9000    BpsEventManagerDependReal::setEventFilter - thread has no event dispatcher
9000    ApplicationPrivate::resourceManager: ERROR called from non-UI thread QThread(0x10fe90)
9000    ApplicationPrivate::resourceManager: Method called from non-UI thread

Advice and pointers are appreciated.

Hello Pepe,

A good site c ++ that I use is CPP learn it caters to beginners but I often come back to for reference.

Generally the 'new' operator is coupled to a 'delete' in which you want to free up memory which is held.

For your example, you need a ' delete mImageTracker; "when you no longer need the object.

If your class CustomImageLoader inherits QObject, you could also do this:

mImageTracker->setParent(this);

This will ensure that mImageTracker is cleaned to the point that your CustomImageLoader ceases to exist.  In QT parent objects are responsible for the cleaning of their children.  Keep in mind that if this is practical, opposes may be kept around for any longer than necessary.

Hope I have not confused you.

Tags: BlackBerry Developers

Similar Questions

  • Updates auto-installed, now my application of fresh paint guard before closing I can finish

    Application of wet paint came with my Microsoft. HE loved! .. up to - this 2 days ago. That's when he went crazy. Before I can finish any paint, the dots start circling around and around, and then it crashes and I have to delete what I painted & start all over again. Tried to uninstall & reinstall, deleted a lot of my work, thinking maybe it was full... Nothing works... Help!

    Original title: My fresh paint App went CRAZY!  2 days ago several updates auto-installed, now my application of fresh paint guard before closing I can finish. (the dots just keep in a circle) Help

    Hello

    Follow the steps listed here, then try again fresh paint

    http://answers.Microsoft.com/en-us/Windows/wiki/windows8_1-system/troubleshooting-component-store-system-files/8acbd614-678d-42B9-859c-56d3e6f8342a

  • Photoshop Elements opening at startup, despite having close before closing.

    I am running 13 elements on a MacBook Air O SX Yosemite version 10.10.

    After installation, I encountered the following problems.

    (1) items 13 organizer application open ok and transfer my photos from iPhoto.

    (2) items 13 open Application o.k

    (3) the editor elements 13 open o.k

    But lately, when you open the application 13 elements after 1 second, the display returns to another copy of 13 elements Organizer.

    I have tried to check the files installed, to check whether they are in the right place, can not see the apparent problems.

    Also on 13 startup items will automatically start despite having left the program before closing.

    Maybe if I reinstalled completely 13 elements problems could disappear.

    Your first answer would be much appreciated.

    Best wishes David a Hullin

    Sorry, but I'm still confused. There are only two real parties of PES: the editor and organizer. I guess the other icon is to welcome screen, who don't want any, normally. I trash the three of us, then go to Applications > Adobe elements 13 Organizerand make an icon for it, then to the Applications > Adobe Photoshop elements 13 > Support Files > Photoshop elements editor and make one for that (or when a component is running).

  • everything I need to know if how activate "notify me before closing multiple tabs.

    How can I activate "notify me before closing multiple tabs? I love this feature and accidentally turned off and now, because he did not warn me before closing multiple tabs, I need to know how to turn it back

    The tab preferences and settings, select the setting "warn me when closing multiple tabs".

  • How you restore your file to the original before closing?

    I open a file, and change margins. I did two upward on a page. Now, I want to change it it is original. Just close these days, he recorded with my changes. Then, how do return you your file to the original before closing? Thank you.

    Open your two-seater document in Pages ' 09. In the lower left corner of the status bar, click the indicator at the top of this menu, and percentage change two places for a spot. Save your document. You should resize your document down to its size of single page, before saving, as the Pages ' 09 will do that for you when you switch back from two places.

  • Force the user to fill out an interface of the window before closing

    Hi all

    We already have an application written in Labwindows and we need to change to the new requirements. According to this condition, the user must provide more information before proceeding with the application. The idea is a popup window and force the user to include the information in this window. I have two questions here:

    -How can I prevent the user to close the second window before entering anything (something like the concept of modal window)? He should be able to access first window that after he clicks ok in the second window, out per second.

    -How to pass values between the two windows?

    Thank you

    Kanu

    Hi Kanu,

    These issues concern some fundamental concepts in CVI, you need to study or refresh.

    As you may know, the simpler you have a modal window in CVI is to use InstallPopup after loading the Panel: is the guarantee that the user cannot access other panels before closing the popup panel (Finally, there are other ways and a few caveats to my assertion, but let's first passing the simplest).

    When the user clicks OK, close or no matter what button place you on this Panel, you need to retrieve the value of the relevant controls with GetCtrlVal, validate them some way according to the nature of the control and your needs and only if it is valid, close the Panel with DiscardPanel (or RemovePopup if you need to reuse and don't want to reload).

    Passage of the second round table data is done via SetCtrlVal.

    As you can see, these are very general concepts, which may or may not apply to your application. In case you have doubts please add some details to your question.

  • XML Core Services 4.0 Service Pack 2 KB936181 update every night before closing.

    I don't understand why the KB936181 above keeps saying that it needs to be updated and will update every night before closing. It's very annoying. It is said that it successfully updated each time but not go away and comes back. If you look at the history of the update, it updates every night. Can someone please?

    Thank you

    Hello

    I suggest you follow the steps in troubleshooting section below and check if it helps:

    Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update

    http://support.Microsoft.com/kb/910339

    Hope this helps,

  • How can I configure Windows 8 ask me before closing a browser window?

    How can I configure Windows 8 ask me before closing a browser window?

    Does anyone know if there is a way to configure programs such as IE or Chrome, even files explore to ask before a window is closed when you miss click on the X icon? I know that there is a way like to keep the research that you've had, but I want to open a dialog before it closes is not to save my session information.

    Thank you!

    Alguien conoce una forma to prevent than simply to cierren las ventanas than uno esta using programas como o IE Chrome, y hasta el explorador carpetas, sino that empowers a dialogo seeking confirmation box? What does hay una forma to save las busquedas, o una sesion sites, pero no eso are lo than busco.

    Gracias!

    It's not really a way to do that, I'm sorry to say.  At least no way built in and not by any software I've seen.  Although I'm not really sure there is no technical limitation if someone wanted to do it.

    I actually usually use the keyboard just to avoid such accidents.  If I want to enlarge or shrink a program, I'm going to press the Windows Logo and the top or down arrows rather than click, so that I don't hit that X.  :)

  • CS5 on El Capitan gives the message of the incident AFTER the closure in Design and Illsutrstor. Normal functions before closing the program

    CS5 on El Capitan gives message of crash AFTER closing in Design and Illustrator. Normal functions before closing the program

    CS5 is not supported on El Capitan a few glitches are expected. You can do a search for InDesign crash when closing and see what kind of solutions have been proposed in the past (what CS5 is an ongoing program), but there is no guarantee that they will always be your problem.

  • I have to pause before closing? (Fusion 7 Mac)

    Hi all

    I always manually suspend my VM before closing the window and Fusion to quit (Mac 7/Mavericks).  Is this necessary, or can I just close the window (which seems to automatically suspend)?

    Thank you

    Ivan

    You close the window, and it will work as you desire. Automatically suspend the virtual machine is the default setting, but you have the choice:

    * Go to the VMware Fusion menu and select Preferences...

    * Click on the general icon.

    * Choose "suspend the virtual machine' (default) or"switch the virtual machine' (which can cause the virtual machine to stop).

    You can also decide if you want that VMware Fusion to show a before confirmation dialog box it closes a window of the VM.

    Confirmation is useful if you have a tendency to close the windows with the command-W. Sometimes the VM itself was the focus of the mouse instead of a small window running in your virtual machine. Accidentally, you suspend the VM together instead of closing a window inside the virtual machine. Happens to me when I run several virtual machines using the full screen, flipping between screens with the trackpad, and then I type the command-W without clicking first inside the virtual machine. The virtual machine is suspended. The parameter "Confirm before closing" gives a first warning.

    I let the disabled in any case, Confirmation setting to speed up when I really want to close these VMs.  :-)

  • Plugin WindowsForms without closing before closing the Acrobat window

    I have a plugin that I build that opens a Windows form, allows the user control some things and do some calculations and then to send a block of text to the PDF document.

    The problem is that if the user does not close the Windows Form before closing the main acrobat window, the program will crash because of a violation of read access to a location memory.  The problem does not occur if the windows form is closed in the first place and then the main acrobat window is closed.

    i.e.

    1. the user opens a document

    2. the user starts the shape of the window using the plugin

    3 user performs some work using the document and the windows

    4. the user is done so they close the acrobat window

    5. the user sees that the windows form is still open and close.

    6. the error occurs

    I create the windows form using Application::Run (gcnew Form1());

    In the windows form, I added this function:

    public: static void ExitCalc(){
    Application::Exit();
    }

    This function is called in the .cpp file that generates the drop as part of the PluginUnload, but the problem remains.

    I need to close the windows form object before the closure of the acrobat window.

    Thanks for the help.

    There is a notification that you can apply when a document is closing (and many others too!).   Check the documentation for more information about the notifications.

  • The unsaved changes in queue: [File name] save before closing?

    Hello!

    FM 9 on Win 7 Pro.

    I'm a long-time user of FM.

    I am trying to open the files I could successfully open before I left work yesterday. I can open FM and open the books of FM. When I try to open an FM in a book, or an FM file not in a book, I get this message:

    "The unsaved changes in queue: [File name] save before closing? No Yes No Cancel.

    It doesn't matter which choose (Yes, no, cancel), following FM shows this message:

    FrameMaker 9 Application has stopped working. Windows can check online for a solution to the problem.

    Search online for a solution and close the program

    Close the program.

    Details of problem

    It doesn't matter what file I try to open (recently worked on the files and I have not touched it since some time). Same messages, anything.

    I tried to update the book (the update seems to happen), save the changes and then try to open. Same error messages. I had hoped that updating the book would clearly any possible referral.

    I tried several reboots, nothing works.

    Help!

    Thanks in advance for any help!

    Terri

    Since his happens with all files, my suspicion is that your application data are damaged. Try this:

    1. close FrameMaker.
    2. Delete the following directory: C:\Users\[user]\AppData\Roaming\Adobe\FrameMaker\
    3. reopening of framemaker and see if the problem is reproducible.
  • How to remove the warning "do you want to save the changes to investigation.pdf before closing.

    Question: To remove the warning "do you want to save the changes to investigation.pdf before closing.

    I created a file of pdf XFA (using the LC Designer 8.2) to view this issue

    I can't attach PDF file. Without attaching the pdf file, it would be difficult to explain.

    Click event js:

    function activateUser() {}
    var PDFVersion = xfa.host.variation + xfa.host.version;
    xfa.host.messageBox ("registered button click event");
    XFA. Form.Form1.sendForm.welcomeMsg.Presence = "invisible";
    XFA. Form.Form1.sendForm.successMsg.Presence = "visible";
    Event.Target.Dirty = false;
    };

    docReady event js:

    function displayInfo() {}
    var res =xfa.host.variation;//Added this line to display the successMsg
    xfa.host.messageBox ("docReady event recorded");
    XFA. Form.Form1.sendForm.welcomeMsg.Presence = "visible";
    XFA. Form.Form1.sendForm.successMsg.Presence = "invisible";
    };

    docClose js event:

    xfa.host.messageBox ("docClose recorded event");
    Event.Target.Dirty = false;

    Steps to get the caveat:
    (1) open the attached pdf using Acrobat Professional.
    (Bouton 2) click on registration to confirm.
    (3) now close the document and the Acrobat gives a warning "do you want to save the changes to investigation.pdf before closing.

    The XFA pdf summary:
    It has two text fields. DocReady event field has done this & field B is rendered invisible.
    The button click event of the field made invisisble & field B are made visible.
    Closing the pdf should not raise this warning message.

    My Efforts:
    (1) found a property in js adobe docs.
    Event.Target.Dirty = false;
    It does not solve the problem.
    (2) I tried to put this logic in almost all the events listed in the designer, but I'm not able to solve the problem.

    Please help me solve this problem.

    Hello

    Change the visual appearance is dirty the screen, before all data are actually entered in the form. I've seen this before.

    I think that the docClose event is too late to have the sale/requiresFullSave script. preSave does not either, as this is triggered after the warning dialog is displayed.

    For a test, I would put the sale/requiresFullSave script in the layout event: loan. Not the most efficient, but he should do after changing the visibility of the messages.

    This could be interesting: http://cookbooks.adobe.com/post_How_often_events_fire_and_their_sequence-16547.html

    Niall

  • Will be "immediately stopped" RAS redologs to archivelogs before closing the db?

    Hi guys,.

    I have a question that I want to erase and I hope Oracle gurus here can help me out with what I don't have freedom "immediately" to test the scenerio.

    When I run the command to stop, do a journal command before closing the database? Or do we have to do it manually before shutdown? I want to make sure I'm not losing last operations when a restore of database on a different server.

    -MM

    Published by: UserMM on October 15, 2008 09:04

    No, a STOP (whether IMMEDIATE or NORMAL) does NOT cause a switch of log of the last file Log of Redo ("CURENT"). At the start of the instance, Oracle continues with the same log file in the CURRENT file.

    Allows you to encode a Shutdown trigger to force a log switch, or to write a wrapper program to run the SQL command ("ALTER SYSTEM SWITCH LOGFILE"). However, as you will need to run the ALTER SYSTEM before, all actions (restoration of transactions that an immediate stop) closing would still be in the CURRENT journal of again after the switch.

    What you could do is to:
    a. immediate stop
    b. startup restrict
    c. ALTER SYSTEM SWITCH LOGFILE
    d. Normal or immediate stop

    These could be "merged" within a script.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

    Published by: Hemant K Collette on October 15, 2008 23:09

  • Spooler subsystem app. has been closed to protect system

    I ran the program of Mr. fixit from microsoft site.  seemed to fix my printer, but my printer seems to work very well, came back, nothing wrong. whenever I turn on my computer I get this message even. Spooler subsystem App and had to protect close system, have no problem closing the message window.  Don't know if this is important or how to fix it.  Help!  Thank you

    Yes, I have Windows XP.  Well, when I boot message appears and I close the message and I have no problem printing.  The list of the icons in the "printers and faxes" are; HP deskjet 5600 series (and the checkbox), Microsoft XPS Document Writer, send to OneNote 2010.  I didn't know there is more than one "Mr. FixIt" program, I just followed a link that the error message was downloaded "Mats_Run.printing.exe" and opened it and keep running and it came to a point where he says that something like could not find no problem to solve.  Thanks for your help and your patience with my inexperience with this process; never been in the forum before.

    I have not seen a situation as you describe it.  Usually, when there is a problem and the spooler stops it stays down. Can you identify what happened before this problem occurred first?

    Do you use Microsoft OneNote?

    Go to printers and faxes

    Right-click on the icon for the DeskJet 5600, and then click Properties

    Click the Ports tab.

    Use the scroll bar and see if there is an entry named "send to Microsoft OneNote Port:" and, if so, if there is a check in the box for this line.

    Click Cancel to exit this dialog box.

    Do the same for the XPS Document Writer

    It might be interesting to check the programs that start automatically when you start Windows.  Download Autorunshttp://technet.microsoft.com/en-us/sysinternals/bb963902.aspx after Autoruns full analysis, as shown in the lower left corner, click the connection tab.  You'll probably at least three entries associated with HP.  Is there something else that seems to be related to printing or that looks like 'suspect' (I know that is vague; if you can't identify something, include its name in your response).

    Also take a look at the tab "print monitors.  You will probably "HP standard TCP/IP port" and perhaps "PCL hpz3143a.  There may also be a port entry Bluetooth printer here.  Anything else?

    Finally, if necessary, is listed under the tab "Winlogon".

Maybe you are looking for