setChecked() ToggleButton, causing demand to freeze, then SIGSEGV

Hey all.  I started to develop my first Cascades / C++ application in my spare time (time full employment is developer java BB).

I have a question which I hope someone can help me with.

In my main constructor, after that I loaded in the QML document, I make a call to get a pointer to the QML object.  In this case, it's a toggle switch.

// toggle switch
mToggle = root->findChild("tab1_toggle");

and further in the application, when a user touches another part of the screen or use a menu item, I trigger a method that contains this code:

mToggle->setChecked(false);

This code always causes the application to freeze, then the OS it stops and it printed in the console

SIGSEGV code=1 fltno=11 ip=791f13f2(/base/usr/lib/libbbcascades.so.1@+0x35a9a) mapaddr=000f13f2. ref=00000010

Why?

What do you mean when you say "findChild method"?

And Yes, I believe that it is valid.  Here is the part of the QML who lives the toggle

                Container {
                    id: tab1_contToggle
                    layout: StackLayout {
                    }
                    topMargin: 65
                    layoutProperties: StackLayoutProperties {
                        horizontalAlignment: HorizontalAlignment.Center
                    }
                    ToggleButton {
                        id: tab1_toggle
                        onCheckedChanged: {
                            //I can put code here to get triggered w/o problems when the switch is toggled
                        } // end of tab1_ toggle element
                    } // end of tab1_contRoot
                } // end of tab1

Here's the hpp file where mToggle is declared.

private:

// toggle switch
    ToggleButton *mToggle;

// other UI elements here that work just fine from other bits of code..

Tags: BlackBerry Developers

Similar Questions

  • Windows media player cannot play streaming music it freezes then replays

    I can't continually playing recorded music on my net book it freezes then play again, but if I play the music through my USB it's perfect... What could be the problem, can someone here who could help you? They already formatted to the service center but still that my concern is not resolved. Your comments are very much appreciated!

    See if that helps,

    http://Windows.Microsoft.com/en-us/Windows7/play-an-audio-or-video-file-frequently-asked-questions

  • Firefox crashes and freeze then quickly spread to the rest of the computer, forcing a cold reboot.

    The problem started a few weeks back. I would be browsing the web with several tabs open, when suddenly the browser would freeze, get stuck on the spinning wheel.
    As a first step, it would be that the Firefox that froze, but in the space of a few minutes the laptop would have stopped responding. Also, I was unable to force Firefox altogether.
    The two Web sites that seem to be more likely to cause the crash were culture11 and YouTube. I noted that it would take 20-30 minutes (sometimes more) to the problem to appear.

    Your computer runs out of memory when this happens.

    Try to keep an eye on the current memory usage to see what is happening.

    You can check for problems with the latest version of the Flash plugin and try these:

    Try disabling hardware acceleration in Firefox (you will need to close and restart Firefox).

    • Firefox > Preferences > advanced > General > Browsing: "use hardware acceleration when available.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

    Create a new profile as a test to see if your profile is the source of the problems.

    See "create a profile":

    If the new profile works then you can transfer files from a profile in the new profile, but be careful not to copy files corrupted to avoid transporting on the problem.

  • Secondary windows are causing Firefox to freeze

    Problem with Firefox freezing MAJOR. Whenever a second window opens, the browser everything freezes, and I have to use the Task Manager to close. This includes windows as a quick check for a bill pay, windows of seizure of task/link in various forums and even Firefox functions, such as clearing cache/cookies/etc window. When I open that to clear things, I can't do it. Even if the browser has not been opened, but a few minutes, it freezes. The small window does not close, I can't navigate from page, nothing. I use 3.6.28, and no, I don't want to upgrade. We have the latest version on other systems, and it stinks. Blocker does not block the things that it DOES not block on my system (things on the same site, same page, etc.), the themes have totally DISAPPEARED (and I wouldn't miss the Captain Jack Sparrow at the top of my browser window!), and various items of STANDARD browser are often missing - back button, bookmark link , discount, etc. I don't want a version with all these questions. I love the layout that I have, and I like my themes. However, since the last "update", I had this stupid question, and this severely limits my navigation. I tried to disable ALL add-ons/plug-ins, nothing helps. No change whatsoever. Tried to disable all cookies. Did not work. I can not even find mention of this issue in all the help pages, and I tried all the solutions offered for Firefox "hang." Proxy of NP to connect, no additional session files, no plugin problem, nothing. I have really to ask if this issue has not been created, to try to force me to upgrade. I will therefore do this way. I don't like to be pushed. Yes, I also checked my antivirus settings, and they are always very good. Firefox is listed as "of confidence" and not restricted at all. Never caused a problem before, either, and I don't think that is the question now.

    So who else has this ridiculous problem? Who else wants a solution that does not offer a browser limited with any of the themes? Alternatively, Hey, live chat for talking with someone from real tech, what can DO something? Yes, I'm frustrated. I LOATHE HIM and I started to use Firefox because of major problems with different versions of IE, in different versions of Windows, on various computers. been using Firefox for a LONG time now, more than a decade and never had problems of this kind. What gives? Help, please. I want the features that I have, and I don't want to use IE and will NOT use anything from Google. Need help! Anyone has an idea on how to get the paw of the fox of this trap?

    can you test a moment how firefox behaves when kaspersky protection is completely closed (not only the addons, but the main program)?

    and how does it work when you start firefox in Firefox to solve the issues in Safe Mode (close all other windows of firefox and then restart the program while pressing the SHIFT key, in the dialog, click 'continue in mode safe' and see how it goes)...

  • Close file causes Labview to freeze

    Hello

    I have a Labview program that contains a while loop in which a file is created whenever the loop runs. The file is created at the beginning of the loop and closed at the end of the loop, after that some data is written on this subject. The created file are .raw pictures, and they are about 2.8 MB each.

    The program works well at the beginning and creates the first file with no problems and then continues to create the second file, and written in. All goes well until he tries to close the second file with the function to close the file. Then, it freezes completely. There is no error, nothing. Only, he stops and stay there for as long as I don't force-stop program myself.

    I searched the Internet and found that the creation and closing of a file to each loop is perhaps too for LabVIEW and it causes crash, but I don't really know how to change this, since I have to create a new file each time.

    I can't really join the .vi file to this message because there are about 15 subvis he needs to run, but I've attached a screenshot of the section who ask if she can be of any help.

    There may be another way of coding of the labView program so it bypasses this problem?

    Thank you

    I have no problem with the aspects of your VI file.

    What I see that could be the problem, is that you have a structure of the event buried in the VI.  Your inner for loop will pause on each iteration of the loop, unless raise you an event that is handled by this structure to occur.  The only event shown in your picture (there may be other events, but we cannot see them) is the Rotation going Boolean contol must be changed so that the event to fire and the loop For finish and start the next iteration.

    You hit the Boolean value of Rotation are going to each iteration?  Of course, if you click on this button and make go in real life, the way that she is wired to stop both your interior and your curls For most of the code will never be repeated.

    (Tip: you can simplify the code where you build your file name using a Format string in function.)  All string constants are built in the format string.  And all the functions to format numbers get to the format string format, as well.  6 knots and 16 constants will be reduce to node 1 and 1 constant with a corresponding reduction in the number of sons.)

  • hearts & solitaire games freeze, then commissioning new - what is wrong?

    Why hearts and solitaire games freeze temporarily and then continue on?

    Hi kathyhinchliff,

    (1) remember you to make changes prior to this problem?

    (2) you get an error message?

    Select the boot and then check if the problem persists

    Follow step 1 in the link below,
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem.

    Continue with the remaining steps to pin-point on the third party service.

    After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software.

    Important: n ' forget not to put the computer to a normal startup follow step 7 in the link.

  • Vista 32 freezes then goes to the black screen?

    I am running windows vista 32 bit OS, why my entire system freezes and then shuts down completely but not turned off, just a black screen?

    Hello

    It is a general performance troubleshooting utility quite comprehensive which
    might help if the questions are not heat or material. Try the clean boot
    and other methods to see if we can determine the cause.

    -----------------------------------------------------------------------------------------------

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

    ----------------------------------------------------

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out which files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ===========================================

    Refer to these discussions because many more excellent advice however don't forget to check your antivirus
    programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
    first.

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/GP/slow_windows_performance/en-us

    Performance and Maintenance Tips
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125

    Explorer Windows stopped working
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3

    Hope these helps.

  • Storage device causes vista to freeze

    I have an emachine with two different usb ports e620.
    I plug a storage of 8 GB sandisk into one, a TI freeze completely the computer. The computer is up to date as I know, the automatic updates are enabled.

    Hi Twss22,

    You can try to use your boot USB storage device and check if that helps. A clean boot helps eliminate software conflicts.
    The following link has steps showing how to perform the clean boot. http://support.Microsoft.com/kb/929135  
    (1) perform the clean boot
    i. Click Start, type msconfig in the search box and press ENTER.
    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.
    II. in the general tab, click Selective startup.
    III. under Selective startup, clear the check box load startup items.
    IV. click the Services tab, select the hide all Microsoft Services check box and then click Disable all.
    v. click OK.
    VI. When you are prompted, click on restart.
    VII. after the computer starts, check if the problem is resolved.

    (2) enable half the services
    (3) determine whether the problem returns
    (4) enable half of the startup items
    (5) determine if the problem returns
    (6) repeat the steps above until you find out which program or service is causing the issue
     
    After you determine the startup item or the service that is causing the problem, contact the manufacturer of the program to determine if the problem can be solved. Or, run the System Configuration utility, and then click to clear the check box of the element of the problem.
     
    Note: Please make sure that the computer is configured to start as usual by following step 7 of article http://support.microsoft.com/kb/929135 .
    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    (i) click Start, type msconfig.exe in the start search box and press ENTER. If you are prompted for an administrator password or for confirmation, type your password, or click on continue.
    (II) on the general tab, click the Normal startup option, and then click OK.

    Diana
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Application cause unit to freeze

    Hello

    My application works a certain time, but then the device (the Simulator too) freezes. If I restart it, there is a dialog box that says that my application failed. It seems that the event thread was not able to kill him.

    I think something is to flood the memory, but it's only a guess.

    In the console, I see that I often get the following:

    Freeing Tail 1fa06c0BfAllocFailure(2)Pruning dead refsBfAllocFailure(2)Freeing Tail 1fe0fe0BfAllocFailure(2)...
    

    Am I correct that I did something wrong?

    Or is it only the garbage collection, and it is?

    Can you help me to identify the problem?

    I am not convinced that a running stream socket connection cause this kind of problem, we run taken all the time.  Also not convinced that the Bitmap is related, if the unit was short memory you will see the hourglass icon all the time that the device is garbage collection operation.

    Your original post said: "application failed".  Normally, this means that something is blocking the event Thread.  It could be your is running on the event Thread, or it is possible that you made a very lengthy treatment on the thread of events.  Be that as it may, I review the design of your application, find out what treatment you do on the thread of events and move offshore.

  • Latest version of iTunes causing computer to freeze

    The latest version of iTunes crashed my computer every time.  I opened iTunes and after a short moment, everything freezes, even not work Ctrl + alt + delete. I have to manually restart the computer may.  Twice I had to use a bootdisk just to bring it to the top.  I tried to remove iTunes and reinstall but it does the same thing.  If I don't run the program, my computer crashes.

    Windows 7 Professional 64 bit

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach. When reinstalling right click the installer downloaded and use run as administrator.

    Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.

    The more information box has direct links with the current and recent if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit - for older video cards) as a workaround for problems with installation or operation, or compatibility with third-party software.

    Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.

    TT2

  • Firefox causes Office to freeze.

    Every day after starting my desktop computer, I got the guide TV Yahoo7 ( http://au.tv.yahoo.com/tv-guide/ ) and then I select the option of e-mail at the top of the page.

    This takes you to the webpage http://au.mail.yahoo.com/ and when I select the sign in option on the top right of the page my desktop freezes... nothing doesn't work.

    The Office remains like this for a few minutes, and then it works fine as usual.

    It happens that the 1st time that I do this, and I also tried the same process on IE9 and never happens when I use it, so the fault must be with Firefox.

    I am currently using Firefox 26.0 and all my plugins are up to date.

    And the destination charge immediately after the connection is Yahoo! mail?

    This problem is not limited to Yahoo! mail or does it occur on other sites?

    Some users have reported loading times extended to the first access of a page when they have a ton of fonts, if this page using a downloadable font. Example: Firefox crashes on websites (example: g2play.net). Yahoo recently changed images regular icon to a downloadable font. By chance, do you have a huge collection of fonts on your system?

    To check if this is the problem, you do the following:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search box that appears above the list, type or paste gfx and make a break while the list is filtered

    (3) double-click the preference gfx.downloadable_fonts.enabled to change its value from true to false.

    To test if it makes a difference, you will need to exit Firefox and starts again by using the same steps that normally trigger the problem.

    Unfortunately, the tendency to use downloadable fonts for icons has spread to many sites, it is not as convenient as once, it was simply disable the use of the downloadable fonts to work around the problem. I hope this will get fixed!

  • Sites Web belonging to Google causes Firefox to freeze.

    YouTube, Google translate and Gmail suddenly causing my Firefox to freeze up when I open them. Have to close it through Task Manager. Opening of the FF in safe mode does not help. Manager tasks is not using any CPU when frozen.

    I tried a few searches on google without problem and used google translate earlier, quickly will try once again in a new tab - Yes, that always works for me too.

    Try to clear the cache and cookies see

    Post back about how you will.

  • E-mail hotlinks causing mail to freeze iP5s

    Out of the blue my phone starting freezing every time I have toast on a link in an e-mail.   Safari does not open and I can't scroll or close the post as soon as I click on the hotlinks.  Everything works fine until then.   Safari works very well in itself, this seems to be on the side of the post.   I can open, close, send, etc.   Just once you click on a hyperlink I have to double click on the mail button and swipe House closed and start over.   I restarted and reset my phone off all accounts of mail and turned back, only the icloud account, deleted the history and cookies off safari, closed other applications running, nothing seems to work.

    You don't know if it's related or not, but now the new update came out at the same time and I have not yet downloaded.   When I try even though I get a message that the update cannot be verified because I am not connected to the internet.  I tried on my wifi and cell data when I am still clearly connected online because all of the other internet functions still work and the speed on my signal tests are fine.   Not sure if they are related or not.

    It is a known issue and Apple is working on a fix. This article summarizes some of the problems with the current version. To disable Javascript in Safari, but this sacrifice functionality with the web browser.

    http://osxdaily.com/2016/03/25/Troubleshooting-iOS-9-3-update-problems/

  • I have the latest Firefox installed on an older Dell and the CA security suite through my ISP, that takes up all my CPU and causes everything to freeze when I try to access its features. I need a free internet security software that my so tax system

    Have old Dell Dimension 32/bit with Win XP Prof 2002. I installed the security suite CA from my ISP, which is a huge program and uses 100% CPU on starting and stopping, slowing everthing at a snails pace. I deleted evrything I need not using 30 days free Revo Unistaller Pro, but when I try to access the CA firewall to add programs to the exemption, it opens, then freezes tabbed Firefox and nothing else. Can not even stop from the start menu. I want to get rid of all (even if it's a good program, it's too big) and return to my Win Firewall(or another better free firewall that's good for more than 30 days trial) and some other internet security free program that is easy, runs in background and does not all my resources and is not just a 30 day free trial until you purchase the program. I also try to install a wireless adapter, so I can drop my ISP and use the free city/county signal as no work for 20 months!

    This has happened

    A few times a week

    == Trying CA security firewall access Suite

    I am the original poster, and I got rid of CA Security Suite & and loaded the Avast! who has some interesting features, even on the freeware. No more crashes or freeze & yes I think there is a problem with CA & Firefox, but don't know what it is. It was a big big time eater. I also got rid of my ISP and installed an Intellinet Wireless G PCI Card & am now entirely wireless on my PC. More quickly by far than what I was paying $50 / month for & I use my Windows Firewall.

  • Satellite L670D-159 (PSK3JE) - Touchpad freezes then all freeze

    Hi everyone, I am working on Windows 7 64 bit, Service Pack 1. My laptop is 3-4 months. Readers are updated and what more? Ask me so necessarily.

    I have a problem with my mouse "touchpad": it happens suddenly. As a first step, the cursor moves very slow or erratic. When I try to shut down Windows, nothing works. So I click with the left button then it work one or two times and no more everything is frozen. Nothing is possible. My work may not be enregistred.

    Sometimes 'ctrl' + 'alt' + 'extra' opens the windows to choose to open the "Control Panel", but when I click it does not open. Sometimes after a long time, I can start over, but over time, I have to manually stop before starting again. The fan seems to work too often, faster and noisely.

    Do you think of this problem, there is a patch or something else to do?

    Best regards
    Fabienne

    Hey,.

    Do you see the same behavior when you use an external mouse instead of the touchpad?

    To be honest it's not easy to say what the cause of the problem, but have you ever tried to update the driver for the touchpad? You can find the latest version on the official page of Toshiba:
    http://EU.computers.Toshiba-Europe.com > support & downloads > download drivers

    Check this box!

Maybe you are looking for