Sebastien,

I just figured that out. I tried different linker options trying to fix the 
debugging problem, and it never got switched back. Also noticed that all my 
provisioning profiles appeared to have disappeared (possibly with the XCode 
Upgrade) so am experiencing a few oddities at the moment.

Thanx for the quick response.

Dino

-----Original Message-----
From: Sebastien Pouliot [mailto:[email protected]] 
Sent: Wednesday, April 04, 2012 1:21 PM
To: Dean Cleaver
Cc: [email protected]
Subject: Re: [MonoTouch] Missing data in web services

Hello Dean,

By default the simulator use "Don't link" while device builds use "Link SDK" 
and both should work for your own serializable types.

However if you changed this to "Link all" then it's possible that the linker 
will remove unused members of the Response class. You can mark them with a 
[Preserve] attribute (and continue linking everything), use --linkskip on the 
assembly that defines this type, or go back to use "Link SDK".

Sebastien

On Wed, Apr 4, 2012 at 2:05 PM, Dean Cleaver 
<[email protected]> wrote:
> I've got a major problem I can't work out. I have a simple class 
> returned from my web services:
>
>
>
> [Serializable]
>
> public class Response
>
> {
>
>     public Response()
>
>     {
>
>     }
>
>
>
>     public ResponseCode Code { get; set; }
>
>     public string Data { get; set; }
>
>     public string Description { get; set; }
>
> }
>
>
>
> In the simulator, it returns my "Data" correctly, but on the devices 
> it's suddenly stopped, and Data is now null (can't test all instances 
> because I can't log in any more because Data is null). This appears to 
> have only happened in the last few hours, as I could log in this morning.
>
>
>
> As I said, simulator works fine, and a breakpoint in my server shows 
> that it is returning the correct Data to the devices, but it never 
> gets there. Data is always null on the devices now.
>
>
>
> Any ideas where to even start?
>
>
>
> Dino
>
>
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to