MT4 bug on startup

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

MT4 bug on startup

Nic Wise
Just installed MT4 latest beta with XC3.

I get this now, at this line in my code. Didn't have it with MT3 or
even the last beta of MT4.

ArrayFromHandle<MonoTouch.UIKit.UIView> count: 1    at
System.Environment.get_StackTrace() in
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Environment.cs:line
252
   at MonoTouch.Foundation.NSArray.ArrayFromHandle(IntPtr handle) in
/Users/plasma/Source/iphone/monotouch/shared/Foundation/NSArray.cs:line
146
   at MonoTouch.UIKit.UIView.get_Subviews() in
/Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 1310
   at MonoTouch.UIKit.UIView.AddSubview(MonoTouch.UIKit.UIView view)
in /Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 197
   at DeadDrop.AppDelegate.BuildPhoneUI() in
/Users/nic/code/git/mobileagent/Main.cs:line 144
   at DeadDrop.AppDelegate.FinishedLaunching(MonoTouch.UIKit.UIApplication
app, MonoTouch.Foundation.NSDictionary options) in
/Users/nic/code/git/mobileagent/Main.cs:line 56
   at MonoTouch.UIKit.UIApplication.UIApplicationMain(Int32 ,
System.String[] , IntPtr , IntPtr )
   at MonoTouch.UIKit.UIApplication.Main(System.String[] args,
System.String principalClassName, System.String delegateClassName) in
/Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 26
   at MonoTouch.UIKit.UIApplication.Main(System.String[] args) in
/Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 31
   at DeadDrop.Application.Main(System.String[] args) in
/Users/nic/code/git/mobileagent/Main.cs:line 16
0: 711bb80 MonoTouch.UIKit.UIImageView
ArrayFromHandle<MonoTouch.UIKit.UIView> count: 2    at
System.Environment.get_StackTrace() in
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Environment.cs:line
252
   at MonoTouch.Foundation.NSArray.ArrayFromHandle(IntPtr handle) in
/Users/plasma/Source/iphone/monotouch/shared/Foundation/NSArray.cs:line
146
   at MonoTouch.UIKit.UIView.get_Subviews() in
/Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 1310
   at MonoTouch.UIKit.UIView.AddSubview(MonoTouch.UIKit.UIView view)
in /Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 197
   at DeadDrop.AppDelegate.BuildPhoneUI() in
/Users/nic/code/git/mobileagent/Main.cs:line 209
   at DeadDrop.AppDelegate.FinishedLaunching(MonoTouch.UIKit.UIApplication
app, MonoTouch.Foundation.NSDictionary options) in
/Users/nic/code/git/mobileagent/Main.cs:line 56
   at MonoTouch.UIKit.UIApplication.UIApplicationMain(Int32 ,
System.String[] , IntPtr , IntPtr )
   at MonoTouch.UIKit.UIApplication.Main(System.String[] args,
System.String principalClassName, System.String delegateClassName) in
/Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 26
   at MonoTouch.UIKit.UIApplication.Main(System.String[] args) in
/Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 31
   at DeadDrop.Application.Main(System.String[] args) in
/Users/nic/code/git/mobileagent/Main.cs:line 16
0: 711bb80 MonoTouch.UIKit.UIImageView
1: 71caf80 MonoTouch.UIKit.UIView


My Code:

public void BuildPhoneUI()
                {
                        UIApplication.SharedApplication.StatusBarStyle =
UIStatusBarStyle.BlackOpaque;
                       
                        backgroundImageView = new UIImageView(StockImages.GradientBackground);
                       
                        backgroundImageView.Bounds = new System.Drawing.RectangleF(0,0,320,480);
                       
                        window.AddSubview(backgroundImageView); <-- 144

------------
                        window.AddSubview(MainView); <---- 209
                       
                }

Hope that helps - I need to get a build out, so I'm going to have to
go back to 3.x until the weekend.

Cheers

N

--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/ | http://www.flickr.com/photos/nicwise
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
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: MT4 bug on startup

Geoff Norton
Apologies, it looks like some debugging code slipped into the release.  We've fixed it for the next release (this is harmless tho)

-g

On 2011-03-31, at 5:58 PM, Nic Wise wrote:

> Just installed MT4 latest beta with XC3.
>
> I get this now, at this line in my code. Didn't have it with MT3 or
> even the last beta of MT4.
>
> ArrayFromHandle<MonoTouch.UIKit.UIView> count: 1    at
> System.Environment.get_StackTrace() in
> /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Environment.cs:line
> 252
>   at MonoTouch.Foundation.NSArray.ArrayFromHandle(IntPtr handle) in
> /Users/plasma/Source/iphone/monotouch/shared/Foundation/NSArray.cs:line
> 146
>   at MonoTouch.UIKit.UIView.get_Subviews() in
> /Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 1310
>   at MonoTouch.UIKit.UIView.AddSubview(MonoTouch.UIKit.UIView view)
> in /Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 197
>   at DeadDrop.AppDelegate.BuildPhoneUI() in
> /Users/nic/code/git/mobileagent/Main.cs:line 144
>   at DeadDrop.AppDelegate.FinishedLaunching(MonoTouch.UIKit.UIApplication
> app, MonoTouch.Foundation.NSDictionary options) in
> /Users/nic/code/git/mobileagent/Main.cs:line 56
>   at MonoTouch.UIKit.UIApplication.UIApplicationMain(Int32 ,
> System.String[] , IntPtr , IntPtr )
>   at MonoTouch.UIKit.UIApplication.Main(System.String[] args,
> System.String principalClassName, System.String delegateClassName) in
> /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 26
>   at MonoTouch.UIKit.UIApplication.Main(System.String[] args) in
> /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 31
>   at DeadDrop.Application.Main(System.String[] args) in
> /Users/nic/code/git/mobileagent/Main.cs:line 16
> 0: 711bb80 MonoTouch.UIKit.UIImageView
> ArrayFromHandle<MonoTouch.UIKit.UIView> count: 2    at
> System.Environment.get_StackTrace() in
> /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Environment.cs:line
> 252
>   at MonoTouch.Foundation.NSArray.ArrayFromHandle(IntPtr handle) in
> /Users/plasma/Source/iphone/monotouch/shared/Foundation/NSArray.cs:line
> 146
>   at MonoTouch.UIKit.UIView.get_Subviews() in
> /Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 1310
>   at MonoTouch.UIKit.UIView.AddSubview(MonoTouch.UIKit.UIView view)
> in /Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 197
>   at DeadDrop.AppDelegate.BuildPhoneUI() in
> /Users/nic/code/git/mobileagent/Main.cs:line 209
>   at DeadDrop.AppDelegate.FinishedLaunching(MonoTouch.UIKit.UIApplication
> app, MonoTouch.Foundation.NSDictionary options) in
> /Users/nic/code/git/mobileagent/Main.cs:line 56
>   at MonoTouch.UIKit.UIApplication.UIApplicationMain(Int32 ,
> System.String[] , IntPtr , IntPtr )
>   at MonoTouch.UIKit.UIApplication.Main(System.String[] args,
> System.String principalClassName, System.String delegateClassName) in
> /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 26
>   at MonoTouch.UIKit.UIApplication.Main(System.String[] args) in
> /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 31
>   at DeadDrop.Application.Main(System.String[] args) in
> /Users/nic/code/git/mobileagent/Main.cs:line 16
> 0: 711bb80 MonoTouch.UIKit.UIImageView
> 1: 71caf80 MonoTouch.UIKit.UIView
>
>
> My Code:
>
> public void BuildPhoneUI()
> {
> UIApplication.SharedApplication.StatusBarStyle =
> UIStatusBarStyle.BlackOpaque;
>
> backgroundImageView = new UIImageView(StockImages.GradientBackground);
>
> backgroundImageView.Bounds = new System.Drawing.RectangleF(0,0,320,480);
>
> window.AddSubview(backgroundImageView); <-- 144
>
> ------------
> window.AddSubview(MainView); <---- 209
>
> }
>
> Hope that helps - I need to get a build out, so I'm going to have to
> go back to 3.x until the weekend.
>
> Cheers
>
> N
>
> --
> Nic Wise
> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
> b. http://www.fastchicken.co.nz/ | http://www.flickr.com/photos/nicwise
> 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
> _______________________________________________
> MonoTouch mailing list
> [hidden email]
> http://lists.ximian.com/mailman/listinfo/monotouch

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: MT4 bug on startup

Nic Wise
OK. I'll try again on next release. Gotta make sure this one works, or
people lose some fairly important financial data :)

Atleast going back to 3.x is a 2 min job!

On Thu, Mar 31, 2011 at 23:03, Geoff Norton <[hidden email]> wrote:

> Apologies, it looks like some debugging code slipped into the release.  We've fixed it for the next release (this is harmless tho)
>
> -g
>
> On 2011-03-31, at 5:58 PM, Nic Wise wrote:
>
>> Just installed MT4 latest beta with XC3.
>>
>> I get this now, at this line in my code. Didn't have it with MT3 or
>> even the last beta of MT4.
>>
>> ArrayFromHandle<MonoTouch.UIKit.UIView> count: 1    at
>> System.Environment.get_StackTrace() in
>> /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Environment.cs:line
>> 252
>>   at MonoTouch.Foundation.NSArray.ArrayFromHandle(IntPtr handle) in
>> /Users/plasma/Source/iphone/monotouch/shared/Foundation/NSArray.cs:line
>> 146
>>   at MonoTouch.UIKit.UIView.get_Subviews() in
>> /Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 1310
>>   at MonoTouch.UIKit.UIView.AddSubview(MonoTouch.UIKit.UIView view)
>> in /Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 197
>>   at DeadDrop.AppDelegate.BuildPhoneUI() in
>> /Users/nic/code/git/mobileagent/Main.cs:line 144
>>   at DeadDrop.AppDelegate.FinishedLaunching(MonoTouch.UIKit.UIApplication
>> app, MonoTouch.Foundation.NSDictionary options) in
>> /Users/nic/code/git/mobileagent/Main.cs:line 56
>>   at MonoTouch.UIKit.UIApplication.UIApplicationMain(Int32 ,
>> System.String[] , IntPtr , IntPtr )
>>   at MonoTouch.UIKit.UIApplication.Main(System.String[] args,
>> System.String principalClassName, System.String delegateClassName) in
>> /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 26
>>   at MonoTouch.UIKit.UIApplication.Main(System.String[] args) in
>> /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 31
>>   at DeadDrop.Application.Main(System.String[] args) in
>> /Users/nic/code/git/mobileagent/Main.cs:line 16
>> 0: 711bb80 MonoTouch.UIKit.UIImageView
>> ArrayFromHandle<MonoTouch.UIKit.UIView> count: 2    at
>> System.Environment.get_StackTrace() in
>> /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Environment.cs:line
>> 252
>>   at MonoTouch.Foundation.NSArray.ArrayFromHandle(IntPtr handle) in
>> /Users/plasma/Source/iphone/monotouch/shared/Foundation/NSArray.cs:line
>> 146
>>   at MonoTouch.UIKit.UIView.get_Subviews() in
>> /Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 1310
>>   at MonoTouch.UIKit.UIView.AddSubview(MonoTouch.UIKit.UIView view)
>> in /Users/plasma/Source/iphone/monotouch/UIKit/UIView.g.cs:line 197
>>   at DeadDrop.AppDelegate.BuildPhoneUI() in
>> /Users/nic/code/git/mobileagent/Main.cs:line 209
>>   at DeadDrop.AppDelegate.FinishedLaunching(MonoTouch.UIKit.UIApplication
>> app, MonoTouch.Foundation.NSDictionary options) in
>> /Users/nic/code/git/mobileagent/Main.cs:line 56
>>   at MonoTouch.UIKit.UIApplication.UIApplicationMain(Int32 ,
>> System.String[] , IntPtr , IntPtr )
>>   at MonoTouch.UIKit.UIApplication.Main(System.String[] args,
>> System.String principalClassName, System.String delegateClassName) in
>> /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 26
>>   at MonoTouch.UIKit.UIApplication.Main(System.String[] args) in
>> /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:line 31
>>   at DeadDrop.Application.Main(System.String[] args) in
>> /Users/nic/code/git/mobileagent/Main.cs:line 16
>> 0: 711bb80 MonoTouch.UIKit.UIImageView
>> 1: 71caf80 MonoTouch.UIKit.UIView
>>
>>
>> My Code:
>>
>> public void BuildPhoneUI()
>>               {
>>                       UIApplication.SharedApplication.StatusBarStyle =
>> UIStatusBarStyle.BlackOpaque;
>>
>>                       backgroundImageView = new UIImageView(StockImages.GradientBackground);
>>
>>                       backgroundImageView.Bounds = new System.Drawing.RectangleF(0,0,320,480);
>>
>>                       window.AddSubview(backgroundImageView); <-- 144
>>
>> ------------
>>                       window.AddSubview(MainView); <---- 209
>>
>>               }
>>
>> Hope that helps - I need to get a build out, so I'm going to have to
>> go back to 3.x until the weekend.
>>
>> Cheers
>>
>> N
>>
>> --
>> Nic Wise
>> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
>> b. http://www.fastchicken.co.nz/ | http://www.flickr.com/photos/nicwise
>> 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
>> _______________________________________________
>> MonoTouch mailing list
>> [hidden email]
>> 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/ | http://www.flickr.com/photos/nicwise
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
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch