Hi Pedro, The problem with your app is that you've only included the i386 versions of the Three20 libraries.
Hope that helps, Jeff On Tue, Nov 8, 2011 at 7:03 AM, Pedro Pêgo <[email protected]> wrote: > Hi Rolf, > > I've just done that and the problem persists.. > Here's a sample that works in the simulator but crashes in the device.. > Attached is the entire solution: > > > > > Do i need extra arguments to three20 works in the device too? > Thanks, > > Pedro Pêgo > > A 2011/11/08, às 11:30, Rolf Bjarne Kvinge escreveu: > > > Hi Pedro, > > > > Try making the TTTabItem variables class-level too. > > > > Rolf > > > > On Tue, Nov 8, 2011 at 3:37 AM, Pedro Pêgo <[email protected]> > wrote: > >> update: > >> i try this hint that other person give me and it dont work too: > >> "try making tabs a class level declaration. By declaring it in your > method, > >> there is no reference to it once it goes out of scope, and the GC may > try to > >> purge it" > >> > >> A 2011/11/08, às 02:07, Pedro Pêgo escreveu: > >> > >> Hi! thanks for replying! the args are defined in Iphone-Debug too.. > >> Here's the code: > >> The program stops in the line: > >> _mainControl.TabItems = tabs; > >> and in the simulator it works ok! > >> I would apprecciate any help or possibilities.. i'm stop for a week :( > >> > >> public class Application > >> { > >> static void Main (string[] args) > >> { > >> UIApplication.Main (args); > >> } > >> } > >> // The name AppDelegate is referenced in the MainWindow.xib file. > >> public partial class AppDelegate : UIApplicationDelegate > >> { > >> /// <summary> > >> /// The main control of f5crm app. this is the main container of other > >> controls > >> /// </summary> > >> public TTTabStrip _mainControl; > >> > >> > >> // This method is invoked when the application has loaded its UI and its > >> ready to run > >> public override bool FinishedLaunching (UIApplication app, NSDictionary > >> options) > >> { > >> > >> _mainControl = new TTTabStrip(); > >> TTTabItem item = new TTTabItem("Login"); > >> TTTabItem item2 = new TTTabItem("Clients"); > >> var tabs = NSArray.FromNSObjects( item, item2); > >> _mainControl.Frame = new System.Drawing.RectangleF(0, 430, 320, 50); > >> _mainControl.TabItems = tabs; > >> window.Add(_mainControl); > >> > >> window.MakeKeyAndVisible (); > >> return true; > >> } > >> > >> A 2011/11/08, às 00:49, Rolf Bjarne Kvinge escreveu: > >> > >> Hi Pedro, > >> > >> You are running into a stack overflow. One way this can happen is if > >> you didn't add the additional mtouch arguments for the iPhone profile > >> (note that the ones you entered for iPhoneSimulator won't be used > >> automatically, you'll have to add them again for the iPhone profile). > >> > >> If that doesn't work then a sample project would make it a lot easier > >> to help you :) > >> > >> Rolf > >> > >> On Fri, Nov 4, 2011 at 12:56 PM, Pedro Pêgo <[email protected]> > wrote: > >> > >> Monotouch version: 5.0 > >> > >> Xcode version: 4.2 > >> > >> Monodevelop version: 2.6 > >> > >> Mono Framework: 2.10 > >> > >> Good Morning, > >> > >> I'm stacked with a problem for two days so i decide to request your > help.. > >> > >> I've developed an application always debugging with the iphone > simulator and > >> the app works well . > >> > >> This week i've purchased a monotouch license and tried to debug in the > >> device but the app crashes.. > >> > >> I am using the three20 library (referenced the three20.dll, add all > >> three20*.a files with the correct additional arguments,etc) and > everything > >> works great in the simulator.. > >> > >> Using breakpoints i realize that the app crashes exactly when it uses an > >> three20 object for the first time in the program (TTTabStrip in this > case).. > >> > >> It doesn't return any error, i just have the crash report from xcode > >> organizer.. > >> > >> Whats the possible reason for it works well in the simulator and don't > work > >> in the device? > >> > >> Here's the crash report.. Unfortunately i can't understand the error > from > >> that report.. > >> > >> Crash report: > >> > >> http://pastebin.com/ZGDEJDPa > >> > >> Hope you can help me, > >> > >> Thanks, > >> > >> Pedro Pêgo > >> > >> > >> > >> _______________________________________________ > >> > >> MonoTouch mailing list > >> > >> [email protected] > >> > >> http://lists.ximian.com/mailman/listinfo/monotouch > >> > >> > >> > >> > >> > > > > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
