Warning: Attempt to present whose view is not in the window hierarchy? - xamarin

I'm getting the error when I try to click on the share button. I've put breakpoints into the first line of the On_Share method & they're not being hit.

Related

UFT: Unable to identify Object's parent window though it is being added in Object Repository

I'm working on Calypso windows application where I have to click on a tab within a window. When I was executing the script, I see error message saying that "Cannot find the object's parent window" . I have verified that window properties don't change and no other window is opened with same title.
Please suggest how I can click the tab in the window.
call JavaWindow("Back Office Window for").Activate
JavaWindow("Back Office Window for").JavaTab("Pay Role").Select ("Postings")
THE Window Title is dynamic and keeps changing as shown below
Back Office Window for Trade 4562213 (User: polaris_bouser1)
Try
JavaWindow("title:=Back Office Window for Trade.*").Activate
If this helps, use the same statement in your object repository, using the button next to the property . check the regular expression checkbox.... use this link to quickly go through how to use regular expression youtube.com/watch?v=IdIBhl0p6Fo –

failed to set breakpoint site at 0x9dd200 for breakpoint 197.1: error sending the breakpoint request

I can not make a breakpoint in my xcode.
It print "warning: failed to set breakpoint site at 0x85d5f0 for breakpoint 279.2: error sending the breakpoint request
" all the time
You've most likely deleted the file or the file / folder structure changed such that the breakpoint is now invalid. Switch to the Breakpoint Navigator in Xcode and find (and delete) all the files marked in red. You can even enter "279.2" in the search field below the panel to find out the faulty breakpoint.
If you're unable to create breakpoints still, make sure the file you're adding break point to has been added to the target you're debugging.
In my case I forgot to set initial view controller in storyboard.

VS2010 Adding a breakpoint in RazorGeneratorMvcStart

When I attempt to debug my MVC 3 app a breakpoint is automatically added in the static class RazorGeneratorMvcStart
at in the static Start() method at the line:
ViewEngines.Engines.Insert(0, engine);
When I delete the breakpoint during the run it still comes back and most pages hit this method several times with each call.
Is there a way I can prevent this breakpoint from being added or what is causing the breakpoint to be added here. I have checked the files and it does not show the break point there anywhere I can find. But it gets added to the class every time I hit a view. When not debugging the file does not show the symbol. I tried adding and then removing a breakpoint there as well but that has no effect, a breakpoint is added there the next time a view hit.
If I disable the breakpoint and leave the file open in VS it seems to bypass through out that action. But the next action call the breakpoint returns.
Try Debug -> Delete All Breakpoints (Ctrl + Shift + F9).
Try to delete the breakpoint when the application is NOT running

Unable to get value of the property 'h': object is null or undefined

Trying to debug a Silverlight 5 app in Internet Explorer 9 from VisualStudio 2010 (as soon as I start debugging SL5 from vs2010), I'm getting this error :
Unable to get value of the property 'h': object is null or undefined.
My question is: the App.xaml.cs constructor has the debugging stop red dot, the error pops first then reaches this debugging point, what is being executed before?
In VS2010 I click Debug > Start Debugging then I get the error window "Webpage Error" as tittle, the red x Do you want to debug this webpage? bla,bla, on the white area is the
Line: 13 Error: Unable to get value of the property 'h': object is null or undefined.
thanks
to fix the error by the way...you can try to logout from the running page on IE. (just go to upper right corner click on the name signed in as and (from the drop menu) click logout.
What happened is that I log to gmail and click on the "stay signed in". if I sign back in on the running page the error pops again.
Still would like to know the answer to my question,tho.

Xcode 4 doesn't show the exception message

I had a xib file with an old outlet connected. That would crash and set a breakpoint on the line pushing the view controller with :
Catchpoint 2 (throw)Pending breakpoint 1 - "objc_exception_throw" resolved
Not very helpful, I remember in XCode 3 I had something like "an outlet is not connected"
How do I get that back ?
edit : if I check "automatically continue after evaluating actions", I get this message :
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<OrderController 0x7942760> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key table.'
*** First throw call stack:
(0x16e1052 0x2182d0a 0x16e0f11 0x4cb032 0x43cf7b 0x43ceeb 0x457d60 0x99991a 0x16e2e1a 0x164c821 0x99846e 0x83fe2c 0x8403a9 0x8405cb 0x840941 0x85247d 0x85266f 0x85293b 0x8533df 0x853986 0xcf67dbd 0x8535a4 0x3a3da 0x841fbf 0x8422d4 0x8425d7 0x842785 0x85c0a5 0x842730 0x78b5ea 0x16b59ce 0x164c670 0x16184f6 0x1617db4 0x1617ccb 0x18f7879 0x18f793e 0x77aa9b 0x276d 0x1fd5)
terminate called throwing an exceptionCurrent language: auto; currently objective-c
(gdb)
which is better than nother, but the breakpoint stops on main.m ! Here is the current setup of my breakpoint
Mystery solved. At least for me, hitting 'continue' a couple of times allowed the error to be printed to the console.
The issue (in this case) was having a couple of other custom breakpoints set (objc_exception_throw, -[NSException raise]).
Enabling "automatically continue after evaluating" for BOTH allowed the process to be killed without manual intervention, somewhere around which time the detailed error message was printed to the console.
Hope this helps.
If you have multiple projects, make sure that the breakpoint is active for the correct project. I recommend using a Xcode 4 workspace in this case and assign the global exceptions breakpoint to the workspace. You can do that by right-clicking the breakpoint in the Breakpoints Navigator pane and select "Move Breakpoint to…"

Resources