Closed patrickGoley closed 10 years ago
Did you close this issue because you found the source of the crash and were unblocked?
Hi, yes I realized the source of this issue is that I wasn't holding a strong reference to the client and it was getting deallocated before the login UI completed.
I am attempting to authenticate Microsoft users using the
LiveConnectClient
class. I have setup my implementation exactly as is done in the examples. Upon a successful login, the login UI is dismissed, and then my application crashes with a Bad Access exception. Enabling NSZombies, I see the following error in the debugger on crashing:[LiveAuthRequest authDialogDisappeared]: message sent to deallocated instance 0xdde5cc0
In one particular test I got a slightly different exception message, though my code hadn't changed:
[_NSCFDictionary authDialogDisappeared]: unrecognized selector sent to instance
I'm guessing that this only occurred because a dictionary happened to be allocated at the address of the recently deallocated LiveAuthRequest. Either way, this is a fatal error that is halting my integration of this SDK.