Re: [MonoTouch] App size (MT3 vs MT4)
Hello, Both MonoTouch 3.x and 4.x includes the MonoLinker which can shrink your application. The latest (Xamarin's) releases of MonoTouch 4 also includes several enhancements. See http://spouliot.wordpress.com/2011/07/21/smaller-monotouch-applications/ for a sample case. However it's very hard to predict the gain you can expect for your applications. Everything depends on: * what's being used by your application; and * if the recent enhancements will apply to your application (or not). That being said I encourage you (and others) to share their results :-) and fill bug reports if anything goes wrong with any of the linker options. Thanks, Sebastien p.s. you should consider using (or at least testing) the latest MT 4 anyway ;-) On Wed, Aug 10, 2011 at 2:36 PM, joclem cleme...@exactmodus.com wrote: I've read that MT4 could reduce the size of apps (from miguel's tweet I think). Does anybody has observe a size diminution when compiling with MT4 vs MT3? I'm not ready to install MT4 yet (i'm in a beta stage). -- View this message in context: http://monotouch.2284126.n4.nabble.com/App-size-MT3-vs-MT4-tp3733810p3733810.html 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
Re: [MonoTouch] Supporting only Arm v7 builds for the Ipad
Yes. 1. right click your project, select Options menu 2. go to iPhone Build Options, select Avanced tab 3. click Use LLVM optimizinf compiler checkbox 4. select ARMv7 in the combobox 5. (optionallly) click Use Thumb-2... to get smaller binaries (at the expense of some performance). I do not think fat binairies affects (much) the memory footprint (measure, measure, measure ;-) - but it sure won't double it. Sebastien Le 2011-08-15 à 07:04, Jon Hopkins jon.hopk...@bgagroup.net a écrit : Hi, Is there a way to target just Armv7 for IPad applications? There is no need to be backwards compatible in this Case, but I just see Armv6 + Armv7 which doubles the app size. Does this affect memory footprint size as well? Thanks, Jon ___ 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
Re: [MonoTouch] app exits whenever i try to enter some text
Hello, Please take the time to fill a bug report and include a small, self-contained, test case and someone will have a look into the issue, http://bugzilla.xamarin.com Thanks! Sebastien On Mon, Aug 22, 2011 at 9:05 PM, matthieugd matth...@live.com wrote: Got the same problem, fixed it by disabling the keyboard options in the Settings screen. Version info: MD 2.4.2 / MT 4.0.4.1 (eval) / iOS 4.3 / Xcode 3 / OSX Lion Matthieu -- View this message in context: http://monotouch.2284126.n4.nabble.com/app-exits-whenever-i-try-to-enter-some-text-tp3757809p3761654.html 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
Re: [MonoTouch] monotouch-fixes.dylib (Problem on when running from MonoDevelop)
Hello John, We will need more information. The message about monotouch-fixes.dylib is not the source of your crash. This is a fix for something else (OpenGL signals wrt simulator IIRC). GDB will complain about it but you'll only see that if your application crash (elsewhere). Please fill a bug report and include the full stack trace of your crash. Note that we'll likely need a test case to reproduce the issue. Regards, Sebastien On Sun, Aug 14, 2011 at 9:30 PM, jsonmez john.son...@gmail.com wrote: Hi, Just starting out on MonoTouch after working in Objective-C for some time. Trying to create a universal app and I am running into a problem that is stopping me cold: dyld: could not load inserted library: /Users/sonmez56/Library/Application Support/iPhone Simulator/4.3.2/Applications/1FA9DB7A-34E8-40F1-B103-DA06F9BD7026/Peekaboo.app/monotouch-fixes.dylib This is happening on a button click that I have created a delegate for. If I run either debugger or just run as from MonoDevelop, when I click the button app crashes with that error. I immediately rerun the app, (just by clicking the icon in the simulator) and everything is fine. Really want to be able to debug, so I am hoping for a solution to this. Let me know if I need to provide more info, will gladly do so. Thanks, John Sonmez http://simpleprogrammer.com -- View this message in context: http://monotouch.2284126.n4.nabble.com/monotouch-fixes-dylib-Problem-on-when-running-from-MonoDevelop-tp3743710p3743710.html 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
Re: [MonoTouch] Linking problem target iphone
Oops, I had already answered but forgot the c.c. the list. Here was my answer (since it could help other people too). Hello Chuck, Are you linking in the simulator builds ? By default simulator builds do not use the linker (so the builds are faster). The device builds defaults are to Link SDK assemblies to make your app smaller (and also faster to build since AOing can be slow). My guess is that you're missing a reference and that does not show until the linker is involved (only in the device builds). You can try disabling the linker on your device build to confirm this. If you're linking your simulator builds (and they work) then try to compare your project settings (like defines) between your Debug|Simulator and Debug|iPhone (or Release|*). Sebastien On Wed, Aug 24, 2011 at 6:05 PM, Jeff Stedfast j...@xamarin.com wrote: Hi Chuck, Did you ever figure this out? If not, I've added Sebastien to the Cc since he's probably the best person to be able to answer this. Jeff On Wed, Aug 17, 2011 at 8:42 AM, chuck ch...@more-projects.de wrote: Linking an app for the real iphone gives an error where there is no error linking for the simulator, any hints where to look? Chuck *Compiling to native code /Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -dev /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app -r=/Developer/MonoTouch/usr/lib/mono/2.1/System.dll -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.SDK.Monotouch.dll -r=/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.SDK.ZLib.Monotouch.dll -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.InternetPack.Monotouch.dll -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/SBB-dlls/SecureBlackbox.XMLSecurity.dll -r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll -r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll -r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll -r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.Charsets.dll -r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.dll -r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.PGP.dll -r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.XML.dll -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Working/MPWebCommon_iPhone02/MPWebCommon_iPhone/bin/Debug/MPWebCommon_iPhone.dll -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Working/MyContractModelsLib_iPhone02/MyContractModelsLib_iPhone/bin/Debug/MyContractModelsLib_iPhone.dll -debug -linksdkonly -sdk=4.3 -v -v -v /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe Framework is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk Copied /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe to /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app/MyContract24.exe Linking SDK only for assembly /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe into /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app Could not link assemblies: Mono.Linker.ResolutionException: Can not resolve reference: System.Boolean SBRDN.__Global::NonstrictCompareRDNAsStrings(SBRDN.TElRelativeDistinguishedName,SBRDN.TElRelativeDistinguishedName) at Mono.Linker.Steps.MarkStep.ResolveMethodDefinition (Mono.Cecil.MethodReference method) [0x0] in filename unknown:0 at Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference reference) [0x0] in filename unknown:0 at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction instruction) [0x0] in filename unknown:0 at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) [0x0] in filename unknown:0 at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x0] in filename unknown:0 at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x0] in filename unknown:0 at Mono.Linker.Steps.MarkStep.Process () [0x0] in filename unknown:0 at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x0] in filename unknown:0 at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x0] in filename unknown:0 at MonoTouch.Tuner.Linker.Run (Mono.Linker.Pipeline pipeline, Mono.Linker.LinkContext context) [0x0] in filename unknown:0 * -- View this message in context: http://monotouch.2284126.n4.nabble.com/Linking-problem-target-iphone-tp3749838p3749838.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___
Re: [MonoTouch] RSA key pair generation
Hello, On Thu, Aug 25, 2011 at 3:16 AM, Nic Wise n...@fastchicken.co.nz wrote: This could be worth a look: http://iphonedevelopment.blogspot.com/2009/04/crypto-library.html That looks like an ObjectiveC wrapper. Since CommonCrypto is a C-based API it would be easier to p/invoke directly. however, it also could be that generating a 2048 bit key is just a LONG operation, which takes a while on a slow CPU how long does it take on the desktop (ie, same code in a commandline app)? On Wed, Aug 24, 2011 at 22:15, monojobs sj...@rocketmail.com wrote: Hello, I am currently trying to generate a RSA key pair for an app I am working on. The issue is that using RSACryptoServiceProvider (which internally uses RSAManaged) is horribly slow. Generating even a small 512 bit key pair takes ~7 seconds on device. 1024 bit takes ~15s. The big issue is that 2048 bit takes minutes. This seems be a problem with how RSAManaged is implemented specifically how BigInteger is used. I realize that generating a RSA key pair is an expensive operation, however, the 2048 bit case is not usable. Time will vary a lot depending on your device. I'm not aware (did not really check) of any RSA-accelerated iOS devices (like some have accelerated support for AES and SHA1). Other devices, like smartcards, generally use specialized hardware to ensure such operations are fast enough. Does anyone know of any Mono bindings to native crypto library? I have tried to use MonoTouch.Security.SecKey.GenerateKeyPair, however, it always returns with a SecStatusCode.Unimplemented. There is a good possibility that I am using it incorrectly as well, so if anyone has an example it would be much appreciated. Fill a bug report, with an attached test case, and we'll look into the 'Unimplemented' bit. Sebastien Thanks! -- View this message in context: http://monotouch.2284126.n4.nabble.com/RSA-key-pair-generation-tp3766685p3766685.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ 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
Re: [MonoTouch] Can't compile for the phone
Yep, it's SDK - that's where the gcc compilers we use are provided. Every cases, so far, were from iOS 5 beta 6 (SDK). Please let us know if this is different for you! Sebastien p.s. my original answer is blocked for moderation since it included the original stack trace (which is HUGE ;-) On Thu, Aug 25, 2011 at 11:53 AM, Dean Cleaver dean.clea...@kleverlogic.com wrote: Yeah – he said it was something to do with iOS5? I presume he means the latest XCode with the latest iOS5 beta SDK – surely the iOS on my phone can’t have an effect on it even if it’s not plugged in! Dino From: Jeff Stedfast [mailto:j...@xamarin.com] Sent: Thursday, August 25, 2011 10:46 AM To: Dean Cleaver Cc: Forums, MonoTouch Subject: Re: [MonoTouch] Can't compile for the phone Dean, Aha, good to know. So I guess this was the infamous gcc vs gcc-4.2 bug? Happy hacking, Jeff On Thu, Aug 25, 2011 at 11:32 AM, Dean Cleaver dean.clea...@kleverlogic.com wrote: Jeff, Sebastien pointed me to this workaround: http://bugzilla.xamarin.com/show_bug.cgi?id=346 see comment #7 Dino From: Jeff Stedfast [mailto:j...@xamarin.com] Sent: Thursday, August 25, 2011 10:23 AM To: Dean Cleaver Cc: Forums, MonoTouch Subject: Re: [MonoTouch] Can't compile for the phone Hi Dean, Unfortunately I don't have any idea what is going wrong. Maybe it has something to do with the CurrentDirectory value being empty? I'm not sure what would cause that or if it is even the cause of the problem. Could you submit a bug report? Thanks, Jeff 2011/8/24 Dean Cleaver dean.clea...@kleverlogic.com Getting this error – any ideas? This happened both in MD 2.6RC2 with MT 4.1 and MD 2.4.2 with MT 4.0.5. Dino ___ 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
Re: [MonoTouch] System.MissingMethodException: Method not found: 'System.Type.op_Equality'.
Hello Guido, System.Type.op_Equality is new in .NET 4.0 and (iirc) is used by the compiler. So your /Users/guivho/Mono/MCSubs/bin/Debug/MCSubs.dll is likely compiled against .NET 4.0. MonoTouch has only partial support for 4.0 (otherwise it looks like the Silverlight profile). To fix this you should recompile this assembly using the mscorlib.dll from MonoTouch - that will also trap any other API differences (and further similar issues). Regards, Sebastien On Fri, Aug 26, 2011 at 8:39 AM, Guido Van Hoecke gui...@gmail.com wrote: MonoDevelop 2.6RC1, Mono framework 2.10.5_0, monotouch 4.0.6 crash with following stack trace: Missing method System.Type::op_Equality(Type,Type) in assembly /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll, referenced in assembly /Users/guivho/Mono/MCSubs/bin/Debug/MCSubs.dll Unhandled Exception: System.MissingMethodException: Method not found: 'System.Type.op_Equality'. at MCSubs.MC.P (System.Object[] oa) [0x0] in /Users/guivho/Mono/MCSubs/MC.cs:94 at YesAndNo.PlayYesAndNo.ViewWillAppear (Boolean animated) [0x0] in /Users/guivho/Mono/YesAndNo/PlayYesAndNo.xib.cs:44 at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSend_IntPtr_bool (intptr,intptr,intptr,bool) at MonoTouch.UIKit.UINavigationController.PushViewController (MonoTouch.UIKit.UIViewController viewController, Boolean animated) [0x0001c] in /Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UINavigationController.g.cs:123 at YesAndNo.TableViewSource.NavRowSelected (MCiOSSubs.NavItem navItem) [0x00098] in /Users/guivho/Mono/YesAndNo/TableViewSource.cs:222 at YesAndNo.TableViewSource.RowSelected (MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) [0x00051] in /Users/guivho/Mono/YesAndNo/TableViewSource.cs:191 at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr) at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIApplication.cs:26 at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x0] in /Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIApplication.cs:31 at YesAndNo.Application.Main (System.String[] args) [0x0] in /Users/guivho/Mono/YesAndNo/Main.cs:15 [ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method not found: 'System.Type.op_Equality'. at MCSubs.MC.P (System.Object[] oa) [0x0] in /Users/guivho/Mono/MCSubs/MC.cs:94 at YesAndNo.PlayYesAndNo.ViewWillAppear (Boolean animated) [0x0] in /Users/guivho/Mono/YesAndNo/PlayYesAndNo.xib.cs:44 at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSend_IntPtr_bool (intptr,intptr,intptr,bool) at MonoTouch.UIKit.UINavigationController.PushViewController (MonoTouch.UIKit.UIViewController viewController, Boolean animated) [0x0001c] in /Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UINavigationController.g.cs:123 at YesAndNo.TableViewSource.NavRowSelected (MCiOSSubs.NavItem navItem) [0x00098] in /Users/guivho/Mono/YesAndNo/TableViewSource.cs:222 at YesAndNo.TableViewSource.RowSelected (MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) [0x00051] in /Users/guivho/Mono/YesAndNo/TableViewSource.cs:191 at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr) at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIApplication.cs:26 at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x0] in /Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIApplication.cs:31 at YesAndNo.Application.Main (System.String[] args) [0x0] in /Users/guivho/Mono/YesAndNo/Main.cs:15 In the current configuration the crash occurs in a library that was built for '.net framework 4', and the mt project targets runtime version 'Mono for iphone'. (This library is frequently used in other c# projects, asp.net as well as console projects). I was a bit hesitative whether this was a valid combination. To remove my doubts about this setup, I removed the reference to the external library, and linked the libraries' sources directly in the monotouch project. Same crash though, so apparently something is rotten in the state of ... ___ 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
Re: [MonoTouch] Installation failed: AMDeviceInstallApplication...
Hello, Such errors means your device refused to install the application after its transfer. Please open a bug report on http://bugzilla.xamarin.com * Include all the exact versions numbers (i.e. iOS device, MonoTouch, MonoDevelop, XCode, OSX) * The device logs about your application installation, e.g. a) start '/Developer/MonoTouch/usr/bin/mtouch --logdev' from a terminal window b) build and install your application on your device c) on you get the error go back to the terminal window and copy the logs lines (related to the installation) and attach them to the bug report. Sebastien On Sun, Aug 28, 2011 at 8:59 AM, dermotos m...@dermotos.com wrote: EDIT: Also did reset of phone and restarted computer, deleted app that was deployed so it gets fully reinstalled. Still nothing. :-( -- View this message in context: http://monotouch.2284126.n4.nabble.com/Installation-failed-AMDeviceInstallApplication-tp3774352p3774359.html 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
[MonoTouch] Fwd: Are there any known issues with WebClient and SSL?
I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all, I will hit reply all eventually and, with a bit of luck, the right email address ;-) -- Forwarded message -- From: Sebastien Pouliot sebast...@xamarin.com Date: Wed, Aug 24, 2011 at 2:52 PM Subject: Re: [MonoTouch] Are there any known issues with WebClient and SSL? To: Nic Wise n...@fastchicken.co.nz Hello Nic, You're seeing this because recent monotouch release enabled the E:all tracing (i.e. it's harmless and has always been there). This E:all is useful for debugging but that also means _every_ exceptions are being logged, even the ones that are normal (catched and processed in the BCL). In this specific case MonoTouch inherits the code to check the certificate stores (used on Linux, Windows and MacOSX...). However shared (machine) stores do not (and cannot) exists in iOS so the check fails and execution continue normally. I have some code to remove that (and a bit more) code from executing. It needs a bit more testing but once done it should all go away :-) Sebastien On Wed, Aug 24, 2011 at 2:14 PM, Nic Wise n...@fastchicken.co.nz wrote: I'm still working out whats going on, but i'm getting this in the debug log (in the simulator): (NOTE: the code works. It's just _messy_ in the output logs) [0xb0981000:] EXCEPTION handling: System.Security.Cryptography.CryptographicException: Store Root doesn't exists. Threadpool worker tid=0x0xb0981000 this=0x0xb4555e8 thread handle 0x11d state : not waiting owns () at System.Security.Cryptography.X509Certificates.X509Store.Open (System.Security.Cryptography.X509Certificates.OpenFlags) [0x000ae] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Store.cs:224 at System.Security.Cryptography.X509Certificates.X509Chain.get_LMRootStore () [0x00018] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:280 at System.Security.Cryptography.X509Certificates.X509Chain.get_Roots () [0x00011] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:251 at System.Security.Cryptography.X509Certificates.X509Chain.get_CertificateCollection () [0x00021] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:336 at System.Security.Cryptography.X509Certificates.X509Chain.FindParent (System.Security.Cryptography.X509Certificates.X509Certificate2) [0x0] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:414 at System.Security.Cryptography.X509Certificates.X509Chain.BuildChainFrom (System.Security.Cryptography.X509Certificates.X509Certificate2) [0x00011] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:356 at System.Security.Cryptography.X509Certificates.X509Chain.Build (System.Security.Cryptography.X509Certificates.X509Certificate2) [0x00017] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:113 at System.Net.ServicePointManager/ChainValidationHelper.ValidateChain (Mono.Security.X509.X509CertificateCollection) [0x0009d] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/ServicePointManager.cs:467 at Mono.Security.Protocol.Tls.SslClientStream.OnRemoteCertificateValidation2 (Mono.Security.X509.X509CertificateCollection) [0xd] in /Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:423 at Mono.Security.Protocol.Tls.SslStreamBase.RaiseRemoteCertificateValidation2 (Mono.Security.X509.X509CertificateCollection) [0x0] in /Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslStreamBase.cs:210 at Mono.Security.Protocol.Tls.SslClientStream.RaiseServerCertificateValidation2 (Mono.Security.X509.X509CertificateCollection) [0x0] in /Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:446 at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates (Mono.Security.X509.X509CertificateCollection) [0x0001f] in /Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:198
Re: [MonoTouch] Are there any known issues with WebClient and SSL?
Right! I had looked at the mail settings options, but not in the Labs section. Thanks Sebastien On Wed, Aug 31, 2011 at 3:54 AM, Nic Wise n...@fastchicken.co.nz wrote: Sebastian said there was something left turned on in 4.1 which caused it. Next version was going to remove it. It was just logging, which is a PITA, but not a show stopper :) And Sebastian, there is a default to reply all in the gmail web interface :) On Tue, Aug 30, 2011 at 23:12, Jeff Stedfast j...@xamarin.com wrote: Hi Nic, Did you ever figure this out? If not, could you open a bug report at http://bugzilla.xamarin.com? Hopefully Sebastien will have some ideas. Thanks, Jeff On Wed, Aug 24, 2011 at 2:14 PM, Nic Wise n...@fastchicken.co.nz wrote: I'm still working out whats going on, but i'm getting this in the debug log (in the simulator): (NOTE: the code works. It's just _messy_ in the output logs) [snip] the psudeocode is: new up a WebClient set credentials and 2 headers accept any cert: ServicePointManager.ServerCertificateValidationCallback = (sender, cert, chain, ssl) = true; then webrequest.downloadstring(https://url;) NOW: despite all that crap thrown out into the logs, it works. Code is fine, function is fine, it just throws out a load of stack dumps Jeff? Cheers Nic -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ 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
Re: [MonoTouch] Get error when building distribution build
Hello, On Thu, Sep 1, 2011 at 9:01 AM, Anita H. bluuema...@gmail.com wrote: Hi, I am getting the following error when building the distribution build of my app: Error: Compressing the resources failed: Unable to rename /Users/Anita/Projects/LittleFarmerLite/LittleFarmerLite/bin/iPhone/Distribution/LittleFarmerLite.app/Default-pngcrush.png to /Users/Anita/Projects/LittleFarmerLite/LittleFarmerLite/bin/iPhone/Distribution/LittleFarmerLite.app/Default.png at /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/iphoneos-optimize line 53. (LittleFarmerLite) I don't get it when building the Debug|iPhone it iPhoneSimulator builds. I have no idea what's causing this. Has anyone seen this before? pngcrush is only called when you build for devices (not for the simulator). I would suspect this is a file permission issue. Check the permissions on /Users/Anita/Projects/LittleFarmerLite/LittleFarmerLite/bin/iPhone/Distribution/LittleFarmerLite.app/Default.png Regards, Sebastien ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Condition !is_wrapper not met
Hello Pavel, Please fill a bug report at http://bugzilla.xamarin.com and attach the full build log. Thanks Sebastien On Fri, Sep 2, 2011 at 7:44 AM, Pavel Sich pavel.s...@me.com wrote: Am receiving error: Assertion at ../../../../mono/mini/aot-runtime.c:2195, condition `!is_wrapper' not met When building for the device with AdHoc distribution. Does anyone know what it is? -Pavel ___ 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
Re: [MonoTouch] Method not found: 'MonoTouch.Foundation.RegisterAttribute..ctor'.
Hello Guido, It's a good habit to rebuild your bindings when you update MonoTouch. Other different issues, in Messaging, have been reported in the past. Regenerating the bindings fix them too. Regards, Sebastien On Mon, Sep 5, 2011 at 9:13 AM, Guido Van Hoecke gui...@gmail.com wrote: On Sat, Sep 3, 2011 at 20:44, Guido Van Hoecke gui...@gmail.com wrote: I'm trying to use 'dalexsoto / Monotouch-AdMob-Bindings' available at https://github.com/dalexsoto/Monotouch-AdMob-Bindings/ but the I'm getting a System.MissingMethodException: Method not found: 'MonoTouch.Foundation.RegisterAttribute..ctor'. This is no longer an issue. The problem disappeared when Using a libGoogleAdMobAds.dll built on my own iMac with its current (latest) mono, monotouch and monodevelop versions. Unfortunately I don't have the timne right now to drill down into it to more accurately define the culprit. Guido ___ 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
Re: [MonoTouch] Drawing text containing an apostrophe
Hello, I think you're simply running into encoding issues. Some quotes characters are not 'basic' (the old 7bits ;-) ASCII and might not be defined in MacRoman. See http://stackoverflow.com/questions/7280002/coregraphics-special-characters-not-drawn-correctly about how to use UIKit instead of CoreGraphics to draw text. Regards, Sebastien On Mon, Sep 5, 2011 at 4:46 PM, JohnnyNoMates m...@johnhair.com wrote: Wow, turns out its not every EKEvent title that contains an apostrophe appears this way, just some. Gets stranger and stranger... -- View this message in context: http://monotouch.2284126.n4.nabble.com/Drawing-text-containing-an-apostrophe-tp3791636p3792101.html 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
Re: [MonoTouch] Error on deploy to iOS5 B7
Hello, Could you fill a bug report in bugzilla.xamarin.com ? Also please include whether this occurs on this single project or for any project. Thanks, Sebastien On Tue, Sep 6, 2011 at 11:44 AM, Dean Cleaver dean.clea...@xceptionsoftware.com wrote: Hi, I’m getting this the second time I try to deploy to a device with iOS5 B7 – works once, then won’t deploy again. I have to reboot the phone. I figured I’d post it because of the “AMDeviceStartService” – I wondered if on deploy you’re starting some service that on prior iOS5 versions used to stop, but now doesn’t? Might even be a bug in iOS5. Dino Unhandled Exception: System.Exception: AMDeviceStartService returned: 0xe87f at MonoTouch.Installation.Device.StartService (MonoTouch.CoreFoundation.CFString) 0x000af at MonoTouch.Installation.Installer.UploadApplication (object,System.EventArgs) 0x0036f at MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info) 0x0006e at (wrapper native-to-managed) MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info) 0x0003d at (wrapper managed-to-native) MonoTouch.CoreFoundation.CFRunLoop.CFRunLoopRun () 0x3 at MonoTouch.CoreFoundation.CFRunLoop.Run () 0xd at MonoTouch.Installation.Installer.InstallApplication (string) 0x000c5 at MTouch.Main (string[]) 0x032d1 [ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: AMDeviceStartService returned: 0xe87f at MonoTouch.Installation.Device.StartService (MonoTouch.CoreFoundation.CFString) 0x000af at MonoTouch.Installation.Installer.UploadApplication (object,System.EventArgs) 0x0036f at MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info) 0x0006e at (wrapper native-to-managed) MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info) 0x0003d at (wrapper managed-to-native) MonoTouch.CoreFoundation.CFRunLoop.CFRunLoopRun () 0x3 at MonoTouch.CoreFoundation.CFRunLoop.Run () 0xd at MonoTouch.Installation.Installer.InstallApplication (string) 0x000c5 at MTouch.Main (string[]) 0x032d1 The application was terminated by a signal: SIGHUP ___ 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
Re: [MonoTouch] Error on deploy to iOS5 B7
Hello Nic, Could you add this into: http://bugzilla.xamarin.com/show_bug.cgi?id=655 and also details on how using OTA (for the iOS updates?) seems to change the behavior of uploading applications from MonoDevelop to the devices. Thanks Sebastien On Wed, Sep 7, 2011 at 3:01 AM, Nic Wise n...@fastchicken.co.nz wrote: I've found that if I unplug/replug the phone, or turn off WIFI synching, it works fine. Been happening with B4-7 so far. OTA updates make it work, restoring/upgrading from a file (ie, not OTA, the old way) makes things a lot better. On Tue, Sep 6, 2011 at 18:08, Sebastien Pouliot sebast...@xamarin.com wrote: Hello, Could you fill a bug report in bugzilla.xamarin.com ? Also please include whether this occurs on this single project or for any project. Thanks, Sebastien On Tue, Sep 6, 2011 at 11:44 AM, Dean Cleaver dean.clea...@xceptionsoftware.com wrote: Hi, I’m getting this the second time I try to deploy to a device with iOS5 B7 – works once, then won’t deploy again. I have to reboot the phone. I figured I’d post it because of the “AMDeviceStartService” – I wondered if on deploy you’re starting some service that on prior iOS5 versions used to stop, but now doesn’t? Might even be a bug in iOS5. Dino Unhandled Exception: System.Exception: AMDeviceStartService returned: 0xe87f at MonoTouch.Installation.Device.StartService (MonoTouch.CoreFoundation.CFString) 0x000af at MonoTouch.Installation.Installer.UploadApplication (object,System.EventArgs) 0x0036f at MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info) 0x0006e at (wrapper native-to-managed) MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info) 0x0003d at (wrapper managed-to-native) MonoTouch.CoreFoundation.CFRunLoop.CFRunLoopRun () 0x3 at MonoTouch.CoreFoundation.CFRunLoop.Run () 0xd at MonoTouch.Installation.Installer.InstallApplication (string) 0x000c5 at MTouch.Main (string[]) 0x032d1 [ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: AMDeviceStartService returned: 0xe87f at MonoTouch.Installation.Device.StartService (MonoTouch.CoreFoundation.CFString) 0x000af at MonoTouch.Installation.Installer.UploadApplication (object,System.EventArgs) 0x0036f at MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info) 0x0006e at (wrapper native-to-managed) MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info) 0x0003d at (wrapper managed-to-native) MonoTouch.CoreFoundation.CFRunLoop.CFRunLoopRun () 0x3 at MonoTouch.CoreFoundation.CFRunLoop.Run () 0xd at MonoTouch.Installation.Installer.InstallApplication (string) 0x000c5 at MTouch.Main (string[]) 0x032d1 The application was terminated by a signal: SIGHUP ___ 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 -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] seting UIWebview user agent (objectiveC question)
Hello, The 'forHTTPHeaderField' selector is mapped to the indexer of the NSMutableUrlRequest type, so requestObj [User_Agent] = Foobat/1.0; should do what you want. Sebastien On Mon, Sep 12, 2011 at 10:46 AM, dotnet projects coderproje...@gmail.com wrote: Hi, I am trying to convert the following code to .Net NSString *urlAddress = @http://www.amazon.com;; //Create a URL object. NSURL *url = [NSURL URLWithString:urlAddress]; //URL Requst Object NSMutableURLRequest *requestObj = [NSMutableURLRequest requestWithURL:url]; [requestObj setValue:@Foobar/1.0 forHTTPHeaderField:@User_Agent]; NSUrl url =new NSUrl(@http://www.amazon.com;); NSUrlRequest req = new NSUrlRequest(url); req.SetValueForKey(???,Foobar/1.0); I don't know how to convert the following line [requestObj setValue:@Foobar/1.0 forHTTPHeaderField:@User_Agent] Is there any tutorial on converting Objective-C code to Mono? Thanks Art ___ 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
Re: [MonoTouch] seting UIWebview user agent (objectiveC question)
Hey, The original (objectivec) code was using NSMutableUrlRequest, not NSUrlRequest (it was also part of my previous answer ;-). FWIW you cannot change it if it's not mutable. Sebastien On Mon, Sep 12, 2011 at 11:20 AM, coderprojects coderproje...@gmail.com wrote: Hi I tried it and getting the following Error CS0200: Property or indexer `MonoTouch.Foundation.NSUrlRequest.this[string]' cannot be assigned to (it is read-only) I am trying to convert the code in the following URL http://stackoverflow.com/questions/478387/change-user-agent-in-uiwebview-iphone-sdkhttp://stackoverflow.com/questions/478387/change-user-agent-in-uiwebview-iphone-sdk Thanks Art -- View this message in context: http://monotouch.2284126.n4.nabble.com/seting-UIWebview-user-agent-objectiveC-question-tp3807602p3807673.html 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
Re: [MonoTouch] Wrapper type 'MonoTouch.MapKit.MKMapViewDelegate' is missing its native ObjectiveC class 'MKMapViewDelegate'. Please check if it's been linked.
Hello Dennis, Could you fill a bug report at http://bugzilla.xamarin.com and include a small, self-contained, test case. I'll look to see if this works with 4.2 and if it could be a linking issue. Thanks Sebastien On Mon, Sep 12, 2011 at 8:55 PM, technohead dj_technoh...@yahoo.com wrote: Looks like the problem is related to MonoTouch 4.0.6 and 4.0.7. I've rolled back to 4.0.5 and am not getting the error any more. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Wrapper-type-MonoTouch-MapKit-MKMapViewDelegate-is-missing-its-native-ObjectiveC-class-MKMapViewDele-tp3808968p3808982.html 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
Re: [MonoTouch] IPad 2 problems
A different error code means a different reason why the device refused to let you install your application. Anyway the same drill (as before) still applies. We need a bug report, a test case and the logs to duplicate the issue. Without them we cannot fix or, at least, provide a more useful error message from MonoTouch. There's obviously something close to your project and/or configuration that makes this happens more often in your work. Sebastien On Tue, Sep 13, 2011 at 5:55 AM, dermotos m...@dermotos.com wrote: And just as before, doing a restore of the changed file, or even a full restore of my project folder from a Time Machine backup still makes no difference. Changing to a different device doesn't either. There is something, somewhere in the configuration files of mono/develop/touch that has changed. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Installation-failed-AMDeviceInstallApplication-tp3774352p3809621.html 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
Re: [MonoTouch] mtouch crashing under MonoTouch 4.0.7
Hello Tom, This affects a few* projects when building for devices only (simulator builds are fine). MonoTouch 4.2 ('beta' now,but should be moved to 'stable' soon) already has the fix for this. More details in: http://bugzilla.xamarin.com/show_bug.cgi?id=604 Regards, Sebastien * no one could provide me with a test case but I'm 99% confident that this is fixed. If you can attach a test case to the bug report I'll be able to confirm this (100%). On Tue, Sep 13, 2011 at 8:52 AM, tomf84 m...@tomfanning.eu wrote: Following on from this morning's upgrade to MT 4.0.7, I am now finding mtouch is crashing on code which worked fine yesterday, when compiling in Release mode only. Error 1: mtouch failed with the following message: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at MonoTouch.Registrar.TypeSystemDescriptor.MethodMatch (Mono.Cecil.MethodDefinition candidate, Mono.Cecil.MethodDefinition method) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.PropertyMatch (Mono.Cecil.PropertyDefinition candidate, Mono.Cecil.PropertyDefinition property) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.TryMatchProperty (Mono.Cecil.TypeDefinition type, Mono.Cecil.PropertyDefinition property) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.GetBasePropertyInTypeHierarchy (Mono.Cecil.PropertyDefinition property) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor+CollectCandidatePropertiesc__Iterator0.MoveNext () [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.ProcessMethods (Mono.Cecil.TypeDefinition type, MonoTouch.Registrar.Class class) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.ProcessType (Mono.Cecil.TypeDefinition type) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.ProcessAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.Process (IEnumerable`1 assemblies) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.Describe (IEnumerable`1 assemblies) [0x0] in filename unknown:0 at Registrar.Generate (System.Collections.Generic.List`1 list, MonoTouch.Tuner.MonoTouchResolver resolver) [0x0] in filename unknown:0 at MTouch.RunRegistrar (System.Collections.Generic.List`1 assemblies, System.String assemblies_path, System.String output_dir, System.String output_file) [0x0] in filename unknown:0 at MTouch.CompileToNative (System.String user_gcc_flags, System.Collections.Generic.List`1 assemblies) [0x0] in filename unknown:0 at MTouch.Main (System.String[] args) [0x0] in filename unknown:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object at MonoTouch.Registrar.TypeSystemDescriptor.MethodMatch (Mono.Cecil.MethodDefinition candidate, Mono.Cecil.MethodDefinition method) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.PropertyMatch (Mono.Cecil.PropertyDefinition candidate, Mono.Cecil.PropertyDefinition property) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.TryMatchProperty (Mono.Cecil.TypeDefinition type, Mono.Cecil.PropertyDefinition property) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.GetBasePropertyInTypeHierarchy (Mono.Cecil.PropertyDefinition property) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor+CollectCandidatePropertiesc__Iterator0.MoveNext () [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.ProcessMethods (Mono.Cecil.TypeDefinition type, MonoTouch.Registrar.Class class) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.ProcessType (Mono.Cecil.TypeDefinition type) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.ProcessAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.Process (IEnumerable`1 assemblies) [0x0] in filename unknown:0 at MonoTouch.Registrar.TypeSystemDescriptor.Describe (IEnumerable`1 assemblies) [0x0] in filename unknown:0 at Registrar.Generate (System.Collections.Generic.List`1 list, MonoTouch.Tuner.MonoTouchResolver resolver) [0x0] in filename unknown:0 at MTouch.RunRegistrar (System.Collections.Generic.List`1 assemblies, System.String assemblies_path, System.String output_dir, System.String output_file) [0x0] in filename unknown:0 at MTouch.CompileToNative (System.String user_gcc_flags, System.Collections.Generic.List`1 assemblies) [0x0] in filename unknown:0 at MTouch.Main (System.String[] args) [0x0] in filename unknown:0 (1) (MyAppNamespace.MyProjectName) Currently
Re: [MonoTouch] JSON Serialization
Hello Shawn, You can add -v -v -v options to additional mtouch arguments (right click on your project, select Option, then iPhone Build) to enable a more verbose builds. Anything that ends up non-useful, like mtouch failed with no output (1), should be reported as a bug report on http://bugzilla.xamarin.com - if possible with a test case so we'll be able to diagnose the issue and provide better error reports in future releases of MonoTouch. On Fri, Sep 16, 2011 at 2:48 PM, shawnlehner shawnleh...@gmail.com wrote: Sorry, I was for some reason looking at the wrong logs. I found the error: Could not link assemblies: Mono.Linker.ResolutionException: Can not resolve reference: System.Reflection.Emit.TypeBuilder Obviously this is an issue with the reflection classes used by Json.NET. I read a post that suggested setting the linker to link all assemblies but this did not have an effect. Are the specific arguments I could be passing when building? System.Reflection.Emit (SRE) is not supported by MonoTouch because Apple does not allow JITting to occurs on devices [1]. Normally you should have got an error earlier while compiling the assembly that used TypeBuilder - unless you're using a pre-build binary ? Some JSON assemblies, like Newtonsoft.Json.MonoTouch.dll (maybe others, I'm not sure beside MonoTouch's own System.Json.dll), can be compiled to avoid using SRE and will work for MonoTouch-based applications. Regards, Sebastien [1] http://ios.xamarin.com/Documentation/Limitations#No_Dynamic_Code_Generation ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Cannot run App on Device using Upload to Device
Hello Mark, Could you fill a bug report on http://bugzilla.xamarin.com and include the version of MonoTouch you're currently using. I remember a similar stack trace and I'll try to see if it's identical and what was its cause. Thanks Sebastien On Mon, Sep 19, 2011 at 1:51 PM, Mark Handzlik mhandz...@amtechsoftware.net wrote: Trying to upload to device and I am getting an SIGSEGV . This happens when I do upload to device after a build I am trying to test on device before sending to AppStore. If I build under Debug then do upload it is OK. I am trying to assure app I send to Appstore does not crash on load. Below is output of the Upload to Device. Thanks for help. Please ensure your device is connected... Connected to: iPhone Stacktrace: at (wrapper managed-to-native) MonoTouch.Installation.Installer.CFArrayGetCount (intptr) 0x at MonoTouch.Installation.Installer.UploadApplication (object,System.EventArgs) 0x001fd at MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info) 0x0006e at (wrapper native-to-managed) MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info) 0x at (wrapper managed-to-native) MonoTouch.CoreFoundation.CFRunLoop.CFRunLoopRun () 0x at MonoTouch.CoreFoundation.CFRunLoop.Run () 0xd at MonoTouch.Installation.Installer.InstallApplication (string) 0x000c5 at MTouch.Main (string[]) 0x032d1 at (wrapper runtime-invoke) Module.runtime_invoke_int_object (object,intptr,intptr,intptr) 0x Native stacktrace: 0 mtouch 0x000dfd8b 0x0 + 916875 1 mtouch 0x0001a3f8 0x0 + 107512 2 libSystem.B.dylib 0x9389505b _sigtramp + 43 3 ??? 0x 0x0 + 4294967295 4 ??? 0x0271961c 0x0 + 40998428 5 ??? 0x02718186 0x0 + 40993158 6 ??? 0x02717e7f 0x0 + 40992383 7 ??? 0x039fb046 0x0 + 60796998 8 MobileDevice 0x0276756b _AMDDeviceAttachedCallbackv3 + 130 9 MobileDevice 0x02728885 USBMuxIntCFSocketCallback + 1633 10 CoreFoundation 0x9349ae2e __CFSocketDoCallback + 702 11 CoreFoundation 0x9349a7b7 __CFSocketPerformV0 + 311 12 CoreFoundation 0x9345445b __CFRunLoopDoSources0 + 1563 13 CoreFoundation 0x93451f1f __CFRunLoopRun + 1071 14 CoreFoundation 0x934513f4 CFRunLoopRunSpecific + 452 15 CoreFoundation 0x93457334 CFRunLoopRun + 84 16 ??? 0x02717d8e 0x0 + 40992142 17 ??? 0x02717d56 0x0 + 40992086 18 ??? 0x02714686 0x0 + 40978054 19 ??? 0x0202436a 0x0 + 33702762 20 ??? 0x02026e3c 0x0 + 33713724 21 mtouch 0x0001a1b3 0x0 + 106931 22 mtouch 0x001f8f5e 0x0 + 2068318 23 mtouch 0x001fb818 0x0 + 2078744 24 mtouch 0x001faba6 0x0 + 2075558 25 mtouch 0x000b0b62 0x0 + 723810 26 mtouch 0x000b0d99 0x0 + 724377 27 mtouch 0x000b2eb8 0x0 + 732856 28 mtouch 0x296c 0x0 + 10604 29 mtouch 0x2359 0x0 + 9049 Debug info from gdb: /tmp/mono-gdb-commands.c7yoEa: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. = The application was terminated by a signal: SIGIOT The information contained in or attached to this electronic transmission constitutes confidential information and may be privileged and exempt from disclosure under applicable law. If you are not the intended recipient, you are on notice that any unauthorized disclosure, copying, distribution or dissemination of this information is strictly prohibited. ___ 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
Re: [MonoTouch] System.Reflection.Assembly.GetModules throws System.NotImplementedException on MT 4.2.1
Hello Michal, This has been fixed just after the 4.2.1 release and will be part of future MonoTouch releases. You can try disabling the linker (i.e. set the linker option to Don't link) but you might run into bug #587 (also fixed but not part of 4.2.1) on device builds. If this happens you can also try using Link SDK assemblies and add --linkskip=mscorlib to the extra mtouch arguments. Regards, Sebastien Le 2011-09-22 à 11:47, Michal Sartoris m...@resco.net a écrit : This line of code throws System.NotImplementedException in code build with MT 4.2.1 on device. It works on simulator. var path = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName); System.NotImplementedException: Derived classes must implement it at System.Reflection.Module.IsResource () [0x0] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/Module.cs:361 at System.Reflection.MonoAssembly.GetModules (Boolean getResourceModules) [0x00024] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoAssembly.cs:110 at System.Reflection.Assembly.GetModules () [0x0] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/Assembly.cs:705 at MobileCrm.Program.RunApplication (System.Object applicationContext) [0x6] in /Users/michalsartoris/Projects/Resco.MonoTouch/SwedishMatch/MobileCrm/Program.cs:183 Best regards, Ing. Michal Sartoris Resco.net __ Information from ESET NOD32 Antivirus, version of virus signature database 6485 (20110922) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.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
Re: [MonoTouch] Deploy To Device Fails
Hello Walt, On Fri, Sep 23, 2011 at 8:08 PM, retlaW walterszewelanc...@gmail.com wrote: I just purchased MonoTouch and MonoAndroid and am attempting to install a MonoTouch app to a real device for the first time. My Setup is Mac OSX (Lion) 10.7.1, MonoDevelop 2.8 Beta 1(2.7.20), MonoTouch 4.2.1, and XCode 4.2 I went through the tutorial at : http://docs.xamarin.com/ios/getting_started/hello_iphone All attempts to Deploy to a real device results in this error : Installation failed: AMDeviceInstallApplication returned: 0xe850 Could you provide the full deployment log please ? It should look like: Please ensure your device is connected... Connected to: Neptune This application has been signed with a provisioning profile which does not include this device Connected to: Neptune Installing application Installation failed: AMDeviceInstallApplication returned: 0xe850 The application was terminated by a signal: SIGHUP The earlier message This application has been signed with a provisioning profile which does not include this device means that an invalid profile was used. IIRC for that case I was using the Distribution identity/profile instead of my Developer profile. Please let us know if you do not have this (or a similar) message. I have tried this on a iPhone 3 at version 4.2.1, iPod 4 at version 5, and iPad 2 at version 5. All 3 result in the same error. Using a 'distribution' profile would not be allowed in any device - provisioned or not. Thinking the project may be corrupt, I created a new empty Solution added one line of Console.WriteLine(Hello World); to it, run it on the Simulator and its fine. But I get the same error when attempting to deploy to real hardware. Errors from AMDeviceInstallApplication are coming the the device itself. You won't see them for the simulator because the application install process is totally different in that case (i.e. the simulator is not an emulator :-). Regards, Sebastien ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] [Monotouch] EncryptedXml
Hello Pavel, System.Security.dll (which provides types inside System.Security.Cryptography.Xml) is not part of MonoTouch since it was not inside the original Silverlight profile on which Xamarin's mobile products were based. However you can likely compile this assembly from source and, with a few changes, get it to work on MonoTouch. That will give you xmldsig and xmlenc support. IIRC libxml2 is available in the iOS SDK so it should be possible (dedending on the version used) to include the 'xmlsec' library in your project, bind them and then use them inside your application. http://www.aleksey.com/xmlsec/ Regards, Sebastien On Tue, Sep 27, 2011 at 6:35 AM, Pavel Sich pavel.s...@me.com wrote: Hi, has anyone tried to use EncryptedXml object from System.Security.Cryptography.Xml? It seems to be missing in the Monotouch. Is there a way how to use these classes? Or iOS SDK native way of an equivalent? Any help is appreciated. -Pavel. ___ 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
Re: [MonoTouch] Change URL of webservice during runtime
Hello Andreas, Normally the bindings you generate for your web services will include a constructor/property to allow you to specify your own URL. For more details see: http://stackoverflow.com/q/7497728/220643 Regards, Sebastien 2011/9/29 Andreas Ploetzeneder i...@ploetzeneder-it.com: hello, how can i change the url of a webservice while the service is running -- Mit freundlichem Gruß, Andreas Plötzeneder CEO ihr ploetzeneder it-solutions Team Mobile Development – Desktopanwendungen – Webanwendungen Tel: +43 720 30 30 24 10 Fax: +43 720 30 30 24 20 Email: i...@ploetzeneder-it.com web: http://www.ploetzeneder-it.com Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie diese bitte und informieren Sie den Absender. Jede Form der Verbreitung oder Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in Teilen, die nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder it-solutions übernimmt daher keine Haftung, falls die E-Mail geändert wurde. ___ 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
Re: [MonoTouch] IAsyncResult exception on device, on simulator is ok
Hello, The linker (partially) removed the method being called. System.NotSupportedException: Linked away Could you fill a bug report for this and include the version of MonoTouch you're using. I'll have a look at this asap. Thanks, Sebastien p.s. as a temporary workaround you can try using the Don't link option on your application. On Thu, Sep 29, 2011 at 2:04 PM, jowi j.wiersm...@chello.nl wrote: I've written a quick ip/port scan for a specific device on my network, using Sockets. What i do is trying to create a socket to a specific port for each ip adress i can find, and if it connects within a small timeout of 15ms, it' probably my device, and i send some commands to verify. I start with this: /Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP); IAsyncResult ias = socket.BeginConnect(ip, 4201, null, null);/ and then i try the AsyncWaitHandle: /ias.AsyncWaitHandle.WaitOne(15, true))/ to try and get the connection. If this returns true, my connection is valid. Problem is, this code works perfectly on the simulator, but on the actual iPhone device, it fails the AsyncWaitHandle() with the following exception: /System.NotSupportedException: Linked away at System.Threading.WaitHandle.WaitOne (Int32 millisecondsTimeout, Boolean exitContext) [0x0]/ What am i doing wrong? -- View this message in context: http://monotouch.2284126.n4.nabble.com/IAsyncResult-exception-on-device-on-simulator-is-ok-tp3856964p3856964.html 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
Re: [MonoTouch] IAsyncResult exception on device, on simulator is ok
Thanks for the report and for confirming Don't link as a workaround :-) Sebastien Le 2011-09-29 à 14:47, jowi j.wiersm...@chello.nl a écrit : Reported as Bug 1144. Using the don't link option makes it function, thanks. This way i can continue my development :) -- View this message in context: http://monotouch.2284126.n4.nabble.com/IAsyncResult-exception-on-device-on-simulator-is-ok-tp3856964p3857179.html 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
Re: [MonoTouch] Problem with UIButton in Custom Cell
Hello Andreas, This looks identical to the bug http://bugzilla.xamarin.com/show_bug.cgi?id=1056 that you filled last week. Was the proposed solution not working ? Regards, Sebastien 2011/10/5 Andreas Ploetzeneder i...@ploetzeneder-it.com: Hi, attached i have a button named buttonrund,...and when i press the button the app crashes i do not understand why,... i think it has to do something with garbagecollection but i dont understand it :( -- Mit freundlichem Gruß, Andreas Plötzeneder CEO ihr ploetzeneder it-solutions Team Mobile Development – Desktopanwendungen – Webanwendungen Tel: +43 720 30 30 24 10 Fax: +43 720 30 30 24 20 Email: i...@ploetzeneder-it.com web: http://www.ploetzeneder-it.com Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie diese bitte und informieren Sie den Absender. Jede Form der Verbreitung oder Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in Teilen, die nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder it-solutions übernimmt daher keine Haftung, falls die E-Mail geändert wurde. ___ 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
Re: [MonoTouch] Wrapper type 'Monotouch.UIKIT.UIActionSheetDelegate' is missing its native Objective C class 'UIActionSheetDelegate'. Please check if its be linked
On Thu, Oct 6, 2011 at 2:57 PM, Andreas Ploetzeneder i...@ploetzeneder-it.com wrote: ok, your snippet is to short :D can u help me with longer one? sure :) using System; using System.Collections.Generic; using System.Linq; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace Sepp { public class MyUIActionSheetDelegate : UIActionSheetDelegate { } public class HaupttabelleDelegate : UITableViewDelegate { private Haupttabelle _controller; public HaupttabelleDelegate(Haupttabelle controller) { _controller = controller; z= new UIActionSheetDelegate(); // remove line above z = new MyUIActionSheetDelegate (); } Detailtabelle x; UIActionSheet y; UIActionSheetDelegate z; public override void RowSelected (UITableView tableView, NSIndexPath indexPath) { y = new UIActionSheet(Frage,z,Abbrechen,null,Bestätigen mit Kommentar,Bestätigen); y.CancelButtonIndex=2; y.Clicked+= delegate(object sender, UIButtonEventArgs e) { switch (e.ButtonIndex) { case 0: System.Diagnostics.Debug.WriteLine(Bestaetigen mit Kommentar); break; case 1: System.Diagnostics.Debug.WriteLine(Bestaetigen ); break; case 2: System.Diagnostics.Debug.WriteLine(Abbrechen ); break; }}; y.ShowInView(_controller.View); System.Diagnostics.Debug.WriteLine(Zeile:+indexPath.Row.ToString()); } } } Sebastien p.s. If that does not work (it could be unrelated to bug #769) then please open a bug report and attach a small, self-contained, test case. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Sopporting ios 4 and ios 5
Hello Art, Could you please fill a bug report on bugzilla.xamarin.com so we can diagnose the lo\inking issue - it's either a different issues of #587 or a case that was not handled. For FAT binaries check your project's options, a) right click on your main application project and select Options; b) select the iPhone Build icon; c) select the Advanced tab; d) check if LLVM is enabled - if it is check if supported architecture is set to ARMv6 + ARMv7, if so then you're building a FAT binary Thanks Sebastien On Fri, Oct 7, 2011 at 11:11 PM, Art coderproje...@gmail.com wrote: Hello Sebastien, I am using Monotouch 4.2.2 and I am still getting same error even if I set SDK version to 4.3. How do I check it is fat binary? Thanks Art On Oct 7, 2011, at 9:19 PM, Sebastien Pouliot [via MonoTouch][hidden email] wrote: Hello Art, On Fri, Oct 7, 2011 at 8:46 PM, Art [hidden email] wrote: Simulator app dir is 7mb .I use don't link option. if I use link sdk assemblies only, I get Attempting to JIT compile method exception. It works fine on simulator. That was fixed in MonoTouch 4.2.2 [1] and recent 4.9.x alphas. Of course the monotouch.dll required to support the iOS5 API will be larger (than before) so not linking will result in even larger applications (i.e. linking will become even more important). Another common reason for large applications on device is using FAT binaries (i.e. armv6 + armv7). Regards, Sebastien [1] http://bugzilla.xamarin.com/show_bug.cgi?id=587 Art Thanks On Fri, Oct 7, 2011 at 5:18 PM, Rolf Bjarne Kvinge [via MonoTouch] [hidden email] wrote: Hi, Yes, it will be fixed in the final MonoTouch 5.0 release. For the size change: has the .app directory built for the simulator changed that much too? And have you changed how linking is done (by default it should link sdk assemblies only). Rolf On Fri, Oct 7, 2011 at 9:06 PM, dotnet projects [hidden email] wrote: Thanks for the reply. Will this be fixed in the next version? After adding MonoDialog and a few xib files, My app size became 35 mb it was 20 mb before. Is there any way to find out what is causing the size increase. Thanks, Art On Thu, Oct 6, 2011 at 4:58 PM, Rolf Bjarne Kvinge [hidden email] wrote: Hi Art, We've very recently discovered that there are a few issues you can easily run into when deploying applications built with the iOS5 sdk on iOS4 devices (in particular it will crash immediately upon startup). If you run into any such issues, just ask and attach the corresponding crash log, and I can explain how to work around it (in some cases we'll always link with iOS5 frameworks, which will cause the application to fail to load on older devices. The fix is to build against the iOS4 sdk and add the required frameworks manually using -weak_framework in mtouch' extra arguments). Rolf On Thu, Oct 6, 2011 at 8:42 PM, Jeff Stedfast [hidden email] wrote: Hi Art, Yes, this should be possible to do. What you'll need to do is check the iOS version (MonoTouch.UIKit.UIDevice.CurrentDevice.SystemVersion) and depending on the value, take different code paths in your app providing differentfeatures depending on the underlying iOS version. Hope that helps! Jeff On Thu, Oct 6, 2011 at 2:31 PM, Art [hidden email] wrote: Is it possible to support both ios 4 and ios 5? I want to use new ios 5 cloud api. I also want the ios4 users to be able to use the app without the cloud. Thanks Art -- View this message in context: http://monotouch.2284126.n4.nabble.com/Sopporting-ios-4-and-ios-5-tp3879479p3879479.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 ___ 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/Sopporting-ios-4-and-ios-5-tp3879479p3883854.html To unsubscribe from Sopporting ios 4 and ios 5, click here. View this message in context: Re: Sopporting ios 4 and ios 5 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
Re: [MonoTouch] Updated to iOS 5 and now my app crashes
Hello Andrew, I've seen a similar issue reported (yesterday). Are you building this with LLVM ? if so does it work without it ? Thanks Sebastien On Fri, Oct 14, 2011 at 7:27 PM, Andrew Young andrewdyo...@gmail.com wrote: I just upgraded my iPhone to iOS 5 and now my app crashes where it wouldn't on iOS 4. Its the same binary that was running on iOS 4. The crash report doesn't seem to indicate that it is anything within my app that is causing the crash. Is this a MT bug? 0 libsystem_kernel.dylib 0x31eb032c 0x31e9f000 + 70444 1 libsystem_c.dylib 0x363a6f54 0x36359000 + 319316 2 libsystem_c.dylib 0x3639ffe4 0x36359000 + 290788 3 SomeAppiPhone 0x008b7cf0 monoeg_g_logv (goutput.c:134) 4 SomeAppiPhone 0x008b7d84 monoeg_assertion_message (goutput.c:155) 5 SomeAppiPhone 0x007220dc mono_thread_abort (mini.c:2639) 6 SomeAppiPhone 0x0074c634 mono_handle_exception_internal (mini-exceptions.c:1536) 7 SomeAppiPhone 0x0074d2ac mono_handle_exception (mini-exceptions.c:1831) 8 SomeAppiPhone 0x007772d4 mono_arm_throw_exception (exceptions-arm.c:158) 9 SomeAppiPhone 0x006ad52c throw_exception + 40 10 SomeAppiPhone 0x008e1c08 monotouch_exception_handler (monotouch-glue.m:858) 11 SomeAppiPhone 0x008ecde8 TFHandleExceptions + 40 12 CoreFoundation 0x30bcb980 0x30b12000 + 760192 13 libobjc.A.dylib 0x37d702ca 0x37d67000 + 37578 14 libc++abi.dylib 0x318663be 0x31862000 + 17342 15 libc++abi.dylib 0x3186644a 0x31862000 + 17482 16 libc++abi.dylib 0x3186781e 0x31862000 + 22558 17 libobjc.A.dylib 0x37d7022e 0x37d67000 + 37422 18 CoreFoundation 0x30b2153e 0x30b12000 + 62782 19 CoreFoundation 0x30b2139e 0x30b12000 + 62366 20 GraphicsServices 0x3374ffe6 0x3374c000 + 16358 21 UIKit 0x32b9373c 0x32b62000 + 202556 22 SomeAppiPhone 0x001ff988 wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 232 23 SomeAppiPhone 0x001af564 monotouch_MonoTouch_UIKit_UIApplication_Main_string__ + 12 24 SomeAppiPhone 0x000d4cbc SomeAppiPhone_SomeApp_iPhone_Application_Main_string__ + 4 25 SomeAppiPhone 0x0067ee50 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr_0 + 192 26 SomeAppiPhone 0x00726b9c mono_jit_runtime_invoke (mini.c:5759) 27 SomeAppiPhone 0x00830d0c mono_runtime_invoke (object.c:2757) 28 SomeAppiPhone 0x00833db0 mono_runtime_exec_main (object.c:3940) 29 SomeAppiPhone 0x00832dd8 mono_runtime_run_main (object.c:3562) 30 SomeAppiPhone 0x00732240 mono_jit_exec (driver.c:1102) 31 SomeAppiPhone 0x0071d054 main (main.m:2507) 32 SomeAppiPhone 0x2700 start + 32 ___ 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
Re: [MonoTouch] The assembly mscorlib.dll was not found or could not be loaded.
Hello Ogden, On Fri, Oct 14, 2011 at 9:21 PM, ogden dmorri...@ueic.com wrote: Hi, I am trying to link a C library into a large MonoTouch application and have been met with some trouble... Anytime I run the app I get: The assembly mscorlib.dll was not found or could not be loaded. It should have been installed in the `/Developer/MonoTouch/Build/simulator/lib/mono/2.0/mscorlib.dll' directory. I created a very simple C library (one function), and a simple test app in MT-- (it just calls the C function), and this works as expected... Since it looks like you have a simple test case then please fill a bug report in http://bugzilla.xamarin.com and attach your (small, self contained) test case to the bug report. It's hard to say what's wrong from the description but once we can duplicate such issues locally such bugs are often simple to fix. Regards, Sebastien But in my actual application, with my actual library. nothing works. If I remove the C library from linking, the mscorlib error does not occur. I am also able to link the C library into an Obj-C iPhone app and use it successfully. Can anyone speculate how linking a C library might cause this error? Have the latest version of everything (MonoTouch 5.0, MonoDev 2.8.1, XCode 4.2). Thanks, Ogden -- View this message in context: http://monotouch.2284126.n4.nabble.com/The-assembly-mscorlib-dll-was-not-found-or-could-not-be-loaded-tp3906697p3906697.html 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
Re: [MonoTouch] Basic TableView
Everytime I see a table I think of MonoTouch.Dialog @ https://github.com/migueldeicaza/MonoTouch.Dialog IMHO much simpler than using Apple API and it comes with a great sample application that shows much of what it can do. There are also quite a few applications (and open source apps) that use it if you need further examples. Sebastien On Wed, Oct 19, 2011 at 9:58 AM, Nic Wise n...@fastchicken.co.nz wrote: These might help My little RSS viewer (ok, it's all BBC iplayer RSS, but still) https://github.com/nicwise/onthetelly (I've not tried it for ages, but it should work) Building a custom table view cell http://simon.nureality.ca/simon-says-monotouch-lets-build-a-custom-uitableviewcell/ http://ksheffield.com/blog/?p=22 (basically, anything from googling monotouch uitableview should be a good start.) Most of the books cover this quite well. http://monotouch.info/MonoTouch/Books http://www.amazon.com/Learning-MonoTouch-Hands--Building-Applications/dp/0321719921 etc On Wed, Oct 19, 2011 at 11:10, Mittchel Van Vliet mittc...@gmail.com wrote: Dear, I'm quite new in the whole MonoTouch scene and I need some help to get started :P What I'm aiming for is something like the following view: http://img441.imageshack.us/img441/2066/screenshot20091116at112.png It doesnt have to be that fancy yet, but the possibility should be there to extend it to a view exactly like that. So I figured it is made by a TableView cell.. Now I made a simple UiTableView with some hardcoded data, but how do I create the detail page? In the end result I'd like to communicate with a webservice, get the rows and throw them in a Cell. When the Cell is clicked, some detailed information about this product is shown. Does anyone know a tutorial which can help me started with this? Hope so! Thanks! ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ 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
Re: [MonoTouch] Cannot inherit from UIAlertView
Hello Andrew, This was asked on stackoverflow [1] recently. The workaround is to override only the default constructor and use the properties to set all values. Not sure (yet) about the root cause, it's on my TODO but I got other bugs (without workarounds) to go thru before that. Feel free to open a bug report (less chance that I forget about it ;-) Sebastien [1] http://stackoverflow.com/questions/7692522/subclassed-uialertview-not-shown On Thu, Oct 20, 2011 at 5:07 PM, Andrew Young andrewdyo...@gmail.com wrote: App crashes when I try to inherit from UIAlertView. See stack trace and sample code below. MonoTouch 5.0. Any ideas? I have a sample app that shows this for anyone interested. public class ViewController : UIViewController { private DateTimePickerView _pickerView; public ViewController () { } public override void ViewDidLoad () { base.ViewDidLoad (); new NotReachableAlertView ().Show (); } } public class NotReachableAlertView : UIAlertView { public NotReachableAlertView() : base(Title, Message, null, Cancel) { } } Unhandled Exception: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Requesting the window of a view (PickerViewCrash.NotReachableAlertView: 0x79a700; baseClass = UIAlertView; frame = (0 0; 0 0); transform = [0, 0, 0, 0, 0, 0]; alpha = 0; opaque = NO; layer = (null)) with a nil layer. This view probably hasn't received initWithFrame: or initWithCoder:. at MonoTouch.UIKit.UIAlertView.Show () [0x0] in filename unknown:0 at PickerViewCrash.ViewController.ViewDidLoad () [0x6] in /Users/Andrew/Projects/PickerViewCrash/ViewController.cs:20 at MonoTouch.UIKit.UIWindow.MakeKeyAndVisible () [0x0] in filename unknown:0 at PickerViewCrash.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x00031] in /Users/Andrew/Projects/PickerViewCrash/AppDelegate.cs:32 at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0] in filename unknown:0 at PickerViewCrash.Application.Main (System.String[] args) [0x0] in /Users/Andrew/Projects/PickerViewCrash/Main.cs:16 [ERROR] FATAL UNHANDLED EXCEPTION: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Requesting the window of a view (PickerViewCrash.NotReachableAlertView: 0x79a700; baseClass = UIAlertView; frame = (0 0; 0 0); transform = [0, 0, 0, 0, 0, 0]; alpha = 0; opaque = NO; layer = (null)) with a nil layer. This view probably hasn't received initWithFrame: or initWithCoder:. at MonoTouch.UIKit.UIAlertView.Show () [0x0] in filename unknown:0 at PickerViewCrash.ViewController.ViewDidLoad () [0x6] in /Users/Andrew/Projects/PickerViewCrash/ViewController.cs:20 at MonoTouch.UIKit.UIWindow.MakeKeyAndVisible () [0x0] in filename unknown:0 at PickerViewCrash.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x00031] in /Users/Andrew/Projects/PickerViewCrash/AppDelegate.cs:32 at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0] in filename unknown:0 at PickerViewCrash.Application.Main (System.String[] args) [0x0] in /Users/Andrew/Projects/PickerViewCrash/Main.cs:16 Terminating runtime due to unhandled exception ___ 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
Re: [MonoTouch] Do the makers of Monodevelop actually test the application?
Hello, On Mon, Oct 24, 2011 at 5:37 AM, Nic Wise n...@fastchicken.co.nz wrote: This was something to do with a phantom device and I think Sebastian fixed it (not sure which release tho!) which sounds similar, tho I'm not sure: The phantom device occurs _only_ when wireless sync is enabled in iOS5. Apple simply creates an extra, empty (name,uuid) device which caused some confusion when uploading applications to devices (it won't work on the phantom devices). The fix is recent (last week) and no release were made since then. Dermotos, while the phantom device did not seem related to debugging it would be nice to tell us for you have wireless sync enabled between your device and your computer. If so then you should try disabling it and see if this helps (or not) your debugging experience. Thanks, Sebastien ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] UITabBarController with UISplitViewController
Hello Michael, On Mon, Oct 24, 2011 at 9:52 PM, Michael Muegel mike.mue...@gmail.comwrote: Sorry, Autorotate = true. From: Michael Muegel mike.mue...@gmail.com Date: Mon, 24 Oct 2011 20:44:16 -0500 To: monotouch@lists.ximian.com Subject: Re: UITabBarController with UISplitViewController I posted my question to StackOverflow: http://stackoverflow.com/questions/7883375/uitabbarcontroller-with-uisplitviewcontroller-monotouch My issue — thanks poupou http://stackoverflow.com/users/220643/poupou! — was that I had to add Autorotate = false to every MonoTouch.Dialog DialogViewController. I suppose I should ask questions like this on StackOverflow since it is easier for others to find the answer. Is there a rule of thumb folks use when to post to the mailing list vs. SO? There are pros and cons for each. Other alternatives are Xamarin's bugzilla and support. In short, stackoverflow promotes *public* questions and answers, not discussions. That makes it easy to see what's answered (or not), i.e. the green checkmark. If that fits your question (i.e. targetted, not too long) then it's an awesome tool to use (and learn from). OTOH if you want to discuss, have varied feedback... about something then a mailing-list is better suited. Since it's open-ended it's very hard to know if all (initial, updated, subsequent) questions were answered. It's common, e.g. when googling, to find interesting, often long, threads leading to no definitive answer. Support is a bit like stackoverflow - but it's (mostly) not public. That limits the number of people that can help you (community) and future googling of questions/answers - but you know for sure that Xamarin is aware of the issue. Bugzilla starts like stackoverflow (one bug instead of one question) then let people discuss it until resolved. Also you always know if this fixed or not (status). Unlike stackoverflow you can discuss things privately (if needed) and you can add large attachements (not just a few lines of code in your question). Quite a few things starting in stackoverflow, mailing-lists or support cases finally ends up in bugzilla. Regards, Sebastien (poupou on stackoverflow) ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] MGSplitViewController
That's awesome René! Thanks for sharing this with everyone :-) Regards, Sebastien On Tue, Oct 25, 2011 at 10:51 AM, Nic Wise n...@fastchicken.co.nz wrote: Looks nice Rene! Nice work. Just a thought on code style, you might want to remove all the this. everywhere (or not, if thats how you like it :) ) /pet peave On Tue, Oct 25, 2011 at 15:48, Krumelur rene.rupp...@gmail.com wrote: I have just finished porting MGSplitViewController to Monotouch a few hours ago. It is a 1:1 implementation completely written in C# and gets you rid of all ObjectiveC libraries and bindings. You will also find a demo project that shows how to use the MTSplitViewController. Be aware that the details view in the demo has some bugs with regards to resizing, but I have not found time to fix this yet. You can grab it on Github: https://github.com/Krumelur/MTSplitViewController -- View this message in context: http://monotouch.2284126.n4.nabble.com/MGSplitViewController-tp3805816p3936963.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ 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
Re: [MonoTouch] Monotouch App will not launch on Device but works in Simulator
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 rmakers...@gmail.com 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) 0x 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) 0x Native stacktrace: 0 mtouch 0x000ec183 WriteZStream + 955779 1 mtouch 0x0001bd4f WriteZStream + 102735 2 libsystem_c.dylib 0x9020459b _sigtramp + 43 3 ??? 0x 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 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
Re: [MonoTouch] Monotouch App will not launch on Device but works in Simulator
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.RunQueryint(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) 0x 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) 0x Native stacktrace: 0 mtouch 0x000ec183 WriteZStream + 955779 1 mtouch 0x0001bd4f WriteZStream + 102735 2 libsystem_c.dylib 0x9020459b _sigtramp + 43 3 ??? 0x 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
Re: [MonoTouch] Problem building when set to debug on iPhone
Hello, Please fill a bug report at bugzilla.xamarin.com and state which version of MonoTouch you're using. Attach the full (failed) Build Output of your application. It would also be helpful if you can add -v -v -v to the Additional mtouch arguments since it might give us a few more hints about what's happening. Thanks, Sebastien Le 2011-10-27 à 10:58, MilkyJoe leigh.bow...@curvenet.co.uk a écrit : Again, if I temporarily add a reference for the SQlite project to the Main project, the solution builds perfectly again; even after the temporary reference has been removed. It's as if I'm tricking MonoTouch into see the SQLite project that is only referenced from withint the Data project. Does this suggest I'm failing to do something? Although I am managing to work around the project, it's a bit messy. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Problem-building-when-set-to-debug-on-iPhone-tp3944376p3944794.html 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
Re: [MonoTouch] System.MissingMethodException: Method not found: 'System.Type.op_Equality'.
Hello, Just rebuild Json.NET 4.0 Release 3 from source using the 'smcs' compiler provided with MonoTouch. You can also look around (in git) since some people have already built it for MonoTouch (which could save you time). Sebastien On Thu, Oct 27, 2011 at 2:53 PM, jamminjimi jamminj...@gmail.com wrote: Hi, I have similar problem as I interface to json.net. Perhaps some light can be shed?? Current installed software: Monodevelop 2.8.1, Mono framework 2.10.6, Monotouch 5.0, Xcode 4.2, ios 5 sdk, Json.NET 4.0 Release 3 Thank you for taking a look! Jim Exception thrown: System.Threading.Tasks.Task.HandleGenericException (e={System.MissingMethodException: Method not found: 'System.Type.op_Equality'. at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContractSafe (System.Object value) [0x8] in /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalWriter.cs:86 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value) [0x00011] in /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalWriter.cs:70 at Newtonsoft.Json.JsonSerializer.SerializeInternal (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value) [0x00012] in /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/JsonSerializer.cs:451 at Newtonsoft.Json.JsonSerializer.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value) [0x0] in /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/JsonSerializer.cs:443 at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002c] in /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/JsonConvert.cs:634 at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value) [0x0] in /Users/jamesphillips/Projects/Json40r3/Source/Src/Newtonsoft.Json/JsonConvert.cs:571 at Storyboard_Utility_App.SerializeMe.LoadTheProduct () [0x0005d] in /Users/jamesphillips/Projects/Storyboard_Utility_App/SerializeMe.cs:47 at Storyboard_Utility_App.SerializeMe..ctor () [0x6] in /Users/jamesphillips/Projects/Storyboard_Utility_App/SerializeMe.cs:35 at Storyboard_Utility_App.MainViewController.ViewDidLoadm__0 () [0x0] in /Users/jamesphillips/Projects/Storyboard_Utility_App/MainViewController.cs:38 at System.Threading.Tasks.TaskFactory+StartNewc__AnonStorey15.m__A (System.Object o) [0x0] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/TaskFactory.cs:106 at System.Threading.Tasks.Task.InnerInvoke () [0xb] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:424 at System.Threading.Tasks.Task.ThreadStart () [0x00039] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:384 }) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:474 -- View this message in context: http://monotouch.2284126.n4.nabble.com/System-MissingMethodException-Method-not-found-System-Type-op-Equality-tp3770750p3945599.html 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
Re: [MonoTouch] UnauthorizedAccessException while accessing resources
Hello, That's a common* mistake. *common enough so there's a Gendarme rule to catch this https://github.com/spouliot/gendarme/wiki/Gendarme.Rules.BadPractice.UseFileOpenOnlyWithFileAccessRule(2.10) Sebastien On Mon, Oct 31, 2011 at 11:21 AM, Jeff Stedfast j...@xamarin.com wrote: Hi FlyingDevStudio, FileStream(filename, FileMode.Open); tries to open the stream as ReadWrite as per [ http://msdn.microsoft.com/en-us/library/47ek66wy.aspx ], this is probably the reason for the failure. Hope that helps, Jeff On Sat, Oct 29, 2011 at 8:24 PM, flyingdevstudio ad...@flyingdevelopmentstudio.com wrote: Actually solved the problem... Not sure what changed, if it's our code or something in the implementation of FileStream, but using a different overload of the FileStream constructor solved the problem. This one works: var fileStream = FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read); This one wouldn't: var fileStream = FileStream(filename, FileMode.Open); Maybe this answer will help someone with the same problem :) -- Matt -- View this message in context: http://monotouch.2284126.n4.nabble.com/UnauthorizedAccessException-while-accessing-resources-tp3952060p3952083.html 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 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Exception with 4.3 SDK: UITableView.MoveRows: unrecognized selector sent to instance
Hello Ivan, This selector should be working under 4.x. Please fill a bug report and include a small, self-contained, test case. Thanks, Sebastien On Tue, Nov 1, 2011 at 12:33 PM, chebum cherniy.bu...@gmail.com wrote: Hello, I have troubles with the latest 5.0.1 build and iOS 4.3. A call to UITableView.MoveRow method throws NSInvalidArgumentException exception. This happens with *4.3 devices/emulators only, 5.0 works perfectly*. That's strange since moveRowAtIndexPath method signature didn't change since iOS SDK 2.0. Here is an exception stack trace: -[UITableView moveRowAtIndexPath:toIndexPath:]: unrecognized selector sent to instance 0x8299200 MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[UITableView moveRowAtIndexPath:toIndexPath:]: unrecognized selector sent to instance 0x8299200 at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSend_IntPtr_IntPtr (intptr,intptr,intptr,intptr) at MonoTouch.UIKit.UITableView.MoveRow (MonoTouch.Foundation.NSIndexPath fromIndexPath, MonoTouch.Foundation.NSIndexPath toIndexPath) [0x0002d] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UITableView.g.cs:491 at TableViewFailTestProject.TestController.HandleButtonTouchUpInside (System.Object sender, System.EventArgs e) [0x00010] in /Users/ivann/Projects/TableViewFailTestProject/TableViewFailTestProject/TestController.cs:38 Do you have any ideas on how to solve the problem, or should I to file a bug report for MonoTouch? Thanks, Ivan -- View this message in context: http://monotouch.2284126.n4.nabble.com/Exception-with-4-3-SDK-UITableView-MoveRows-unrecognized-selector-sent-to-instance-tp3964245p3964245.html 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
Re: [MonoTouch] Source code drop: London Bike App source release
Hey Nick, A great, open gesture to the community. It's a real pleasure to have you around :-) You rock! Sebastien Le 2011-11-02 à 17:21, Nic Wise n...@fastchicken.co.nz a écrit : http://www.fastchicken.co.nz/2011/11/02/london-bike-app-source-code-now-available/ Enjoy. Post questions here or on my blog (prefer here so more people can benefit) if you have any. This is a fully working, currently-in-the-store app, with a few minor changes around the web services and developer keys for 2 external services. -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ 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
Re: [MonoTouch] 5.01 BE WARNED
Le 2011-11-02 à 09:44, Nic Wise n...@fastchicken.co.nz a écrit : True, you shouldn't have to. But bugs DO happen. At least the way back is easy. Now we just need Sebastian or Jeff to say hey, I fixed it, it'll be in 5.0.2 ;-) hey, I fixed it, it'll be in 5.0.2 Sebastien p.s. and looking into this so it does not happening again :( On Wed, Nov 2, 2011 at 13:31, David Black david.bl...@casewise.com wrote: 1: Did do 2: Shouldn’t have to. L David Black Technical Manager (Web projects) Casewise Systems Ltd | www.casewise.com +44 1923 830300 office +44 1923 830270 direct 64 Clarendon Road, Watford WD17 1DA “When You Can See More, You Can Do More!” From: Nic Wise [mailto:n...@fastchicken.co.nz] Sent: 02 November 2011 13:29 To: David Black Cc: monotouch@lists.ximian.com Subject: Re: [MonoTouch] 5.01 BE WARNED Step 1: make a bug report and submit it to BugZilla. Do that right this second. Provide code. Without a reproducible bug, nothing gets fixed :) Step 2: log into your xamarin account (the store) and download 5.0 Step 3: install 5.0 (no need to uninstall 5.0.1). Tell MD to go away when it asks you to upgrade again. Step 4: be happy again until 5.0.2 comes out, or they otherwise fix your bug. :) On Wed, Nov 2, 2011 at 13:21, David Black david.bl...@casewise.com wrote: Hi All A word of caution .I just updated to Monotouch 5.01 and my app crashes on load with the following error Error - Attempting to JIT compile method 'System.Linq.Enumerable:SelectCasewise.Navigator.Services.Diagram.FlyweightJoiner, Casewise.Navigator.Shared.NavigatorJoiner (System.Collections.Generic.IEnumerable`1Casewise.Navigator.Services.Diagram.FlyweightJoiner,System.Func`2Casewise.Navigator.Services.Diagram.FlyweightJoiner, Casewise.Navigator.Shared.NavigatorJoiner)' while running with --aot-only. When I execute some linq to convert from the web services point representation to monotouch’s with the following code X = (from p in this.Points select new System.Drawing.PointF(p.X, p.Y)).ToArray(), If monotouch Linq can’t handle this then what can it handle? Yet another small step forward vast leap back in functionality. Speciality of the house it appears. Yet another day with 0 productivity D David Black Technical Manager (Web projects) Casewise Systems Ltd | www.casewise.com +44 1923 830300 office +44 1923 830270 direct 64 Clarendon Road, Watford WD17 1DA “When You Can See More, You Can Do More!” ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ 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
Re: [MonoTouch] Crashing problem: Ran out of trampolines of type 2
Hello Nick, http://docs.xamarin.com/ios/troubleshooting#Ran_out_of_trampolines_of_type_2 You were likely clause to the limit (using 4.x) and 5.0 class libraries are a bit bigger (crossing the limit). Regards, Sebastien On Fri, Nov 4, 2011 at 4:37 AM, Nic Wise n...@fastchicken.co.nz wrote: Appears I have a crashing problem that is new to 5.0(.1) http://bugzilla.xamarin.com/show_bug.cgi?id=1872 I've included some of the code around there too (also in the bug) https://gist.github.com/1338923 Any ideas? Anyone else seen this before? -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ 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
Re: [MonoTouch] [ERROR] FATAL UNHANDLED EXCEPTION: System.ExecutionEngineException
It's being tested as we speak. However you should not have this exception, even with 5.0.1, if you use the linker (e.g. Link SDK assemblies only) when building your application for devices. Sebastien p.s. there's no good reason (except if you have a bug number ;-) to disable the linker for device builds (smaller apps that will build faster). Le 2011-11-04 à 12:21, MilkyJoe leigh.bow...@curvenet.co.uk a écrit : I don't suppose you have an ETA on 5.0.2 , do you? I'm planning to release push my app to the app store next week. Thanks -- View this message in context: http://monotouch.2284126.n4.nabble.com/ERROR-FATAL-UNHANDLED-EXCEPTION-System-ExecutionEngineException-tp3990487p3990688.html 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
Re: [MonoTouch] [ERROR] FATAL UNHANDLED EXCEPTION: System.ExecutionEngineException
It could be unrelated to the bug report (but it's not 100% safe to assume the linker will remove the code causing the issue). To be certain about this please fill a bug at bugzilla.xamarin.com and include a small, self-contained, test case that you're sure cause the same exception (copy/pasting the code causing the error is often not enough to duplicate). You can also try with 5.0 which does not suffer from the regression. Sebastien Le 2011-11-04 à 13:36, MilkyJoe leigh.bow...@curvenet.co.uk a écrit : FYI: I am using LLVM, Arm7 and Thumb-2 compiler options. -- View this message in context: http://monotouch.2284126.n4.nabble.com/ERROR-FATAL-UNHANDLED-EXCEPTION-System-ExecutionEngineException-tp3990487p3990996.html 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
Re: [MonoTouch] Native library with Monotouch 5.0 (part 2)
Hello Robert, Is your test case one of the attached files in #707 ? if not the I would appreciate if you could send us your test case and I'll try to dig up why your particular case occurs (it should not, unless something swallow the exception). It seems there's more than a single issue there since #707 also occurs when _no_ linking is being done (so --nolinkaway is not the solution). Thanks, Sebastien On Sun, Nov 6, 2011 at 12:48 AM, Robert Sweitzer bsw...@gmail.com wrote: I solved this after wasting many hours removing thumb code (bug 707) from all of my native libs. The issue was solved with -nolinkaway. I am using -linksdkonly and never received a linked-away exception. - RSweitzer -- View this message in context: http://monotouch.2284126.n4.nabble.com/Native-library-with-Monotouch-5-0-part-2-tp3992408p3995043.html 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
Re: [MonoTouch] Native library with Monotouch 5.0 (part 2)
Hello Robert, I'd say pretty unlikely - but there's something unlikely going on... but that's a large set of events. The only way to resolve the mystery is to analyze a test case that demonstrate the issue. Regards, Sebastien On Mon, Nov 7, 2011 at 7:41 AM, Robert Sweitzer bsw...@gmail.com wrote: Hi Sebastien, Removing thumb code from my libs had no impact on the problem. It (#707) was just something I tried while looking for a solution. The code works with the original libs...and breaks if I remove --nolinkaway. Is it possible that the code throwing the linked-away exception was also removed ? Regards, Robert - RSweitzer -- View this message in context: http://monotouch.2284126.n4.nabble.com/Native-library-with-Monotouch-5-0-part-2-tp3992408p3998501.html 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
Re: [MonoTouch] Problem with AudioPlayer on 5.x
Hello Eric, The most obvious problem would be thread-related but it looks like you already covered that aspect with InvokeOnMainThread. The next best thing is filling a bug report [1] and include a small, self-contained, test case to have other people look at the issue. You may also want to look (before or simultaneously) to the AVTouchSample sample code [2] and see how it differs from your application. Regards, Sebastien [1] http://buzgilla.xamarin.com [2] https://github.com/xamarin/monotouch-samples/tree/master/AVTouchSample On Tue, Nov 8, 2011 at 12:34 PM, kissgamestudios e...@kissgamestudios.com wrote: I recently upgraded my application from 3.X to 5.X I had to make a few changes to the recorder to get the recording working, but I have tried everything I can think of to make the AudioPlayer() work and it keeps SIGDEV hard crashing on the simulator AND the device. This totally worked fine before I have reverted back to 3.X to make sure it still works and it does. I even put the AudioPlayer in a Singleton Globals static class to see if that helps and it doesnt :( The wierd thing is that if I set a breakpoint IN the Async callback from the WebService it will play fine. As soon as I let it continue it will SIGDEV. ANY HELP WOULD BE GREATLY APPRECIATED! I also wrapping in in an InvokeOnMainThread() to see if that helped and nothing too :( What I do is call a WebService that returns a byte[]. when I get that data I do the following: //Store the resulting byte[] into a FileStream and save it here .. //Now lets play the file! Globals.AudioPlayer = new AudioPlayer(); Globals.AudioPlayer = AVAudioPlayer.FromUrl(NSUrl.FromFilename(sfile + .wav)); Globals.AudioPlayer.PrepareToPlay(); Globals.AudioPlayer.MeteringEnabled = true; Globals.Audioplayer.FinishedPlaying += HandlePlayerFinishedPlaying; Globals.AudioPlayer.Play(); -- View this message in context: http://monotouch.2284126.n4.nabble.com/Problem-with-AudioPlayer-on-5-x-tp4016828p4016828.html 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
Re: [MonoTouch] Run Iphone App on Ipad
Hello, You should be able to run your (almost*) any MonoTouch application on your iPad, even if developed with the iPhone in mind. Note that the evaluation (free) version of MonoTouch will only work with the iOS simulator. You'll need either the Pro or Enterprise version of MonoTouch to deploy your applications on physical devices. Regards, Sebastien * unless it requires some specific hardware (e.g. a camera which the first generation iPad does not have) On Mon, Nov 7, 2011 at 7:20 AM, flashfoxter flashfox...@mail.ru wrote: Hi, when i develop iphone app in xcode, i can run it on Ipad(Its run like Iphone inside Ipad). But if i use monotouch for develop app, i can't run app on ipad :( I need to develop Iphone App, but im not to have Iphone, im just have Ipad to test Please Help me. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Run-Iphone-App-on-Ipad-tp3998442p3998442.html 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
Re: [MonoTouch] the requested operation cannot be completed because...
Hello, This should not be happening. Did you try Jeff's suggestion to change your project Linker behaviour option ? If you did and this did not help could you create a test case and fill a bug report on http://bugzilla.xamarin so we can have a look at this ? I'd really like to know what's going on and ensure it gets fixed asap. Thanks! Sebastien On Tue, Nov 8, 2011 at 7:58 PM, sisnaz jdeg...@comcast.net wrote: Thank you for the tips Dino!! I finally got a workaround in place and working. The Preserve attribute gave me big hopes, but still couldn't get it to work while I had the [Serializable] attribute. Here is what I did: - I left my existing model without the [Serializable] attribute. It now has [Preserve (AllMembers = true)] - I create a new class with the exact same signature, called it People and decorated it with [Serializable]. [Serializable] public class People { string _description; string _firstName; string _lastName; public string Description { get { return _description; } set { _description = value; } } public string FirstName { get { return _firstName; } set { _firstName = value; } } public string LastName { get { return _lastName; } set { _lastName = value; } } } Next when I'm ready to persist to the file I iterate the PeopleModel list inside a foreach, create a new class from the serializable and add it to a new list. ListPeople peopleList = new ListPeople(); foreach (PeopleModel item in persons) { People people = new People { Description = item.Description, LastName = item.LastName, FirstName = item.FirstName }; peopleList.Add(people); } ... and then reverse the process when I serialize it from the binary file. Sure would be nice to know what the issue is (or was), but at least it's working and I can move on to the next frustration Thanks again for the tips. - There was only 1 trilogy -- View this message in context: http://monotouch.2284126.n4.nabble.com/the-requested-operation-cannot-be-completed-because-tp4017899p4018216.html 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
Re: [MonoTouch] Why is System.Reflection.Emit in MonoTouch mscorlib?
Hello Michael, This is a planned enhancement but it requires us to switch to the new compiler and version of mono. Right now MonoTouch ships with two mscorlib.dll, one for the compiler (smcs) and one for the runtime. The former is needed by the compiler (used for itself and compiled against) and must include System.Reflection.Emit (SRE). Once we switch to the new compiler will be able to use (compile against) an mscorlib.dll assembly that does not contains SRE which will make spot those errors at compile time. Regards, Sebastien On Sat, Nov 12, 2011 at 2:21 PM, Michael Muegel mike.mue...@gmail.com wrote: Why is the System.Reflection.Emit namespace in mscorlib? It is not allowed on the device. If it is needed for some internal workings, wouldn't it be best to provide some way to give a compiler error always, including on the simulator target. I mean line C# level errors. As an end user, what I see is this if I stumble upon some 3rd party code that uses System.Reflection.Emit: On simulator, compiles/links/runs fine On device, compiles but gives linking error when Link SDK assemblies only mode is used On device, compiles and links when Don't Link mode is used, but gives crash error on device All three are very poor user experiences and lead to end user questions, confusion, and frustration. -Mike ___ 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
Re: [MonoTouch] Why is System.Reflection.Emit in MonoTouch mscorlib?
Hello Mike, That's a very good idea! I'll look into it. Thanks Sebastien On Sat, Nov 12, 2011 at 3:58 PM, Mike Muegel mike.mue...@gmail.com wrote: Thanks Sebastien. In the mean time, in your compiler mscorelib.dll could you consider using ObsoleteAttribute with custom message to flag the various Emit types? A hack, but at least a warning would show up w/ some useful text. -Mike On Sat, Nov 12, 2011 at 2:40 PM, Sebastien Pouliot sebast...@xamarin.com wrote: Hello Michael, This is a planned enhancement but it requires us to switch to the new compiler and version of mono. Right now MonoTouch ships with two mscorlib.dll, one for the compiler (smcs) and one for the runtime. The former is needed by the compiler (used for itself and compiled against) and must include System.Reflection.Emit (SRE). Once we switch to the new compiler will be able to use (compile against) an mscorlib.dll assembly that does not contains SRE which will make spot those errors at compile time. Regards, Sebastien On Sat, Nov 12, 2011 at 2:21 PM, Michael Muegel mike.mue...@gmail.com wrote: Why is the System.Reflection.Emit namespace in mscorlib? It is not allowed on the device. If it is needed for some internal workings, wouldn't it be best to provide some way to give a compiler error always, including on the simulator target. I mean line C# level errors. As an end user, what I see is this if I stumble upon some 3rd party code that uses System.Reflection.Emit: On simulator, compiles/links/runs fine On device, compiles but gives linking error when Link SDK assemblies only mode is used On device, compiles and links when Don't Link mode is used, but gives crash error on device All three are very poor user experiences and lead to end user questions, confusion, and frustration. -Mike ___ 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
Re: [MonoTouch] Is iPhoneOSGameView timing bug still not fixed?
Hello, It's fixed but has not yet been released. If you updated to 5.0.x then you can use the assembly attached to the bug report [1] as a workaround (it's not the same as the real fix, but it won't throw exceptions). Regards, Sebastien [1] http://bugzilla.xamarin.com/show_bug.cgi?id=1366 On Tue, Nov 22, 2011 at 1:13 AM, Nikita nikitakar...@gmail.com wrote: I'm using latest MonoTouch from 4x series and my application suddenly crashed with following stacktrace: Nov 18 19:56:44 unknown timed[240] Notice: (Note ) CoreTime: Want active time in 39.29hrs. Need active time in 122.62hrs. Nov 18 19:56:54 unknown timed[240] Notice: (Note ) CoreTime: Setting system time to 11/18/2011 18:56:52 from NTP Nov 18 19:56:52 unknown timed[240] Notice: (Note ) CoreTime: Not setting time zone to Europe/Warsaw from MobileLockdown Nov 18 19:56:52 unknown UIKitApplication:game9ios[0x4bad][216] Notice: Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of range. Nov 18 19:56:52 unknown UIKitApplication:game9ios[0x4bad][216] Notice: at OpenTK.FrameEventArgs.set_Time (Double value) [0x0] in filename unknown:0 Nov 18 19:56:52 unknown UIKitApplication:game9ios[0x4bad][216] Notice: at OpenTK.Platform.iPhoneOS.iPhoneOSGameView.RunIteration () [0x0] in filename unknown:0 Nov 18 19:56:52 unknown UIKitApplication:game9ios[0x4bad][216] Notice: at MonoTouch.Foundation.NSActionDispatcher.Apply () [0x0] in filename unknown:0 Nov 18 19:56:52 unknown UIKitApplication:game9ios[0x4bad][216] Notice: at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0] in filename unknown:0 I suppose it's a well known bug in OpenTK when delta time became below zero because of network time update. Is it fixed in latest MonoTouch 5 so I can upgrade and not hit this issue? -- View this message in context: http://monotouch.2284126.n4.nabble.com/Is-iPhoneOSGameView-timing-bug-still-not-fixed-tp4094660p4094660.html 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
Re: [MonoTouch] dll file not loading for registration
Hello, This is likely because your assembly refers to types that does not exists in MonoTouch base class libraries. That would result in a TypeLoadException at runtime (and in this case the error message you see would be wrong). As a general rule you need to re-compile assemblies to make them work with MonoTouch. Doing so will ensure the assembly will be usable (or at least loadable) at runtime. In the case of Newtonsoft.Json you'll find that it requires modification to build properly. You can find an already adapted version in [1] (note: make sure to use the latest code, not the existing binaries, to avoid issues outside the simulator). Regards, Sebastien [1] https://github.com/chrisntr/Newtonsoft.Json On Fri, Nov 18, 2011 at 4:29 PM, Diniden lasermat...@yahoo.com wrote: Hello I am trying to use a common JSON dll in my monotouch project. I add it into my references and monodevelop recognizes the dll just fine; however, when I compile the project I get this in the application output: Could not load 'Newtonsoft.Json' for registration. This could be due to an outdated assembly kept by the simulator, location: /Projects/AddedReferences/Newtonsoft.Json.dll I have tried deleting the project completely from the simulator and rebuilding, but nothing seems to get the compiler to be happy with the dll. Is there something I'm missing or should do to fix this problem? Thanks for any help! -- View this message in context: http://monotouch.2284126.n4.nabble.com/dll-file-not-loading-for-registration-tp4084804p4084804.html 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
Re: [MonoTouch] Any ideas what this is?
Hello Dean, Are you by any chance running inside a virtual machine ? This is the only time I've seen this reported. The same sample code, again inside the simulator, did not show those errors outside a VM. Sebastien On Tue, Dec 6, 2011 at 1:42 PM, Dean Cleaver dean.clea...@xceptionsoftware.com wrote: Comes up when debugging in the simulator: 2011-12-06 12:17:14.217 Valet[4678:23023] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 2011-12-06 12:17:14.218 Valet[4678:23023] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 2011-12-06 12:17:14.220 Valet[4678:23023] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 2011-12-06 12:17:14.221 Valet[4678:23023] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation ___ 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
Re: [MonoTouch] Any ideas what this is?
Thanks for confirming Dimitris. Note that by virtual machine I did not mean an hackintosh - but just running on an OSX VM on Apple hardware. It's also possible that the messages only happen on some specific hardware (and that the VM part was unrelated). I don't recall if I used my iMac or my Mac Book Air on the test case. I'll try this again using both. Sebastien On Tue, Dec 6, 2011 at 2:07 PM, Dimitris Tavlikos jimi...@gmail.com wrote: I am also having these errors whenever I am using MPMusicPlayerController (or an MPMediaQuery, can't remember at which point exactly). On a MacBook, on the simulator only. Dimitris Tavlikos Software Developer Email: jimi...@gmail.com Twitter: http://twitter.com/#!/dtavlikos Blog: http://software.tavlikos.com On 6 Dec 2011, at 9:00 PM, Sebastien Pouliot wrote: Hello Dean, Are you by any chance running inside a virtual machine ? This is the only time I've seen this reported. The same sample code, again inside the simulator, did not show those errors outside a VM. Sebastien On Tue, Dec 6, 2011 at 1:42 PM, Dean Cleaver dean.clea...@xceptionsoftware.com wrote: Comes up when debugging in the simulator: 2011-12-06 12:17:14.217 Valet[4678:23023] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 2011-12-06 12:17:14.218 Valet[4678:23023] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 2011-12-06 12:17:14.220 Valet[4678:23023] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 2011-12-06 12:17:14.221 Valet[4678:23023] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation ___ 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 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Any ideas what this is?
Dean, Can you describe the mac hardware you're using ? maybe we'll find a pattern - even if I suspect this is not MonoTouch related :-) Thanks, Sebastien On Tue, Dec 6, 2011 at 5:59 PM, Dean Cleaver dean.clea...@xceptionsoftware.com wrote: Hi Sebastien, No - I'm not running in a VM - native OSX. Don't even have any VMs running on that machine. Dino -Original Message- From: Sebastien Pouliot [mailto:sebast...@xamarin.com] Sent: Tuesday, December 06, 2011 1:00 PM To: Dean Cleaver Cc: monotouch@lists.ximian.com Subject: Re: [MonoTouch] Any ideas what this is? Hello Dean, Are you by any chance running inside a virtual machine ? This is the only time I've seen this reported. The same sample code, again inside the simulator, did not show those errors outside a VM. Sebastien On Tue, Dec 6, 2011 at 1:42 PM, Dean Cleaver dean.clea...@xceptionsoftware.com wrote: Comes up when debugging in the simulator: 2011-12-06 12:17:14.217 Valet[4678:23023] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resourc es/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFou ndation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSim ulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFou ndation 2011-12-06 12:17:14.218 Valet[4678:23023] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resourc es/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFou ndation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSim ulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFou ndation 2011-12-06 12:17:14.220 Valet[4678:23023] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/Apple HDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFou ndation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSim ulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFou ndation 2011-12-06 12:17:14.221 Valet[4678:23023] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/Apple HDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFou ndation Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSim ulator5.0.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFou ndation ___ 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
Re: [MonoTouch] Very weird crash
Hello Pavel, With a bit of IL (since C# is a bit restrictive when throwing things) I was able to duplicate the same crash/assert you had. Once I added the workaround try/catch code the exception was catched, as expected - i.e. without a crash. I'll fix the next releases of MonoTouch to cover this case properly. Please confirm to me that it does work in your case too! Thanks! Sebastien On Wed, Dec 7, 2011 at 3:15 PM, Pavel Sich pavel.s...@me.com wrote: So thanks to the great guys (Sebastien and Rodrigo) at Xamarin there seems to be a fix for this issue, which looks like linker issue - stripping out the part of the framework that is not used directly but might be introduced during the DataContract use and subsequent exception in it. If proved in the QA process, will inform you about the outcome so you can make a note for that particular type of exceptions inside mono runtime. --- Hello Pavel, You're right there's no public constructor to simply create an instance. Also tThe `WrappedException` property expose a field that is shared with the runtime and it will need to be present (not linked out) in managed code. Something like this: try { } catch (RuntimeWrappedException rwe) { Console.WriteLine (rwe.WrappedException); } should do the trick (i.e. satisfy the runtime/managed contract). Sebastien On Wed, Dec 7, 2011 at 1:30 PM, Pavel Sich pavel.s...@me.com wrote: - Hide quoted message - Will do and will update the Monotouch list then. Also class RuntimeWrappedException has no constructors defined (at least compiler says so). So what I did is that I explicitly catch the exception in try catch block (which was catching Exception objects) and use that in writing it to console output (so it is being used) and marked the method as Preserve. Is this correct approach then? -- Pavel Sich @sichy On Wednesday, December 7, 2011 at 7:22 PM, Sebastien Pouliot wrote: Hey, Please always c.c. the mailing-list when you reply. Right now no one else with a similar issue will be able to google any solution in the future. Pavel, if you don't mind could you c.c. this back to the list and edit/remove your code or anything else that could be sensitive to you. Rodrigo, yes the method would work (with any linker setting) to ensure the RuntimeWrappedException type is not removed by the linker. If this is confirmed (as the fix) I can add this rule to the linker (so it won't be needed in the future). Note that something is triggering this exception, from time to time, and the application needs to handle this (or it will fail with a different error). IOW this would fix the present crash, not the intermittent problem with the application. Sebastien On Wed, Dec 7, 2011 at 1:05 PM, Rodrigo Kumpera kump...@xamarin.com wrote: Hi Pavel, I believe the issue is that System.Runtime.CompilerServices.RuntimeWrappedException is been linked away. To resolve that, I believe you can add the following to your main class: [Preserve] static void Foo () { new System.Runtime.CompilerServices.RuntimeWrappedException (); } Sebastien, is that the right idiom for such things? Regards, Rodrigo -- Pavel Sich @sichy On Wednesday, December 7, 2011 at 7:52 PM, Sebastien Pouliot wrote: Hello Pavel, You're right there's no public constructor to simply create an instance. Also tThe `WrappedException` property expose a field that is shared with the runtime and it will need to be present (not linked out) in managed code. Something like this: try { } catch (RuntimeWrappedException rwe) { Console.WriteLine (rwe.WrappedException); } should do the trick (i.e. satisfy the runtime/managed contract). Sebastien On Wed, Dec 7, 2011 at 1:30 PM, Pavel Sich pavel.s...@me.com wrote: - Hide quoted message - Will do and will update the Monotouch list then. Also class RuntimeWrappedException has no constructors defined (at least compiler says so). So what I did is that I explicitly catch the exception in try catch block (which was catching Exception objects) and use that in writing it to console output (so it is being used) and marked the method as Preserve. Is this correct approach then? -- Pavel Sich @sichy On Wednesday, December 7, 2011 at 7:22 PM, Sebastien Pouliot wrote: Hey, Please always c.c. the mailing-list when you reply. Right now no one else with a similar issue will be able to google any solution in the future. Pavel, if you don't mind could you c.c. this back to the list and edit/remove your code or anything else that could be sensitive to you. Rodrigo, yes the method would work (with any linker setting) to ensure the RuntimeWrappedException type is not removed by the linker. If this is confirmed (as the fix) I can add this rule to the linker (so it won't be needed in the future). Note that something is triggering this exception, from time to time, and the application needs to handle this (or it will fail with a different
Re: [MonoTouch] No NSTimeInterval?
NSTimeInterval is mapped to System.Double (i.e. `double` in C#). On Sat, Dec 10, 2011 at 6:53 PM, technohead dj_technoh...@yahoo.com wrote: Think I found a solution, comparing the property SecondsSinceReferenceDate on the NSDate objects. -- View this message in context: http://monotouch.2284126.n4.nabble.com/No-NSTimeInterval-tp4181491p4181500.html 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
Re: [MonoTouch] Exception: JIT Compile
Hello, There are some limitations but we try to remove them, whenever possible, and can help you find workaround in the mean time. To help us do so please fill bug reports. One for each case with a test case so it can be reproduced. Thanks Sebastien On Sat, Dec 10, 2011 at 2:36 AM, Mittchel mittc...@gmail.com wrote: Can anyone help me out? Is it a MT bug or my fault? Verstuurd vanaf mijn iPhone Op 9 dec. 2011 om 19:44 heeft Tossing, Chris ctoss...@touchcominc.com het volgende geschreven: I don’t think that should matter, but I’m not an expert – I just stumbled across that fix in searching. I placed those three arguments in the “Additional mtouch arguments” for my main application project, and my device-specific issues were resolved. I hoped that might help you resolve your current situation, but it looks like it might be a different problem. Regards, Chris From: Mittchel debaass [mailto:mittc...@gmail.com] Sent: Friday, December 09, 2011 1:25 PM To: Tossing, Chris Cc: monotouch@lists.ximian.com Subject: Re: [MonoTouch] Exception: JIT Compile Chris, I did place it in there. The Twitterizer is a different project inside my solution, does this mether? Because those arguments didn't fix it for me, sadly. Thanks for your help guys, hopefully we can find a solution that works! 2011/12/9 Tossing, Chris ctoss...@touchcominc.com Make sure you are in the correct screen (“iPhone Build” – not “Compiler”), and that you are entering into the field that has the label “Additional mtouch arguments”. · Project Options Build iPhone Build General tab Additional Options section Additional mtouch arguments Thank you, Chris The details of this company are as follows: Touchcom Inc, Registered Office: 21 North Avenue, Burlington, MA 01803. This communication may contain information which is confidential, personal and/or privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s), please note that any distribution, forwarding, copying or use of this communication or the information in it is strictly prohibited. Any personal views expressed in this e-mail are those of the individual sender and the company does not endorse or accept responsibility for them. Prior to taking any action based upon this e-mail message, you should seek appropriate confirmation of its authenticity. This e-mail has been scanned for all viruses by MessageLabs. The details of this company are as follows: Touchcom Inc, Registered Office: 21 North Avenue, Burlington, MA 01803. This communication may contain information which is confidential, personal and/or privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s), please note that any distribution, forwarding, copying or use of this communication or the information in it is strictly prohibited. Any personal views expressed in this e-mail are those of the individual sender and the company does not endorse or accept responsibility for them. Prior to taking any action based upon this e-mail message, you should seek appropriate confirmation of its authenticity. This e-mail has been scanned for all viruses by MessageLabs. ___ 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
Re: [MonoTouch] Unit Testing MonoTouch Library Project
Hello, On Mon, Dec 12, 2011 at 8:26 AM, Nic Wise n...@fastchicken.co.nz wrote: Sebastian has done a nice bit of work around this http://spouliot.wordpress.com/ I have several blog entries on the subject (use the touch.unit category). The first one is: http://spouliot.wordpress.com/2011/09/28/unit-testing-and-monotouch/ I'd expect it to work it's way into the main MT installer before too long :) It's already part of MonoTouch 5.1.x (beta) and will be part of 5.2 (stable). http://spouliot.wordpress.com/2011/11/16/touch-unit-getting-closer-to-you/ Have fun! Sebastien On Tue, Dec 6, 2011 at 18:55, James Hughes ja...@yobriefca.se wrote: Sorry for the rather generic question but what is the best way to write unit tests for a MonoTouch library project? My approach of using NUnit won't work because the target project and test project are built using different frameworks and I am at a loss of the right approach. James ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ 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
Re: [MonoTouch] Application has increased with a factor 7!!!!
Hello Danny, It's hard to see why such thing would occur without more details. Could you please fill a bug report and include the Build Output from MonoDevelop ? Also could you add -v -v -v to the extra mtouch arguments (in the project options) so we'll have more details about the exact steps (and options) that were taken to create the application. Thanks, Sebastien Le 2011-12-12 à 16:36, Danny Pronk dpr...@probe-asp.eu a écrit : Hi everybody, I recently updated to the latest beta version of MonoTouch. And all of a sudden all my executable's have increased with a factor 7 without me changing one thing in my projects. Did any of you have seen this behavior and now how to reduce things back ??? Or should I just go back to Monotouch latest stable release(official release)? For your reference, first my app was 9,3 Mb now they are 66 Mb :-( I really can't see a real reason for this. Regards Danny ___ 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
Re: [MonoTouch] Crash on device during a declare of ClientBase
Hello Mark, It could be several reasons. A similar question was asked on stackoverflow [1] this week and while your problem might be different the instructions (to get more details) still applies. Regards, Sebastien [1] http://stackoverflow.com/q/8507579/220643 On Wed, Dec 14, 2011 at 9:56 AM, maboulianne maboulia...@gmail.com wrote: Hi, I try to invoke a wcf web service in my mono touch application. On simulator all is working great. On device I received the error: EXC_CRASH (SIGABRT) I generate my proxy class using the tool: SlSvcUtil.exe C:\Program Files (x86)\Microsoft SDKs\Silverlight\v3.0\Tools\SlSvcUtil.exe /noConfig ... The error occur when I create a new object of my ClientBase Any idea ?? Thanks Mark -- View this message in context: http://monotouch.2284126.n4.nabble.com/Crash-on-device-during-a-declare-of-ClientBase-tp4195303p4195303.html 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
Re: [MonoTouch] MonoTouch crash on launch on device
Hello, Is your application using native libraries ? If so is it possible it's not available / different on one of your macs ? Also can you attach the output of: /Developer/MonoTouch/usr/bin/mtouch --logdev to your reply. E.g. start the above command from a terminal window, lauch your app (it will crash) then copy/paste the output in your reply (or attach it). Thanks Sebastien On Mon, Dec 19, 2011 at 8:18 AM, kpijnenburg kpijnenb...@supportware.nl wrote: Hi, I'm pulling my hairs(i don't have many) out with this issue. I have 2 macs which i use for development of my iPad app created with Monotouch. I use the latest 5.0 SDK from Apple, the latest MonoDevelop(2.8.5) and the latest MonoTouch(5.0.4) on BOTH macs. On BOTH macs the app works fine in the simulator. On 1 mac, apps produced with monodevelop work fine on the device with 5.0.1. On the other mac all of my apps crash at startup on the same device. I tried cleaning builds, trying deleting the app on the device nothing works. In the log: Dec 19 13:59:00 unknown UIKitApplication:com.supportware.MyFootballProHD[0xc98a][3174] Notice: Stacktrace: Dec 19 13:59:00 unknown UIKitApplication:com.supportware.MyFootballProHD[0xc98a][3174] Notice: Native stacktrace: Dec 19 13:59:00 unknown UIKitApplication:com.supportware.MyFootballProHD[0xc98a][3174] Notice: 0 MyFootballProiPad 0x0050dd84 MyFootballProiPad + 5295492 Dec 19 13:59:00 unknown UIKitApplication:com.supportware.MyFootballProHD[0xc98a][3174] Notice: 1 MyFootballProiPad 0x004e6920 MyFootballProiPad + 5134624 Dec 19 13:59:00 unknown UIKitApplication:com.supportware.MyFootballProHD[0xc98a][3174] Notice: 2 libsystem_c.dylib 0x34ce1539 _sigtramp + 48 Dec 19 13:59:00 unknown UIKitApplication:com.supportware.MyFootballProHD[0xc98a][3174] Notice: 3 ??? 0x2fdff4d4 0x0 + 803206356 Dec 19 13:59:00 unknown UIKitApplication:com.supportware.MyFootballProHD[0xc98a][3174] Notice: = Dec 19 13:59:00 unknown UIKitApplication:com.supportware.MyFootballProHD[0xc98a][3174] Notice: Got a SIGSEGV while executing native code. This usually indicates Dec 19 13:59:00 unknown UIKitApplication:com.supportware.MyFootballProHD[0xc98a][3174] Notice: a fatal error in the mono runtime or one of the native libraries Dec 19 13:59:00 unknown UIKitApplication:com.supportware.MyFootballProHD[0xc98a][3174] Notice: used by your application. Dec 19 13:59:00 unknown UIKitApplication:com.supportware.MyFootballProHD[0xc98a][3174] Notice: = In the crash report: Incident Identifier: 88663F57-BF27-44F1-B9A6-8CB17B5812D2 CrashReporter Key: 5f81abdf74c512922ebb8413d89c359813d6eca7 Hardware Model: iPad1,1 Process: MyFootballProiPad [3178] Path: /var/mobile/Applications/36129040-3CF4-44B0-B410-F4F864189A5D/MyFootballProiPad.app/MyFootballProiPad Identifier: MyFootballProiPad Version: ??? (???) Code Type: ARM (Native) Parent Process: launchd [1] Date/Time: 2011-12-19 13:59:13.657 +0100 OS Version: iPhone OS 5.0.1 (9A405) Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_PROTECTION_FAILURE at 0x008651c0 Crashed Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x3642a32c 0x36419000 + 70444 1 libsystem_c.dylib 0x34cd6f54 0x34c89000 + 319316 2 libsystem_c.dylib 0x34ccffe4 0x34c89000 + 290788 3 MyFootballProiPad 0x0050e0ac mono_handle_native_sigsegv (mini-exceptions.c:2249) 4 MyFootballProiPad 0x004e6918 mono_sigsegv_signal_handler (mini.c:5921) 5 libsystem_c.dylib 0x34ce1532 0x34c89000 + 361778 6 ??? 0x2fdff4cc 0 + 803206348 Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread 1: 0 libsystem_kernel.dylib 0x3641a3b4 0x36419000 + 5044 1 libdispatch.dylib 0x37140e78 0x37134000 + 52856 2 libdispatch.dylib 0x37140b96 0x37134000 + 52118 Thread 2: 0 libsystem_kernel.dylib 0x3642acd4 0x36419000 + 72916 1 libsystem_c.dylib 0x34c9330a 0x34c89000 + 41738 2 libsystem_c.dylib 0x34c9309c 0x34c89000 + 41116 Thread 3: 0 libsystem_kernel.dylib 0x3642acd4 0x36419000 + 72916 1 libsystem_c.dylib 0x34c9330a 0x34c89000 + 41738 2 libsystem_c.dylib 0x34c9309c 0x34c89000 + 41116 Thread 0 crashed with ARM Thread State: r0: 0x r1: 0x r2: 0x0001 r3: 0x r4: 0x0006 r5: 0x3f3d1ce8 r6: 0x r7: 0x2fdfe97c r8:
Re: [MonoTouch] MonoTouch crash on launch on device
On Mon, Dec 19, 2011 at 8:27 AM, kpijnenburg kpijnenb...@supportware.nl wrote: Hi Sebastien, In response to your remark about the native libraries, i just chose Link all assemblies instead of the deafult SDK assemblies only. It's a bit confusing since there are two linkers: 1. the managed one (which is the one you mention above); 2. the unmanaged linker (gcc's linker) which will link the final MonoTouch application with any native libraries (the iOS frameworks and any other static library that you added to your project). Now it runs on my device. Can you release an app with Link All Assemblies? Is this OK? Release? Definitively! That's the setting that will result in the smallest application size possible. Note that it requires a bit more testing since the (managed) linker could be removing stuff that your application is using indirectly (e.g. using reflection). The Link SDK assemblies only (default) won't touch your application code. However since the Link all assemblies is a superset of Link SDK assemblies only it should _not_ fix your build. Something else must be different between the projects on your two macs. Sebastien ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Binding to Static Framework and using Core.Bluetooth
Hello Walt, Older (beta) releases of XCode did not ship CoreBluetooth and this has affected a few people in the past. Please verify that you have the latest XCode 4.2 installed. e.g. 4C199 on Snow Leopard and 4D199 on Lion Sebastien On Sun, Dec 18, 2011 at 12:59 PM, Walter Szewelanczyk walterszewelanc...@gmail.com wrote: Thanks Jeff, I have tried what you suggested and several different variations of the arguments but basically it all seems to come down to the same issue, the system can't seem to find the CoreBluetooth library. Isn't this supported as of version 5? Walt On Thu, Dec 15, 2011 at 11:14 AM, Jeff Stedfast j...@xamarin.com wrote: Hi Walt, This is a very good question and unfortunately I do not have an answer for it :-( All I can suggest is that you try reordering the arguments like this: -v -v -v -cxx -gcc_flags -framework ExternalAccessory -framework Security -F${ProjectDir}/Lib -framework WFConnector -ObjC -lstdc++ -all_load Also, you might try dropping -all_load? Do you need that? If you find out, could you post a follow-up? Meanwhile, I've added a feature request for our LinkWithAttribute to be aware of framework libraries as well. Jeff On Tue, Dec 13, 2011 at 5:56 AM, retlaW walterszewelanc...@gmail.com wrote: I had previously tried to get the Wahoo Fitness ANT+ api working with Monotouch but it appeared to have the dreaded THUMB issue. Now that 5.1.1 is supposed to resolve that I went to try again. Previously the API was distributed as a static lib (.a file) but it is now a static framework. I have not seen any official docs on how to bind to a static framework. I have seen another post that referes to using -F{Dir containing the framework} and using -framework {static framework name}. I guess I am wondering if this is correct? I am getting errors while building that appear to be related to the fact that the static framework requires CoreBluetooth. If I link SDK files only with no build options to reference CoreBluetooth I get errors that some symbols are missing. If I try to include a -framework or -weak_framework with CoreBluetooth I get an error that it can't find CoreBluetooth. If I dont link any assemblies I still get ld: framework not found CoreBluetooth. This message shows up even though I do not reference the CoreBluetooth in my build options which are as follows : -v -v -v -cxx -gcc_flags -F${ProjectDir}/Lib -framework WFConnector -framework ExternalAccessory -framework Security -ObjC -lstdc++ -all_load The framework I am trying to bind is the WFConnector.framework. Reading the 5.0 changes it appears that CoreBluetooth should be available, but it may have something to do with me not setting up the WFConnector.framework correctly. Any thoughts on this would be greatly appreciated. Walt -- View this message in context: http://monotouch.2284126.n4.nabble.com/Binding-to-Static-Framework-and-using-Core-Bluetooth-tp4190028p4190028.html 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 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Strange SSL/HTTPS error with WebClient
Hello Nic, Wildcard certificates have been supported by Mono for quite some time and since it's working for other people (right?) I think it's unlikely to be related to certificate validation. Is there any way you can get the full exception ? that will confirm if this occurs at negotiation time or later. Sebastien On Mon, Dec 19, 2011 at 10:45 AM, Nic Wise n...@fastchicken.co.nz wrote: Hi there I'm doing this in one of my apps: ServicePointManager.ServerCertificateValidationCallback = (sender, cert, chain, ssl) = true; WebClient wc = new WebClient(); string s = wc.DownloadString(http://cust.domain.com/verify;); //do some stuff with it --- (ok, so it's a LITTLE more than that - I set some headers to accept XML, and set the timeout to around 30 seconds, and plug in a cookie container) and on one customer, I'm getting this error back: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure However, I'm only getting it for this one customer, but he's getting it on WIFI and 3G. The certificate is a wildcard one, tho it always has been Below is a dump from curl which does exactly what I'm doing: * About to connect() to bigted.freeagent.com port 443 (#0) * Trying 94.236.51.1... connected * Connected to bigted.freeagent.com (94.236.51.1) port 443 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs * SSLv3, TLS handshake, Client hello (1): * SSLv3, TLS handshake, Server hello (2): * SSLv3, TLS handshake, CERT (11): * SSLv3, TLS handshake, Server key exchange (12): * SSLv3, TLS handshake, Server finished (14): * SSLv3, TLS handshake, Client key exchange (16): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSL connection using DHE-RSA-AES256-SHA * Server certificate: * subject: /O=*.freeagent.com/OU=Domain Control Validated/CN=*.freeagent.com * start date: 2011-04-18 10:53:44 GMT * expire date: 2013-04-18 10:53:44 GMT * subjectAltName: bigted.freeagent.com matched * issuer: /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287 * SSL certificate verify ok. * Server auth using Basic with user 'n...@fc.com' GET /verify HTTP/1.1 Authorization: Basic xx User-Agent: curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18 Host: bigted.freeagent.com Accept: application/xml Content-Type: application/xml HTTP/1.1 200 OK Server: nginx/1.0.6 Date: Mon, 19 Dec 2011 15:42:12 GMT Content-Type: application/xml; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Status: 200 OK User-Id: 6309 User-Permission-Level: 8 Company-Type: UkLimitedCompany Company-Currency: GBP Company-Mileage-Unit: miles Cache-Control: no-cache X-UA-Compatible: IE=Edge,chrome=1 Set-Cookie: _freeagent_session=xx; domain=.freeagent.com; path=/; expires=Mon, 19-Dec-2011 16:12:12 GMT; secure; HttpOnly; max-age=1800 X-Runtime: 0.015869 X-Rev: 5aa7e9c X-Host: web3 * Connection #0 to host bigted.freeagent.com left intact * Closing connection #0 * SSLv3, TLS alert, Client hello (1): Anyone (Sebastian?) got any ideas? Cheers Nic -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ 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
Re: [MonoTouch] Assistance tracing an intermittent crash
Hello Brian, 9 PEDICATiPad 0x008ef950 monoeg_g_log (goutput.c:145) ^ that function in your stack trace means the runtime was tried to output something (a message) to you. Try to run the following in a terminal window /Developer/MonoTouch/usr/bin/mtouch --logdev Then run your application on your device, crash it and look at the terminal window. Finally copy/paste the output to your reply (or a bug report). Regards, Sebastien On Mon, Dec 19, 2011 at 4:36 PM, Brian Schuth br...@alphce.com wrote: I'm seeing crashes in my app that, if I weren't working in a managed environment, I would swear were memory management problems. The app runs fine in the simulator. The crashes happen in different places in the app depending on what previous actions I have taken. The crashes occur in places in the app that have worked correctly just before. I have managed to find a particular set of actions that will reliably cause a crash -- and find that it occurs in a LINQ call, a call that succeeds the two previous times it was run. The objects/collections in question appear to be OK in the debugger, but the app crashes anyway. I attach a crash log from one of these reproducible crashes. I expect no one can figure out what is wrong from this -- but perhaps folks might have some strategies or other ways to flush out these problems? I tried using Instruments to see if something was actually leaking, but Instruments is crashing when I attempt to track allocations (it runs just fine if I'm profiling CPU). Thanks for any help or moral support! The crash report is below; line 19 in Thread 0 is where LINQ finally crashes out... bjs Incident Identifier: 42321689-7910-4CB2-927C-758842A9234E CrashReporter Key: 32d3588afd78eddfe9aef431b0a8e238c1648c6d Hardware Model: iPad2,1 Process: PEDICATiPad [4040] Path: /var/mobile/Applications/329D7477-602F-4981-8E7E-050F7AF7A026/PEDICATiPad.app/PEDICATiPad Identifier: PEDICATiPad Version: ??? (???) Code Type: ARM (Native) Parent Process: launchd [1] Date/Time: 2011-12-19 14:52:25.233 -0500 OS Version: iPhone OS 5.0.1 (9A405) Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x, 0x Crashed Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x304c732c 0x304b6000 + 70444 1 libsystem_c.dylib 0x37968f54 0x3791b000 + 319316 2 libsystem_c.dylib 0x37961fe4 0x3791b000 + 290788 3 PEDICATiPad 0x0079ef68 mono_handle_native_sigsegv (mini-exceptions.c:2249) 4 PEDICATiPad 0x007c8808 sigabrt_signal_handler (mini-posix.c:196) 5 libsystem_c.dylib 0x37973532 0x3791b000 + 361778 6 libsystem_c.dylib 0x37968f54 0x3791b000 + 319316 7 libsystem_c.dylib 0x37961fe4 0x3791b000 + 290788 8 PEDICATiPad 0x008ef8e4 monoeg_g_logv (goutput.c:135) 9 PEDICATiPad 0x008ef950 monoeg_g_log (goutput.c:145) 10 PEDICATiPad 0x007983e0 get_numerous_trampoline (aot-runtime.c:3460) 11 PEDICATiPad 0x00798b7c mono_aot_get_imt_thunk (aot-runtime.c:3588) 12 PEDICATiPad 0x00877418 initialize_imt_slot (object.c:1245) 13 PEDICATiPad 0x008779b4 build_imt_slots (object.c:1371) 14 PEDICATiPad 0x00877d04 mono_vtable_build_imt_slot (object.c:1438) 15 PEDICATiPad 0x0079fb28 mono_convert_imt_slot_to_vtable_slot (mini-trampolines.c:196) 16 PEDICATiPad 0x007a00b4 common_call_trampoline (mini-trampolines.c:326) 17 PEDICATiPad 0x007a1118 mono_vcall_trampoline (mini-trampolines.c:671) 18 PEDICATiPad 0x004456d0 generic_trampoline_vcall (mscorlib.dll.6.s:194027) 19 PEDICATiPad 0x002aa604 System_Linq_Enumerable__CreateWhereIteratorc__Iterator1E_1_MoveNext (System.Core.dll.6.s:2660) 20 PEDICATiPad 0x002f2db8 System_Collections_Generic_List_1_AddEnumerable_System_Collections_Generic_IEnumerable_1_T (mscorlib.dll.6.s:32446) 21 PEDICATiPad 0x002f22f0 System_Collections_Generic_List_1__ctor_System_Collections_Generic_IEnumerable_1_T (mscorlib.dll.6.s:31971) 22 PEDICATiPad 0x002a8708 System_Linq_Enumerable_ToArray_TSource_System_Collections_Generic_IEnumerable_1_TSource (System.Core.dll.6.s:1718) 23 PEDICATiPad 0x002ab2d0 System_Linq_QuickSort_1__ctor_System_Collections_Generic_IEnumerable_1_TElement_System_Linq_SortContext_1_TElement (System.Core.dll.6.s:3108) 24 PEDICATiPad 0x002abb94 System_Linq_QuickSort_1__Sortc__Iterator22_MoveNext (System.Core.dll.6.s:3386) 25 PEDICATiPad 0x002a7928
Re: [MonoTouch] Newtonsoft.Json problem with Twitterizer
Hello, It looks like your using an old and/or miscomputed version of the assembly (that requires things, like SRE, that is not available on iOS devices). See http://stackoverflow.com/q/8342567/220643 for a similar question (and answers). Regards, Sebastien On Wed, Dec 21, 2011 at 6:45 AM, kpijnenburg kpijnenb...@supportware.nl wrote: I'm getting a little further. I found somewhere online a monotouch twitterizer version Netwonsoft.JSON. It now correctly works in the Simulator but on the device i get: Dec 21 12:36:21 unknown UIKitApplication:com.supportware.MyFootballProHD[0x99ac][3488] Notice: Unhandled Exception: System.ExecutionEngineException: Attempting to JIT compile method 'System.Linq.OrderedEnumerable`1System.Collections.Generic.KeyValuePair`2lt;string, object:CreateOrderedEnumerable (System.Func`2System.Collections.Generic.KeyValuePair`2lt;string, object, object,System.Collections.Generic.IComparer`1,bool)' while running with --aot-only. This has everything to do with AOT iguess. There are some tricks to declare the type in code so it wil get aot'd. How would i do this? In this case with this type? Thanks in advance. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Newtonsoft-Json-problem-with-Twitterizer-tp4219606p4221275.html 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
Re: [MonoTouch] NSObject Linker Issue introduced with 5.0.4
Hello, MakeDirty does not exists in 5.0.x. This is something new in 5.1.x. My guess is that your solution was built with 5.1.x then you downgraded to 5.0.x. A MonoDevelop bug [1] (now fixed but not released) won't rebuild all dependencies when MonoTouch is updated. So the linker was analyzing a new code base and trying the find matching members in the old assemblies (resulting in the exception). Updating to 5.1.x solves this (as you did) but a full clean and rebuild on 5.0.x should have done the same. Regards, Sebastien [1] http://bugzilla.xamarin.com/show_bug.cgi?id=1502 On Wed, Dec 21, 2011 at 1:08 PM, Augmental christopherhatto...@gmail.com wrote: I can confirm that this issue disappeared when I updated to 5.1.1 (Beta) using exactly the same source code / project. -- View this message in context: http://monotouch.2284126.n4.nabble.com/NSObject-Linker-Issue-introduced-with-5-0-4-tp4222474p4222621.html 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
Re: [MonoTouch] Two problem publish app in AppStore with sqlite database
Hello, I can confirm that /usr/lib/system/libsystem_kernel.dylib does not exists on my Snow Leopard system but I do have it on Lion Sebastien On Fri, Dec 23, 2011 at 10:18 AM, johnHolmes francesco.colo...@gmail.com wrote: Snow Leopard Os X 10.6.8 -- View this message in context: http://monotouch.2284126.n4.nabble.com/Two-problem-publish-app-in-AppStore-with-sqlite-database-tp4215141p4228932.html 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
Re: [MonoTouch] Method transitionWithView missing from Transition overloads?
Hello, This is being handled in stackoverflow http://stackoverflow.com/q/8802376/220643 Regards, Sebastien On Tue, Jan 10, 2012 at 6:22 AM, Mikkel Lønow mloe...@gmail.com wrote: Hi, Transition is a static method on UIView. The signature is correct. According to http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html the completion parameter can be null. Mikkel On Tue, Jan 10, 2012 at 12:10, Emanuele Sabetta fmuad...@gmail.com wrote: I need to use the transitionWithView method. When I search in the Rosetta docs ( http://tirania.org/tmp/rosetta.html ) I find this: Selector: transitionFromView:toView:duration:options:completion: Method: void Transition (UIView fromView, UIView toView, double duration, UIViewAnimationOptions options, [NullAllowed] NSAction completion); Selector: transitionWithView:duration:options:animations:completion: Method: void Transition (UIView withView, double duration, UIViewAnimationOptions options, [NullAllowed] NSAction animation, [NullAllowed] NSAction completion); Is this documentation outdated? Because when I try such method in MonoDevelop I cannot find any overload for Transition. It seems that the only implementation in MonoTouch is a binding to the transitionFromView selector. The signature is also wrong: it doesn't accept nulls and it requires an additional UICompletitionHandler parameter. Is there something I'm missing? Thanks. Emanuele Sabetta -- View this message in context: http://monotouch.2284126.n4.nabble.com/Method-transitionWithView-missing-from-Transition-overloads-tp4281723p4281723.html 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 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] How do you feel about cross posting to the list and Stackoverflow?
Hello Oivvio, There's no official policy. IMO it's a lot easier to know what question is answered (or not) and makes googling a lot easier when stackoverflow can be used. OTOH the mailing-lists is the only place where you can have a long-running discussion on a subject (IRC is good for shorter discussion, Stackoverflow is not). So if your question fits the stackoverflow model (i.e. it does not require a discussion, not seeking advices / alternatives...) then I suggest you to use it (and avoid cross-posting). Rest assured that support, the different mailing-lists and stackoverflow are all monitored by Xamarin's employees. Regards, Sebastien On Mon, Jan 9, 2012 at 4:36 AM, Oivvio Polite myli...@polite.se wrote: Is there a list policy on cross posting to the list and stack overflow? How big is the overlap in readership? If the same people hang out in both places cross posting is just wasting mental bandwidth. oivvio -- http://liberationtech.net ___ 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
Re: [MonoTouch] Add new contact to existing group Monotouch?
Hello, An answer was provided to your similar question on stackoverflow [1]. Regards, Sebastien [1] http://stackoverflow.com/q/8925757/220643 On Sat, Jan 21, 2012 at 2:36 AM, kramesh2005 ram...@versatile-soft.com wrote: How to Add new contact to existing group Monotouch? I try following code ABAddressBook ab = new ABAddressBook(); ABPerson p = new ABPerson(); p.FirstName = fname; p.LastName = lname; ABMutableMultiValuestring phones = new ABMutableStringMultiValue(); phones.Add(phone, ABPersonPhoneLabel.Mobile); p.SetPhones(phones); ABMutableDictionaryMultiValue addresses = new ABMutableDictionaryMultiValue(); NSMutableDictionary a = new NSMutableDictionary(); a.Add(new NSString(ABPersonAddressKey.City), new NSString(city)); a.Add(new NSString(ABPersonAddressKey.State), new NSString(state)); a.Add(new NSString(ABPersonAddressKey.Zip), new NSString(zip)); a.Add(new NSString(ABPersonAddressKey.Street), new NSString(addr1)); addresses.Add(a, new NSString(Home)); p.SetAddresses(addresses); ABGroup[] allGroups = adBook.GetGroups(); for (int rowIndex=0; rowIndexallGroups.Length ;rowIndex++) { ABGroup abGroup=allGroups [rowIndex]; if(abGroup.Name ==strGroupName) { abGroup.Add(per); ab.Save (); break; } } Following error fire in line abGroup.Add(per) Unhandled Exception: System.ArgumentException: cfErrorHandle must not be null. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Add-new-contact-to-existing-group-Monotouch-tp4315556p4315556.html 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
Re: [MonoTouch] dataWithContentsOfMappedFile ?
Hello Matt, Unlikely since dataWithContentsOfMappedFile [1] was deprecated in iOS5 (and OSX 10.7). You should look at using dataWithContentsOfFile:options:error: which is implemented in recent versions of MonoTouch as: public static NSData FromFile (string path, NSDataReadingOptions mask, out NSError error) Regards, Sebastien [1] http://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/occ/clm/NSData/dataWithContentsOfMappedFile: On Tue, Jan 24, 2012 at 12:57 PM, Matthieu Laban m...@flyingdevelopmentstudio.com wrote: Hey guys, Just wondering if [NSData dataWithContentsOfMappedFile] was going to be implemented in MonoTouch. I had seen something in a changelog some time ago but I can't find it anymore... Thanks! -- Matt ___ 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
Re: [MonoTouch] linker issue?
Hello Pavel, This unlikely to be a linker issue (even less if a [Preserve] attribute was added). You can confirm this by using the same linker settings in the simulator builds. If it works then this is not a linker issue but, more likely, one of the AOT/generic limitations. Regards, Sebastien On Wed, Jan 25, 2012 at 6:54 AM, Pavel Sich pavel.s...@me.com wrote: Could somebody tell me what is wrong? Jan 25 12:52:11 unknown UIKitApplication:socialstormtouch[0x82fb][10721] Notice: Unhandled Exception: System.ExecutionEngineException: Attempting to JIT compile method 'SocialStorm.Application.Models.Twitter.TwitterSocialService:SafeBeginAsyncCirrious.SimpleTweetSharp.TwitterService/TokenAndSecret (string,System.Action`3SocialStorm.Application.Models.Twitter.TwitterServiceWrapper, System.Action`1Cirrious.SimpleTweetSharp.TwitterService/TokenAndSecret, System.Action`1Cirrious.SocialSharp.SocialServiceError,System.Action`1Cirrious.SimpleTweetSharp.TwitterService/TokenAndSecret,System.Action`1Cirrious.SocialSharp.SocialServiceError)' while running with --aot-only. seems some object gets stripped by linker (I guess), but I added the [Preserve] attribute on TokenSecret object already and TwitterSocialService and some other. Any help much appreciated. -- Pavel Sich @sichy ___ 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
Re: [MonoTouch] Application executable is missing a required architecture. at least one of the following architecture(s) must be present: armv7
Hello, Note that enabling LLVM for the simulator is a no-op - i.e. it does nothing since the x86 JIT is used for the simulator. Regards, Sebastien On Wed, Jan 25, 2012 at 12:46 PM, trip andywh...@gmail.com wrote: Thanks that worked, but, Enabling LLVM previously would work in the Simulator (release), but on the device my app would terminate straight after the Splash screen. Updating to MonoTouch 5.2 this morning has solved this. Application now submitted. Trip -- View this message in context: http://monotouch.2284126.n4.nabble.com/Application-executable-is-missing-a-required-architecture-at-least-one-of-the-following-architecture7-tp4324460p4327935.html 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
Re: [MonoTouch] Save UIImage as png from another thread
Hello, Try to replace the following code: UIImageimg = UIImage.FromFile( path ).Scale( 250,250 ); NSError err; img.AsPNG().Save( filename, true, out err ); with: NSError err; using (UIImageimg = UIImage.FromFile( path ).Scale( 250,250 )) { img.AsPNG().Save( filename, true, out err ); } to ensure the images are disposed immediately. Regards, Sebastien On Mon, Jan 30, 2012 at 7:42 PM, ilmdaniel ilmdan...@yahoo.com wrote: Hy Guys, I have a UIViewController wich has on ViewDidAppear this code: ThreadPool.QueueUserWorkItem( delegate{ make_thumbs(); }); the make_thumbs function is: void make_thumbs() { using( var ns = new NSAutoreleasePool() ) { foreach( var c in Settings.Instance.Categories ) { for( var i = 0; i c.Pictures.Count; i++ ) { //this is the existing bundled image path string path = c.Pictures[i].PicturePath; string folder = Environment.GetFolderPath( Environment.SpecialFolder.Personal ); //this is the destination image file name string filename = Path.Combine( folder, c.Name + i + .png); if( !File.Exists( filename ) ) { UIImage img = UIImage.FromFile( path ).Scale( 250,250 ); NSError err; img.AsPNG().Save( filename, true, out err ); } } } } } The code is pretty easy, it has to load from a settings file all the existing images, scale them to 250x250 and save them with another name. The problem is that on the device ( teste on an iPhone 3g and an iPad ) it crushes after a while with memory warnings. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Save-UIImage-as-png-from-another-thread-tp4343087p4343087.html 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
Re: [MonoTouch] Antwort: Re: Get IMEI from Device (iPad / iPhone)
Hello, You can use the MAC address of your device. See http://stackoverflow.com/q/9062296/220643 Regards, Sebastien On Wed, Feb 1, 2012 at 6:57 AM, sebastiankell...@cs-ag.de wrote: Hi, hmmm, that's bad Is there another way to identify my devices? kind regards [image: Inactive hide details for Rolf Bjarne Kvinge r...@xamarin.com]Rolf Bjarne Kvinge r...@xamarin.com *Rolf Bjarne Kvinge r...@xamarin.com* 01.02.2012 12:55 An sebastiankell...@cs-ag.de Kopie monotouch@lists.ximian.com Thema Re: [MonoTouch] Get IMEI from Device (iPad / iPhone) Hi, There is no official way of getting the IMEI of your device. That said, there seems to be a few hacks around to do it: * http://stackoverflow.com/questions/823181/how-to-get-imei-on-iphone/2070154#2070154 *http://stackoverflow.com/questions/823181/how-to-get-imei-on-iphone/2070154#2070154, but you'll have to translate the Objective C to C#. Have in mind that if you do this, you'll be accessing private frameworks, and Apple might very well reject your app if you try to get it into the App Store. Rolf On Wed, Feb 1, 2012 at 11:58 AM, *sebastiankell...@cs-ag.de*sebastiankell...@cs-ag.de wrote: Hi, how is it possible to get the IMEI of my device? (iPad / iPhone) kind regards ___ MonoTouch mailing list* **MonoTouch@lists.ximian.com* MonoTouch@lists.ximian.com* **http://lists.ximian.com/mailman/listinfo/monotouch*http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch graycol.gifecblank.gifpic11942.gif___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Antwort: Re: Antwort: Re: Get IMEI from Device (iPad / iPhone)
It's deprecated since iOS 5 http://developer.apple.com/library/ios/#documentation/uikit/reference/UIDevice_Class/DeprecationAppendix/AppendixADeprecatedAPI.html Sebastien On Wed, Feb 1, 2012 at 10:28 AM, Tomasz Cielecki tom...@ostebaronen.dkwrote: Isn't the device ID enough for a unique identifier? On Wed, Feb 1, 2012 at 2:57 PM, sebastiankell...@cs-ag.de wrote: Hi, thank you for your help. I think im going to use the Mac-Adress. kind regards [image: Inactive hide details for Sebastien Pouliot sebast...@xamarin.com]Sebastien Pouliot sebast...@xamarin.com *Sebastien Pouliot sebast...@xamarin.com* 01.02.2012 14:29 An sebastiankell...@cs-ag.de Kopie Rolf Bjarne Kvinge r...@xamarin.com, monotouch@lists.ximian.com Thema Re: [MonoTouch] Antwort: Re: Get IMEI from Device (iPad / iPhone) Hello, You can use the MAC address of your device. See *http://stackoverflow.com/q/9062296/220643*http://stackoverflow.com/q/9062296/220643 Regards, Sebastien On Wed, Feb 1, 2012 at 6:57 AM, *sebastiankell...@cs-ag.de*sebastiankell...@cs-ag.de wrote: Hi, hmmm, that's bad Is there another way to identify my devices? kind regards [image: Inactive hide details for Rolf Bjarne Kvinge r...@xamarin.com]Rolf Bjarne Kvinge *r...@xamarin.com*r...@xamarin.com *Rolf Bjarne Kvinge **r...@xamarin.com* r...@xamarin.com** 01.02.2012 12:55 An * **sebastiankell...@cs-ag.de* sebastiankell...@cs-ag.de Kopie * **monotouch@lists.ximian.com* monotouch@lists.ximian.com Thema Re: [MonoTouch] Get IMEI from Device (iPad / iPhone) Hi, There is no official way of getting the IMEI of your device. That said, there seems to be a few hacks around to do it: * http://stackoverflow.com/questions/823181/how-to-get-imei-on-iphone/2070154#2070154 *http://stackoverflow.com/questions/823181/how-to-get-imei-on-iphone/2070154#2070154, but you'll have to translate the Objective C to C#. Have in mind that if you do this, you'll be accessing private frameworks, and Apple might very well reject your app if you try to get it into the App Store. Rolf On Wed, Feb 1, 2012 at 11:58 AM, *sebastiankell...@cs-ag.de*sebastiankell...@cs-ag.de wrote: Hi, how is it possible to get the IMEI of my device? (iPad / iPhone) kind regards ___ MonoTouch mailing list* **MonoTouch@lists.ximian.com*MonoTouch@lists.ximian.com * **http://lists.ximian.com/mailman/listinfo/monotouch*http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list* **MonoTouch@lists.ximian.com* MonoTouch@lists.ximian.com* **http://lists.ximian.com/mailman/listinfo/monotouch*http://lists.ximian.com/mailman/listinfo/monotouch *(See attached file: pic11942.gif)* ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Med Venlig Hilsen / With Best Regards Tomasz Cielecki http://ostebaronen.dk ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch pic24464.gifgraycol.gifecblank.gif___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] System.Net.WebClient.UploadProgressChanged
Hello Benedikt, Mono's WebClient never calls that events (and MonoTouch inherits this behavior). It's a known issue: http://bugzilla.xamarin.com/show_bug.cgi?id=3100 You can add yourself on c.c. on the bug report to be notified of it's progress. Regards, Sebastien 2012/2/4 Benedikt Hübschen benedikt.huebsc...@systemiya.de: Hi, I would like to show a progressbar while uploading a picture to a php-script and added a handler to System.Net.WebClient.UploadProgressChanged. Neither UploadFile nor UploadFileAsync seem to raise the event – is there something wrong? SYStemiya - Benedikt Hübschen SYStemiya, Benedikt Hübschen | Findlingstr. 15a | 83115 Neubeuern, Germany Phone: +49 8035 950 87 21 | Fax: +49 8035 950 87 22 | Email: benedikt.huebsc...@systemiya.de Diese Information ist ausschließlich für den Adressaten bestimmt und kann vertraulich oder gesetzlich geschützte Informationen enthalten. Wenn Sie nicht der bestimmungsgemäße Adressat sind, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Anderen als dem bestimmungsgemäßen Adressaten ist es untersagt, diese E-Mail zu lesen, zu speichern, weiterzuleiten oder ihren Inhalt auf welche Weise auch immer zu verwenden. Wir verwenden aktuelle Virenschutzprogramme. Für Schäden, die dem Empfänger gleichwohl durch von uns zugesandte mit Viren befallene E-Mails entstehen, schließen wir jede Haftung aus. This e-mail and any attachments is confidential and solely intended for the indicated addressee. If you are not the intended recipient or an authorized person, please note, that any form of notice, disclosure, reproduction or circulation of the contents of this mail is prohibited. In this case, please immediately inform the sender of the e-mail an destroy this e-mail. We use updated antivirus protection software. We do not accept any responsibility for damages caused anyhow by viruses. Software-Entwicklung für Windows, MacOS, iPad/iPhone/iPod-Touch, Android, Datenbanken WebDesign ___ 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
Re: [MonoTouch] Changing the size of an UIView.
Hello Richard, That's how .NET works because `Frame`'s type is RectangleF, a struct (value-type) and not a class (reference). See: http://stackoverflow.com/q/7899415/220643 Sebastien On Mon, Feb 6, 2012 at 4:15 AM, Richard Heesbeen r...@xs4all.nl wrote: Hi All, I’m playing arround with monotouch to see if we should go and use it for our projects. It looks very promising so far, but i encountered something weird. When i’m trying to set the size of an UIView like so View.Frame.Width = 100; its not getting set. The only way i can change the frame is by setting an hole new rect for it: Frame = new RectangleF(0,0, 100, 100). shouldn’t it be possible to just change the properties on the frame itself? Greetz, Richard. ___ 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
Re: [MonoTouch] Soap headers getting stripped away
Hello, Please try to use Don't link on the device (it defaults to Link SDK assemblies). You can also try to use Link SDK assemblies on the simulator. If, by changing both, you get the simulator failing and the device working the it's likely a linker issue and we'll need a test case to correct it. Otherwise there's another issue (again a test case will be needed). Sebastien On Tue, Feb 14, 2012 at 7:13 AM, Rolf Bjarne Kvinge r...@xamarin.com wrote: Hi, Do you have a test case we can try out? Otherwise it'll probably be very hard to figure this out. Thanks, Rolf On Tue, Feb 14, 2012 at 11:39 AM, andersa anders.ag...@larmia.se wrote: I have a problem when communicating with a web service (ASP.NET 2.0 asmx). The web service relies on Soap headers to pass some initial authentication data. Without these, the entire session fails. When running my MonoTouch app in the simulator everything works great. The headers are passed from the simulator to the web service and everything just works. However, when running on my actual phone the Soap headers are (somehow) stripped away from the request and thus failing the rest of the session. I've debugged the web service (and Wireshark'ed the traffic) to confirm this. I've also tried to include [Preserve (AllMembers = true)] to all web reference classes, as mentioned in another thread, but this doesn't help either. So, now I have an app that works perfectly in the simulator and not at all on the phone. Suggestions anyone? //Anders -- View this message in context: http://monotouch.2284126.n4.nabble.com/Soap-headers-getting-stripped-away-tp4386644p4386644.html 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 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Soap headers getting stripped away
Hello Anders, On Thu, Feb 16, 2012 at 7:34 AM, andersa anders.ag...@larmia.se wrote: Here are my test results: Simulator - Don't link = Works Simulator - Link SDK = Works Simulator - Link all = Fails Device - Don't link = Works Device - Link SDK = Works Device - Link all = Fails I'm not sure on how to move further with this now? The linker is removing something that it could not determine as used (by your application) using static analysis. You need to protect those pieces (e.g. used via reflection) using the [Preserve] attribute. Is this a linker issue, and should I file a report? You should. First we might be able to help you identify what's wrong in your specific case (if the attached test case is small enough). It's also possible we'll be able to enhance the linker in the future, based on the pattern you use, to reduce the number of [Preserve] required. Newbie question: and are there any scenarios when I should/must link all assemblies? Or can I just happily set it to Don't link and not worry about it anymore? You never *have* to link - i.e. it's not mandatory. OTOH linking reduce the total size of your application and it's memory (RAM) requirements. It will also make your device build faster (in many case) since there will be less code to AOT (the linker being faster to remove the code than the AOT compiler process it). I have several blog entries about the linker: https://spouliot.wordpress.com/category/linker/ And there are a few documents on Xamarin's web site, e.g. http://docs.xamarin.com/ios/advanced_topics/linker Sebastien ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Threading best practice
Hello Curtis, Got an URL (or more ;-) for the documentation ? it needs to be updated for 5.2.x. Thanks Sebastien On Thu, Feb 23, 2012 at 9:53 AM, Alex Soto dxdr...@gmail.com wrote: On latest MonoTouch this isn't needed anymore using (NSAutoreleasePool threadPool = new NSAutoreleasePool ()) See http://spouliot.wordpress.com/2011/12/01/threading-and-pooling/ Cheers Alex El 22/02/2012, a las 10:05 p.m., cbailey cur...@smartjobsapp.com escribió: I made one import omission. From MT documentation /If you create your own threads using System.Threading you do have to provide you own NSAutoRelease pool to prevent the data from leaking. To do this, simply wrap your thread in the following piece of code:/ DoWork needs to be wrapped in the following using (NSAutoreleasePool threadPool = new NSAutoreleasePool ()) { } -- View this message in context: http://monotouch.2284126.n4.nabble.com/Threading-best-practice-tp4411605p4412761.html 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 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Linker error when trying to go to device
Hello Dan, On Mon, Feb 27, 2012 at 9:17 PM, danmiser danmi...@gmail.com wrote: Solved. After I got the DLLs compiled inside MD, I was still getting the same error. I tried the different linker settings again, and this time setting the linker to Don't Link, I was able to deploy to the device. This should not happen if you re-compiled everything using MonoTouch's SDK assemblies as reference. Could you open a bug report at http://bugzilla.xamarin.com and attach your binaries ? (you can mark them as private if needed). Also include the Build Output from MonoDevelop (inside the Error List pad) since it should provide a few more details. I'll check this asap. Thanks, Sebastien ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Attempting to JIT compile method
Hello Michal, On Tue, Feb 28, 2012 at 12:47 PM, Michal Sartoris m...@resco.net wrote: Hi, Is there a way how to add event handlers through reflection on iOS? This piece of code fails on device: It should be possible. However the linker (enabled by default for devices) can eliminate MoveNextCompleted if it's not used by your code (outside string-based reflection). You can confirm this by using Don't link on a device build and fix it by adding a [Preserve] attribute on the event. If that does not work then please fill a bug report on http://bugzilla.xamarin.com and I'll have a look at it. Sebastien var e = target.GetType().GetEvent(MoveNextCompleted); if (e != null) e.AddEventHandler(target, new EventHandler(AsyncEnumerable_MoveNextCompleted)); with this exception System.ExecutionEngineException: Attempting to JIT compile method '(wrapper delegate-invoke) Module:invoke_void__this___OnlineEntityQuery_EventHandler (MobileCrm.UI.OnlineEntityQuery,System.EventHandler)' while running with --aot-only. at System.Reflection.EventInfo.AddEventFrame[OnlineEntityQuery,EventHandler] (System.Reflection.AddEvent`2 addEvent, System.Object obj, System.Object dele) [0x0] in filename unknown:0 at System.Reflection.EventInfo.AddEventHandler (System.Object target, System.Delegate handler) [0x0006e] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/EventInfo.cs:100 Best regards, Michal Sartoris ___ 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
Re: [MonoTouch] LINQ and OrderBy, again
Please always c.c. the mailing-list or we lose the googlability for future references. On Thu, Mar 1, 2012 at 12:33 PM, Rodrigo Kumpera kump...@xamarin.com wrote: Hi Dan, I'm in no way the expert on the subject, as you could see by me giving you bad advice. I'm CC'ing Sebastien, who has a better understanding on the subject and might have some ideas on how to workaround it. There's on option I know that works. Which is to replace int with an object wrapper. Performance won't be stelar, but it will definitely work. That's a hack we used in several cases [1] for LINQ to workaround full-AOT limitations [2]. In your case you could do something like: var x = from l in list orderby l.Name, l.Id.ToString () select l; That turns the value-type (int) into a class (string). It can be expensive but it's faster at sort'ing than a ExecutionEngineException would be :-| The other solution would be to avoid LINQ to sort your result. Since, in many cases, ordering occurs last in the query (everything is joined/filtered then turned into a list first) the performance impact could be lower. However it won't work for complex (or chained) queries. YMMV. Sebastien p.s. please fill bug reports when you find such issues. We do keep the test cases in our test suite and if whenever we want to try potential fixes we can run them thru all the test cases we are provided. [1] https://bugzilla.xamarin.com/show_bug.cgi?id=3627 [2] http://docs.xamarin.com/ios/about/limitations On Thu, Mar 1, 2012 at 12:39 PM, Dan Miser danmi...@gmail.com wrote: Hi Rodrigo, Any thoughts on something I can try? Thanks Sent from my iPhone On Feb 29, 2012, at 1:41 PM, Rodrigo Kumpera kump...@xamarin.com wrote: Oh, sorry, OrderedEnumerable is an internal framework class, this work-around won't help you. I'll ask the team of other options. On Wed, Feb 29, 2012 at 3:27 PM, Dan Miser danmi...@gmail.com wrote: That doesn't compile. There is no OrderedEnumerable class that I can find. Just the interface. Changing it to the interface also doesnt compile. I put the code in my Main.cs class. Any idea where I'm going wrong? Sent from my iPhone On Feb 29, 2012, at 11:48 AM, Rodrigo Kumpera kump...@xamarin.com wrote: Hi, As simple workaround while we figure out how to fix it add a static method to you App class with the following: static void LinqWorkAround () { System.Linq.OrderedEnumerableFoo.CreateOrderedEnumerableint (null, null, false); } This should take care of this crash. If you're building your project with user code linking enabled, make sure to have this method called during initialization, something like this: static bool dummy = false; static void main () { if (dummy) LinqWorkAround (); } On Wed, Feb 29, 2012 at 2:24 PM, danmiser danmi...@gmail.com wrote: I've searched through this group, StackOverflow, and the MT bugzilla list. There are a lot of mentions about this, but I'm having a hard time finding an authoritative answer. Assume the following code: var list = new ListFoo(); list.Add (new Foo { Id = 3, Name=def}); list.Add (new Foo { Id = 2, Name=def}); list.Add (new Foo { Id = 1, Name=ggg}); var x = from l in list orderby l.Name, l.Id select l; foreach (var item in x) { ... do something ... } public class Foo { public int Id { get; set; } public string Name { get; set; } } When running on the device, I get the info pasted below. Notes: 1. This only fails on the device 2. It doesn't fail if you just have one orderby item I have a lot of LINQ in my POCO classes, and I wouldn't relish the idea of unwinding it all. What do I need to do to make this work? Unhandled Exception: System.ExecutionEngineException: Attempting to JIT compile method 'System.Linq.OrderedEnumerable`1Foo:CreateOrderedEnumerableint (System.Func`2Foo, int,System.Collections.Generic.IComparer`1int,bool)' while running with --aot-only. at System.Linq.Enumerable.ThenBy[Foo,Int32] (IOrderedEnumerable`1 source, System.Func`2 keySelector, IComparer`1 comparer) [0x7] in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2787 at System.Linq.Enumerable.ThenBy[Foo,Int32] (IOrderedEnumerable`1 source, System.Func`2 keySelector) [0x0] in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2779 at TestLibrary.HelloContext.List () [0x6] in /Users/danmiser/code/MonoTouchRestDemo/TestLibrary/MyClass.cs:18 at MonoTouchRestDemo.MonoTouchRestDemoViewController.ViewDidLoadm__0 (System.Object sender, System.EventArgs e) [0x6] in /Users/danmiser/code/MonoTouchRestDemo/MonoTouchRestDemo/MonoTouchRestDemoViewController.cs:38 at MonoTouch.UIKit.UIControlEventProxy.Activated () [0x0] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIControl.cs:30 at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String
Re: [MonoTouch] App is crashing at random - the app completely freezes indefinitely
Since you're using `UIWebView` I just wanted to make sure that you are aware that it's LoadRequest method is not re-entrant. It's not well documented [1] and took me a while to find it out myself. I'm 100% sure about LoadRequest but other parts could also share the same design decision [2]. Sebastien [1] http://double-slash.net/2010/10/18/using-multiple-ios-uiwebview-objects/ [2] https://discussions.apple.com/thread/1719161?start=0tstart=0 p.s. This was added recently to MonoTouch documentation but has not yet been pushed to the web site. On Thu, Mar 1, 2012 at 7:20 PM, MilkyJoe leigh.bow...@curvenet.co.uk wrote: Sorry I posted that last message prematurely. I am unable to recreate the problem when debugging, which makes it all the more difficult. I am unable to repeat a sequence of steps to trigger the issue. I'll have a look at making the GC more aggressive. Thanks for the suggestion. -- View this message in context: http://monotouch.2284126.n4.nabble.com/App-is-crashing-at-random-the-app-completely-freezes-indefinitely-tp4436796p4436991.html 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
Re: [MonoTouch] App is crashing at random - the app completely freezes indefinitely
On Thu, Mar 1, 2012 at 8:24 PM, MilkyJoe leigh.bow...@curvenet.co.uk wrote: Hi Sebastien. I only have a single instance of the UIWebView, so is this still something I need to consider/deal with? It's less likely an issue - but still possible, e.g. UIWebView wv = ... ; // load splash screen wv.LoadRequest (...); ... do a bunch of stuff ... // load authentication form wv.LoadRequest (...); // possible issue if the first one has not ended Is there a best practise example in MonoTouch of how to use the UIWebView safely? Not that I know of and I don't think there's one for ObjectiveC either. The same UI* thread rules applies (do everything on the main thread except if the documentation tells you it's ok) and, UIWebView-specific, serialize your usage of its API. If you think it could be an issue (don't lose your precious time on this otherwise) then you can adding a lock (or simply logging) around it's usage - even if just for debugging and see if it changes/improve things. Sebastien ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Strange issue iOS5.1 vs Environment.SpecialFolder.Personal
Hello Karl, AFAIK this error is caused by a change in iOS 5.1 that does not allow everyone to write to `stdout` (and return an access denied). It should only occurs when using Console.WriteLine and was fixed in MonoTouch 5.2.4 [1] (where the exception will be ignored, i.e. no writing on `stdout`). If you cannot update to 5.2.4 then you can try: a) calling: Console.SetOut (new StreamWriter (Stream.Null)); b) add #if DEBUG ... #endif around the Console.WriteLine from your application (so they won't reach your users) Regards, Sebastien [1] http://docs.xamarin.com/MonoTouch_5.2#Changes_in_MonoTouch_5.2.4 On Thu, Mar 8, 2012 at 7:50 PM, Karl Heinz Brehme Arredondo k...@e-magesolutions.com wrote: Hi, Today our helpdesk reported a user that sent a captured ipad screen with a strange error message that is stranger than I could imagine..: 'Access to the path /private/var/mobile/Application/BLABLABLAWHISKASSACHET/MyApp.app/[Unknown] is denied.' That mean that after to subscribe/download about 8 tables correctly, this ipad decided to change his mind on table Descontos_Motivos create table in the same Sqlite file that previous tables was created to a strange folder called [Unknown]. Where the heck it get this word?? The folder is get with Environment.GetFolderPath(Environment.SpecialFolder.Personal) and all tables are created as the same way in a loop, on same local sqlite database. At night, another user from another client (same app) reported the same thing with a new info: he upgraded to iOS 5.1… So I made de upgrade and tested the download of database: same error in same table… Then testes with a version compiled with monotouch 5.2 and no error. But back to same version of the user, and tried to download database again: no error. Really confusing because I can't reproduce it again. It will blow up our helpdesk tomorrow? Thanks, Karl ___ 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
Re: [MonoTouch] Strange issue iOS5.1 vs Environment.SpecialFolder.Personal
Hello Nic, It was in the release notes [1]. However, at the time, the condition was not reproducable by anyone (just an error in a user's application log). I suspect most people testing the iOS 5.1 beta releases where using provisioned devices where the error does not occur. In retrospect we were lucky for that (single) report. Sebastien [1] http://docs.xamarin.com/MonoTouch_5.2#Changes_in_MonoTouch_5.2.4 On Fri, Mar 9, 2012 at 6:53 AM, Nic Wise n...@fastchicken.co.nz wrote: Did I miss something? It's not on the release notes there I normally read them at least a little bit :) (doesn't matter now, but would be good to know if I'm smoking crack and missed it) On Fri, Mar 9, 2012 at 01:10, Sebastien Pouliot sebast...@xamarin.com wrote: Hello Karl, AFAIK this error is caused by a change in iOS 5.1 that does not allow everyone to write to `stdout` (and return an access denied). It should only occurs when using Console.WriteLine and was fixed in MonoTouch 5.2.4 [1] (where the exception will be ignored, i.e. no writing on `stdout`). If you cannot update to 5.2.4 then you can try: a) calling: Console.SetOut (new StreamWriter (Stream.Null)); b) add #if DEBUG ... #endif around the Console.WriteLine from your application (so they won't reach your users) Regards, Sebastien [1] http://docs.xamarin.com/MonoTouch_5.2#Changes_in_MonoTouch_5.2.4 On Thu, Mar 8, 2012 at 7:50 PM, Karl Heinz Brehme Arredondo k...@e-magesolutions.com wrote: Hi, Today our helpdesk reported a user that sent a captured ipad screen with a strange error message that is stranger than I could imagine..: 'Access to the path /private/var/mobile/Application/BLABLABLAWHISKASSACHET/MyApp.app/[Unknown] is denied.' That mean that after to subscribe/download about 8 tables correctly, this ipad decided to change his mind on table Descontos_Motivos create table in the same Sqlite file that previous tables was created to a strange folder called [Unknown]. Where the heck it get this word?? The folder is get with Environment.GetFolderPath(Environment.SpecialFolder.Personal) and all tables are created as the same way in a loop, on same local sqlite database. At night, another user from another client (same app) reported the same thing with a new info: he upgraded to iOS 5.1… So I made de upgrade and tested the download of database: same error in same table… Then testes with a version compiled with monotouch 5.2 and no error. But back to same version of the user, and tried to download database again: no error. Really confusing because I can't reproduce it again. It will blow up our helpdesk tomorrow? Thanks, Karl ___ 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 -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Weird Json.NET / Newtonsoft errors w/ latest MT beta and 5.1
Hello Nic, It looks identical to bug #3676. You should add yourself on c.c. to the bug report. Sebastien [1] https://bugzilla.xamarin.com/show_bug.cgi?id=3676 On Sat, Mar 10, 2012 at 6:21 AM, Nic Wise n...@fastchicken.co.nz wrote: I'm still not sure whats causing it, but I was deserializing a basic json object within a thread, and today - and ONLY today - I've been getting the stack dump below. If I do it outside of a thread, it works _fine_. Anyone else seeing this? XC 4.3.1 iOS 5.1 MT latest beta (installed this morning) I tried going back to an old MT (5.2.5) with the same result. Once I get this, if I restart my app, I get seg faults in all the codes mostly sqlite. Very odd. 20120310/101453: Exception: System.NullReferenceException: Object reference not set to an instance of an object at System.Array.Copy (System.Array sourceArray, Int32 sourceIndex, System.Array destinationArray, Int32 destinationIndex, Int32 length) [0x00104] in /Developer/MonoTouch/Source/mono/mcs/cla ss/corlib/System/Array.cs:979 at System.Collections.ArrayList.CopyTo (Int32 index, System.Array array, Int32 arrayIndex, Int32 count) [0x0002d] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections/Arr ayList.cs:3064 at System.Collections.ArrayList.CopyTo (System.Array array, Int32 arrayIndex) [0x0] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections/ArrayList.cs:3046 at System.MonoCustomAttrs.GetCustomAttributes (ICustomAttributeProvider obj, System.Type attributeType, Boolean inherit) [0x0026c] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/Syste m/MonoCustomAttrs.cs:259 at System.MonoType.GetCustomAttributes (System.Type attributeType, Boolean inherit) [0x00011] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/MonoType.cs:582 at System.Attribute.GetCustomAttributes (System.Reflection.MemberInfo element, System.Type type, Boolean inherit) [0x00024] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Attri bute.cs:229 at Newtonsoft.Json.Utilities.ReflectionUtils.GetAttributes[JsonContainerAttribute] (ICustomAttributeProvider attributeProvider, Boolean inherit) [0x0] in filename unknown:0 at Newtonsoft.Json.Utilities.ReflectionUtils.GetAttribute[JsonContainerAttribute] (ICustomAttributeProvider attributeProvider, Boolean inherit) [0x0] in filename unknown:0 at Newtonsoft.Json.Serialization.JsonTypeReflector.GetAttribute[JsonContainerAttribute] (ICustomAttributeProvider attributeProvider) [0x0] in filename unknown:0 at Newtonsoft.Json.Utilities.ThreadSafeStore`2[System.Reflection.ICustomAttributeProvider,Newtonsoft.Json.JsonContainerAttribute].AddValue (ICustomAttributeProvider key) [0x0] in filen ame unknown:0 at Newtonsoft.Json.Utilities.ThreadSafeStore`2[System.Reflection.ICustomAttributeProvider,Newtonsoft.Json.JsonContainerAttribute].Get (ICustomAttributeProvider key) [0x0] in filename u nknown:0 at Newtonsoft.Json.Serialization.CachedAttributeGetter`1[Newtonsoft.Json.JsonContainerAttribute].GetAttribute (ICustomAttributeProvider type) [0x0] in filename unknown:0 at Newtonsoft.Json.Serialization.JsonTypeReflector.GetJsonContainerAttribute (System.Type type) [0x0] in filename unknown:0 at Newtonsoft.Json.Serialization.JsonTypeReflector.GetJsonObjectAttribute (System.Type type) [0x0] in filename unknown:0 at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract (System.Type objectType) [0x0] in filename unknown:0 at Newtonsoft.Json.Utilities.ThreadSafeStore`2[System.Type,Newtonsoft.Json.Serialization.JsonContract].AddValue (System.Type key) [0x0] in filename unknown:0 at Newtonsoft.Json.Utilities.ThreadSafeStore`2[System.Type,Newtonsoft.Json.Serialization.JsonContract].Get (System.Type key) [0x0] in filename unknown:0 at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract (System.Type type) [0x0] in filename unknown:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe (System.Type type) [0x0] in filename unknown:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, System.Type t, Newtonsoft.Json.JsonConverter propertyConverter) [0x0] in f ilename unknown:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x0] in filename unknown:0 at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x0] in filename unknown:0 at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x0] in filename unknown:0 at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings
Re: [MonoTouch] MonoTouch and iOS 5.1
On Tue, Mar 13, 2012 at 1:12 PM, MilkyJoe leigh.bow...@curvenet.co.uk wrote: Darn it. My entire logging class is written around the console! Do we know why Apple has made this change? No we don't (at least not yet). Being able to log to the console has really helped me to get to the bottom of some release problems. It will still work when debugging or when installing applications from MD or Xcode (which made finding the issue harder). However it won't work (access denied) when applications are installed from the AppStore or from an AdHoc deployment. You can somewhat* workaround this using NSLog. *Apple can reject your application if you use NSLog - but honestly so many applications do it that I think it's more to stop *abuse* than use (keep in mind that logging is not free and that end-users can't easily access those logs). Sebastien ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch