[Mono-bugs] [Bug 587411] New: The application crashes, after setting the property SearchResultsDataSource of a UISearchDisplayController object, this occurs only in Monotouch 1.5.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Mar 11 05:58:04 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=587411
http://bugzilla.novell.com/show_bug.cgi?id=587411#c0
Summary: The application crashes, after setting the property
SearchResultsDataSource of a UISearchDisplayController
object, this occurs only in Monotouch 1.5.
Classification: Mono
Product: MonoTouch
Version: unspecified
Platform: Macintosh
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Runtime
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: Orlandolsilva at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Development
Blocker: ---
Description of Problem:
After i upgraded my Monotouch version from 1.4.7 to the newer version 1.5, the
application deployed with success, but after running crashed without showing
any error. After debugging, i found that the crash was being caused when i set
the property SearchResultsDataSource of a UISearchDisplayController object to a
new object UITableViewDataSource.
In Monotouch's older versions, the application was working correctly.
Here it is a bit of the code that is causing the problem, that is located in my
constructor of my class TableViewController that extends UITableViewController:
"
this.searchDisplayController = new UISearchDisplayController(searchBar, this);
this.searchDisplayController.SearchResultsDataSource = new
GenericTableDataSource(this.tableDataSourceType,
GlobalApplicationConstants.TableViewAddMyCardsTypeWidth);
this.searchDisplayController.SearchResultsDelegate =
this.TableView.Delegate;
this.searchDisplayController.Delegate = new SearchDisplayDelegate(
isFiltersAvailable, this.TableView, this.TableDataSource, cellHeight);
"
class SearchDisplayDelegate : UISearchDisplayDelegate
class GenericTableDataSource : UITableViewDataSource
Steps to reproduce the problem:
1. Deploy the project that i refer in "Additional Information".
2. Run this Sample Project.
3. The app crashed before shows up in the emulator.
Actual Results:
The application crashed without showing any error message.
Expected Results:
The property SearchResultsDataSource of a UISearchDisplayController object
would be set successfully, without causing any crash.
How often does this happen?
Always.
Additional Information:
This occurs too in the sample provided by Richard de Zwart in webpage
http://lsd.luminis.nl/building-iphone-applications-using-monotouch-part-4-the-uisearchdisplaycontroller/
That monotouch sample was working in Monotouch previous versions.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list