I have weird one - things have been working ok an d I cannot pinpoint a
moment when this started happening - been away form the code for a few weeks
Very simple start up asfollows
This is a representation of the Didload sorry for any strange characters I
lifted it o a Mac and doing this emal on WP7
Anyway as you can see theres not much going on but setting the debugger it
willfall over variously at one of the ShouldReturn lines - you can see I;ve
remmed out two wondering what the hell was causing this
These lines were originally in a threadpool bracket and all worked well
It also at this stage used to load an xml document (loadadapters() or
loadxt() )containing a directory of airfields and codes - this has recently
been increased form about 500 lines to some 2500
I remmed this out thinking it might have a memory implication but this
random dropping out still occurs
Working (or rather not!) on Macbook air Lion with iPhoen 3g running 4.2
project set to min ver 4.2
A trace from teh output file is shown below the prog code
Can anyone make any suggestions - even rude ones J
================================= prog code
override ViewDidLoad ()
{
base.ViewDidLoad ();
// Perform any additional
setup after loading the view, typically from a nib.\
// ThreadPool.QueueUserWorkItem(new WaitCallback(loadadapters));
// loadxt(this);
// vineGar.CheckForLog2(this);
//ThreadPool.QueueUserWorkItem(new WaitCallback(loadadapters));
// loadadapters(this);
// loadxt(this);
// data1 = GetCountrylist(false)\
// countries = getISOcountries();
// loadadapters();\
// ThreadPool.QueueUserWorkItem(new WaitCallback(loadxt)); //
and do vineGar.checkforlog checkfor log \
//ops screen stuff\
// ThreadPool.QueueUserWorkItem(delegate \{
inete.Text=;
outete.Text=;
aircraftregTB.ShouldReturn=DoReturn;
aircrafttypeTB.ShouldReturn=DoReturn;
aircraftbaseTB.ShouldReturn=DoReturn;
// aowneroptelTB.ShouldReturn=DoReturn;
// aowneropnameTB.ShouldReturn=DoReturn;
aircraftregTB.KeyboardType=UIKeyboardType.Default;
aircraftregTB.ReturnKeyType=UIReturnKeyType.Next;
aircrafttypeTB.ReturnKeyType=UIReturnKeyType.Next;
aircraftbaseTB.ReturnKeyType=UIReturnKeyType.Next;
aowneropnameTB.ReturnKeyType=UIReturnKeyType.Done;
aowneroptelTB.ReturnKeyType=UIReturnKeyType.Done;
aowneroptelTB.KeyboardType=UIKeyboardType.NumbersAndPunctuation;
aircraftregTB.Tag=100 ;
aircrafttypeTB.Tag=110;
//etc etc/// rest of code
System.NullReferenceException: Object reference not set to an instance of an
object\
at Mono.Debugging.Soft.SoftDebuggerAdaptor.GetIndexerReference
(Mono.Debugging.Evaluation.EvaluationContext ctx, System.Object target,
System.Object[] indices) [0x000e0] in
/Users/builder/data/lanes/monodevelop-mac-2.8.8.4/cc9fe83c/source/monodevelo
p/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebugger
Adaptor.cs:259 \
at Mono.Debugging.Evaluation.EvaluatorVisitor.VisitIndexerExpression
(ICSharpCode.OldNRefactory.Ast.IndexerExpression indexerExpression,
System.Object data) [0x00102] in
/Users/builder/data/lanes/monodevelop-mac-2.8.8.4/cc9fe83c/source/monodevelo
p/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryEvaluator
.cs:513 \
at ICSharpCode.OldNRefactory.Ast.IndexerExpression.AcceptVisitor
(IAstVisitor visitor, System.Object data) [0x00000] in
/Users/builder/data/lanes/monodevelop-mac-2.8.8.4/cc9fe83c/source/monodevelo
p/main/contrib/NRefactory/Project/Src/Ast/Generated.cs:2556 \
at Mono.Debugging.Evaluation.NRefactoryEvaluator.Evaluate
(Mono.Debugging.Evaluation.EvaluationContext ctx, System.String exp,
System.Object expectedType, Boolean tryTypeOf) [0x00164] in
/Users/builder/data/lanes/monodevelop-mac-2.8.8.4/cc9fe83c/source/monodevelo
p/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryEvaluator
.cs:89 System.NullReferenceException:
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch