Thanks for all the responses.  As a newbie, I'm still interested in
understanding the nature of the runtime error.  Was it a case of obsolete
code, a compiler error (faulty garbage collection.), or a build error
(failure to re-build MainWindow.xib.designer.cs)?  Below are the 3 suggested
new lines which fix the problem and the original line they replace.

                 // ListBoxModel lbm;                          // NEW 1 of 3
                public override bool FinishedLaunching (UIApplication app, 
NSDictionary
options)
                {
                //      lbm = new ListBoxModel (this);    // NEW  2 of 3
                //      ListBox.Model = lbm;                 //  NEW  3 of 3

                        ListBox.Model = new ListBoxModel (this);    // ORIGINAL

But the problem is also solved also by leaving the code intact and forcing
MonoDevelop to re-build MainWindow.xib.designer.cs.  What's the simplest way
to trigger this rebuild?

Whenever there's a runtime crash, is the recommended procedure to force a
rebuild of MainWindow.xib.designer.cs and try again, before making an effort
to study the code?

Thanks in advance for any advice.

P.S. Didn't mean to slight any of the other authors of "Professional iPhone
Programming with..." especially when one was so kindly helping me.  Thanks
to all.




--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/is-the-downloadable-code-in-McClure-s-iPhone-Programming-with-MT-compatible-with-current-version-of--tp4655242p4655280.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to