Hello Rick,

I'm glad you could fix your issue. Generics and value-types don't play
well together when AOT is used (and that's required to execute on iOS
devices) [1]. OTOH we're often able to workaround the limitations so
don't hesitate to fill bug reports (with a test case) [2] for them.

I encourage you to add your own answer to your stackoverflow question
and mark it answered (for anyone else hitting the same issue in the
future).

Regards,
Sebastien

[1] http://docs.xamarin.com/ios/about/limitations
[2] http://bugzilla.xamarin.com

On Wed, Oct 26, 2011 at 9:08 AM, makeone <rmakers...@gmail.com> wrote:
> Hey Sebastien,
> I was able to figure out what was going on. Using '<int>' in conjunction
> with 'FirstOrDefault' was my biggest issues i.e. 'ar curSchema =
> CSDatabase.RunQuery<int>("select max(VersionNbr) from
> schema_version").FirstOrDefault();'
> Next was adding the argument for the trampolines and only linking monotouch
> sdk during build.
> Thanks,
> -Rick
>
> On Tue, Oct 25, 2011 at 10:00 PM, Sebastien Pouliot [via MonoTouch] <[hidden
> email]> wrote:
>>
>> Hello Rick,
>>
>> I think your email was stuck in the moderation queue.
>>
>> If not then my advice from stackoverflow [1] still holds. You'll need
>> to provide more data to enable us to help you.
>>
>> [1]
>> http://stackoverflow.com/questions/7840603/monotouch-app-will-not-launch-on-device-but-works-fine-in-simulator/7840990#7840990
>>
>> Regards,
>> Sebastien
>>
>> On Thu, Oct 20, 2011 at 1:57 PM, makeone <[hidden email]> wrote:
>> > I have an iPad application that I have been developing on simulator just
>> > fine
>> > (xcode 4, md 2.8, mt 5). However, when I try to deploy to the device the
>> > application crashes while launching. There are no crash logs in xcode
>> > and
>> > the console window is not displaying any errors.
>> >
>> > However, when I run monotouch from the terminal I get the following
>> > output:
>> >
>> > Rich-MacBook-Pro:~ rich3$ /Developer/MonoTouch/usr/bin/mtouch
>> >
>> > --debugsim=$/private/var/mobile/Applications/31A80564-0CEF-4F4B-AE9D-6A1938510393
>> > Invalid SDK specified: 3.2
>> > Stacktrace:
>> >
>> >  at (wrapper managed-to-native)
>> > MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_intptr_intptr_bool
>> > (intptr,intptr,intptr,intptr,bool) <0xffffffff>
>> >  at MonoTouch.Foundation.NSObject.Dispose (bool) <0x0009f>
>> >  at MonoTouch.Foundation.NSObject.Finalize () <0x00016>
>> >  at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__
>> > (object,intptr,intptr,intptr) <0xffffffff>
>> >
>> > Native stacktrace:
>> >
>> >        0   mtouch                              0x000ec183 WriteZStream +
>> > 955779
>> >        1   mtouch                              0x0001bd4f WriteZStream +
>> > 102735
>> >        2   libsystem_c.dylib                   0x9020459b _sigtramp + 43
>> >        3   ???                                 0xffffffff 0x0 +
>> > 4294967295
>> >        4   Foundation                          0x9a0603de
>> > -[NSObject(NSThreadPerformAdditions)
>> > performSelectorOnMainThread:withObject:waitUntilDone:] + 160
>> >        5   ???                                 0x027d5884 0x0 + 41769092
>> >        6   ???                                 0x027d0e40 0x0 + 41750080
>> >        7   ???                                 0x027d559f 0x0 + 41768351
>> >        8   ???                                 0x025e5551 0x0 + 39736657
>> >        9   mtouch                              0x001a76c4 WriteZStream +
>> > 1723076
>> >        10  mtouch                              0x001a968a WriteZStream +
>> > 1731210
>> >        11  mtouch                              0x001a98c4 WriteZStream +
>> > 1731780
>> >        12  mtouch                              0x002735c1 WriteZStream +
>> > 2558401
>> >        13  mtouch                              0x00273677 WriteZStream +
>> > 2558583
>> >        14  mtouch                              0x002b8b0e WriteZStream +
>> > 2842382
>> >        15  mtouch                              0x002f31d8 WriteZStream +
>> > 3081688
>> >        16  libsystem_c.dylib                   0x901aced9 _pthread_start
>> > + 335
>> >        17  libsystem_c.dylib                   0x901b06de thread_start +
>> > 34
>> >
>> > Debug info from gdb:
>> >
>> > /tmp/mono-gdb-commands.1eukTW:1: Error in sourced command file:
>> > unable to debug self
>> >
>> > =================================================================
>> > Got a SIGSEGV while executing native code. This usually indicates
>> > a fatal error in the mono runtime or one of the native libraries
>> > used by your application.
>> > =================================================================
>> >
>> > Abort trap: 6
>> >
>> > --
>> > View this message in context:
>> > http://monotouch.2284126.n4.nabble.com/Monotouch-App-will-not-launch-on-Device-but-works-in-Simulator-tp3922934p3922934.html
>> > Sent from the MonoTouch mailing list archive at Nabble.com.
>> > _______________________________________________
>> > MonoTouch mailing list
>> > [hidden email]
>> > http://lists.ximian.com/mailman/listinfo/monotouch
>> >
>> _______________________________________________
>> MonoTouch mailing list
>> [hidden email]
>> http://lists.ximian.com/mailman/listinfo/monotouch
>>
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://monotouch.2284126.n4.nabble.com/Monotouch-App-will-not-launch-on-Device-but-works-in-Simulator-tp3922934p3938979.html
>> To unsubscribe from Monotouch App will not launch on Device but works in
>> Simulator, click here.
>
> ________________________________
> View this message in context: Re: Monotouch App will not launch on Device
> but works in Simulator
> Sent from the MonoTouch mailing list archive at Nabble.com.
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
_______________________________________________
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to