No... you can't do that

I remember one time getting chastised by my code or gcc or gdb saying I could not make a declaration inside a switch statement like this:
switch (a) {
NSString* str = @"";
case 1:
case 2:
Now I'm trying to do something similar as in:
if (a) {
NSString* str = @"";
[self dothis];
[self dothat];
And I don't get an outright error or warning, my code just goes off to never never land and eventually it comes back and gdb says:
Timed out fetching data. Variable display may be inaccurate.
I can't believe I've gone all these years and not tried to make a declaration inside an if statement. Maybe so, but it would surprise me.
Can anyone point me to the right docs to explain this?
Thanks.
-Phil

This generally means that some one of the "data formatters" is taking too long to return. You can verify this by turning OFF the data formatters with the Debug->Variables View->Enable Data Formatters menu item.
Some of the data types in Cocoa & Carbon - the string types & the collection types particularly - are opaque to the debugger, so to tell you their values we have to call some code in the program we are debugging. This can go wrong in numerous ways, most of which we intercept & deal with. But not all yet...
One common cause of problems is trying to run the data formatters on uninitialized objects. We don't actually have any way to tell for sure when an object is good or not. We have some heuristics, but stack objects sometimes point to the leftovers of another stack object that are "almost good enough" and fool us. One trick that will help out with this is when you are breaking in a function, break after the objects are initialized, not at the very beginning of the function.
Or, you can just leave the data formatters off, and use "po" or the "Print object" context-menu in the variable view to look at ObjC objects.

Similar Messages

  • My MacBook Air won't stay off. I turn it off and it will wait anywhere from a few seconds to a few hours and turn itself back on. You can see how that can get annoying and I can't seem to solve the problem.

    I turn it off and it will wait anywhere from a few seconds to a few hours and turn itself back on. You can see how that can get annoying and I can't seem to solve the problem.

    There's a slight chance this might help:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    Otherwise it needs to be repaired.

  • Is there any way that you can delete APPS that come on the iPad? For example, the stock app, can you delete that or is it permanently on there?

    Is there any way that you can delete APPS that come on the iPad 2 when you buy it? For example, the stock app, can you delete that or is it permanently on there?

    You cannot delete the preinstalled apps on the iPad. You can check by tapping and holding down on the icon until it wiggles. If no X appears, you cannot delete it.
    Move it to another screen or bury it in a folder called" Stuff I don't Want"

  • I accidentally pressed the button on facetime where you can't use that email for facetime..... if i restore it will my facetime work??

    I accidentally pressed the button on facetime where you can't use that email for facetime..... if i restore it will my facetime work??

    Try the forum for the device or computer

  • All browser run can access javascript objects in iframe but in firfox you can not do that after first refresh

    1- I have a DIV tag in html page
    2- Load dynamically an IFrame into that DIV
    3- suppose that I have a JS function in that IFrame with name "func".
    4- after first loading IFrame in DIV I can access "func"
    5- but after reloading another IFrame into DIV I can access "func" in all browser IE,Chrome,Opera but I can not do this in FireFox

    Hello,
    Thank you for using the Troubleshooter extension. It seems you use Kasperskey - first see if this post helps you fix the problem:
    * https://support.mozilla.org/en-US/questions/1026631#answer-650916
    You can also check the article [["This Connection is Untrusted" error message appears - What to do]] as it provides common troubleshooting steps.
    Let us know if that solves your problem!

  • Drag and drop files on TC then system message : you can't do that...

    Hi everybody,
    I looked for an answer in existing topics but i found nothing which concerns me. So can you help me to solve the following problem :
    Until now, i use my TC 3To as a back-up system with TM (actual free space : more than 2To). Now, in more, i would like to share movies (for example) by "drag & drop" them on my TC. In this way, all my family could watch them on their Mac or PC from the TC. But when i try to drag and drop a file on my TC, the system shows me a message as which I cannot do that. Do you know why?
    Also i can't create a folder next to the existing data one on my TC. I don't know why because everybody say that we can use TC to make TM back-up and to share files at the same time...
    Thanks for your answer and please explain me exactly what i have to do. I know that if i put files on the TC hard drive, i risk to lost them if a problem happen.

    Is Enable File Sharing checked in Airport Utility -> Your Time Capsule -> Edit-> Disks ?
    Hope this helps.

  • Time machine says you can't do that

    Hello everyone,
    I'm trying to use time machine for the first time but to no avail.
    When I try to restore my entire HD it says "Applications' can't be modified or deleted beacuse it's required by Mac OSX''
    I haven't got a clue why.. do I have to boot from an external disc?
    Any ideas?
    many thanks in advance
    val

    do I have to boot from an external disc?
    That is exactly what you should do - or boot from the system installation DVD.
    If you are trying to overwrite the Application Folder while running TM from it, you would be erasing Time Machine while it is running.
    if you have a running System on an external drive and want to restore your system from a Time Machine Backup, I recommand to use the Migration Assistant to do that.
    Boot your MBP from the external volume, then start the Migration Assistant from Application->Utilities (on your external disk) and select to migrate from a Time Machine Backup.

  • Why can't you use airdrop between all apple devices?!just got the iPad air, and was hoping to have the ability to airdrop images from the mac to the iPad....and you can't do that?! c'mon apple!!Whats going on?!

    Is there any way to use Airdrop between Imac and Ipad air?
    I cant quite believe thatthe two are not interlinked!!? or am i missing something? i can pick up iphone on the ipad, ipad on the iphone but pick neither up on the imac or the imac on the ipad or iphone. Can anyone shed any light on this?

    AirDop on the Mac is a different tech than AirDrop on the iPhone and iPad.  At this time, there is no interaction between thew different AirDrops.
    It is a little confusing that they are called the same, but are in fact different.
    Why Apple did this, I can't say.  Maybe in the future it will be possible.

  • You can't do that in Flash Catalyst... or can you? nudge nudge wink wink say no more

    Flash Catalyst secrets

    Is Enable File Sharing checked in Airport Utility -> Your Time Capsule -> Edit-> Disks ?
    Hope this helps.

  • How do U catalog/index items on DVD's/ CD's so that you can find files?

    Please could anyone tell me how I might be able to do this
    as my DVD's and CD's are stacking up in my wallets/folders and it's so hard to locate stuff other than by a vague sense of the year it might have been created.
    I would like something (an application or device) whereby you plug it in to the laptop and then insert your disc into the slot on the same laptop and hey presto it forms an alphabetical catalog of the contents and indexes it by date and so on and so on.
    Gradually this "magical device" would then build up a record of all of my discs ( mostly CD's though probably 10% are DVD's by now) which I would have to number individually in order to identify them.
    I would then be able to search for files/jpgs (using my plug in device) using keywords and even date.
    I have to point out that I am not a geek in the remotest sense but you can probably tell that by the simplicity of my language.
    I just hope that I am not living completely in cloud cuckoo land !
    and that some kind soul responds
    yours in chaos
    Aine
    in Edinburgh

    Thomas ---Thank you for responding.
    I did a google search for the
    G-4/Sawtooth etc that you mentioned but it was not enlightening in any way.
    If anyone else or indeed you could be a little 'clearer' I would very much appreciate it.
    thanks again
    Aine

  • I need to reset my security questions, but can I  message  support  by text and not call or if you can tell me how to reset my questions here that will be great and I don't have a rescue email.

    I need to reset my security questions, but can I  message  support  by text and not call or if you can tell me how to reset my questions here that will be great and I don't have a rescue email.

    If you've forgotten the answers, you can't do that yourself. Click here, tell the iTunes Store staff that you can't call, and see what they say.
    (109704)

  • How do I see a simlock iphone You can see that on the box

    How do I see a simlock iphone
    You can see that on the box

    No. You can't see that on the box. Don't buy iPhones from unauthorized sources and you won't have a problem.

  • I have three email accounts on my iPhone.  one account is now constantly downloading old emails as unread.  I am know into the thousands.  How can I stop that

    I have three email accounts on my iphone.  one of the accounts is now constantly downloading old emails and marking them as unread. I can I stop this from happening?

    iPhone mirrors the content of your accounts. You can turn off that account by going to Settings > Mail, Contacts, Calendars > account > turn off mail. Then access your email account via webmail/website and delete them there. Once you turn on the account again in your iPhone it wont download them all. Otherwise to leave it downloading then mark them all read once downloaded.

  • Very slow and I get this error message a lot: A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: chrome://tavgp/content/libs/include.js:927

    I get this message a lot on starting up Firefox and it also comes at times while I am in the midst of an internet session. Firefox starts very, very slowly just before this message surfaces (10 to 15 minutes before I get the opening page). Is this a problem with MS chrome or with Firefox and what can I do about it?
    Whether I choose "stop script right now" or "continue" , the problem stays with me. I have tried to restart my computer but this often does not work either. Whether I use Firefox 3.6... or 4.0 beta, I get the problem.
    I thought it might be a problem with Sync and I removed this add-on. Still have problem. I also just downloaded McAfee internet security software and I got a message that something called "Radial Point" would interfere with the operation of McAfee. But I cannot find any program or any file in general titled "Radial Point". I have never heard of this before. So, of course, I could not remove this program. Would this be part of my problem?
    I have also had a lot of trouble with internet connection on my AT&T dsl service ("high speed internet" they call it). Could it be a connectivity problem and has this anything to do with Firefox? Some of my AT&T problem was solved when the 4th tech to visit my apartment noticed that I had a "2 line filter" and I have only one phone line and one phone jack. But I still get some loss of connectivity after the latest help from AT&T.
    Thank you for any help you can offer me.

    That is a problem with an AVG extension (Tools > Add-ons > Extensions)
    See:
    * [[Troubleshooting extensions and themes]]

  • I want to change regions and buy a UK TV program.  iTunes says my account is set up in the US and I can't do that.  Why not?

    I just spent the afternoon setting up a new Apple ID because Apple told me I can't buy British programming after I found out how to change regions.  Since I had signed up for a season of a program, I had to wait until it downloaded to change regions.  So the new Apple ID is ready to go!  I change regions! I find my program from the UK - Guess what? Apple says my Apple ID is set up for the US so I can't purchase in the UK?  Is there an answer out there?  Somebody help me, please!    Margold

    What country are you in ? You can only buy from your own country's store - to be able to buy from the UK store you will need to be here in the UK with a UK billing address on your account. If you aren't in the UK then you can try requesting that the series be added to you country's store, but ultimately it's the TV company that will have to grant Apple a license to do so : http://www.apple.com/feedback/itunes.html

Maybe you are looking for

  • IReader installed but wont open Urgent help needed please!

    I have installed Acrobat Reader X. When i try to open files I get a problem saying Microsoft and Adobe have encountered a problem and need to close. I get an option to Debug, Send error report or Dont send. The information which comes up when I look

  • RDS Internal Access

    I have deployed a 2012 RDS farm with 3 servers.   Server01 currently is the Gateway, Session Broker and RDWeb.  The other 2 servers are session hosts (server02 and server03).  We have a reverse proxy and then a firewall that provides secure external

  • Keeping paths when zipping files

    Hi, I have a problem : I have to zip a directory that contains sub-directories, and mail this zip file. I've managed to get all the files into one zip, but when I unzip it (winzip), all the paths are gone ... any ideas that can help me to keep them?

  • Forgot my security answers how to reset, forgot my security answers how to reset

    how to reset security questions & answers, which I forgot the answers.

  • Indexing on regular expression seach for dynamic pattern

    Hello All, Would it be possible to create any index for regular expression search (REGEXP_LIKE) for 'dynamic' pattern? If the pattern is static, then we can create FBI, but is there any way for dynamic patterns? Please advise. Regards, Hari