Bug 9175 - Objects with same Template base class causes crash on device.
Summary: Objects with same Template base class causes crash on device.
Status: RESOLVED DUPLICATE of bug 6963
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 6.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-01-01 19:57 UTC by Jean Coetzee
Modified: 2013-01-03 05:25 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Picklist Helper (11.75 KB, application/x-zip-compressed)
2013-01-01 19:57 UTC, Jean Coetzee
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 6963

Description Jean Coetzee 2013-01-01 19:57:24 UTC
Created attachment 3151 [details]
Picklist Helper

Created a Picklist helper classes, but due to JIT compiler issues I had to have a helper for int type picklists and one for string type picklists.  They inherit from the same template base class witch intern inherits from UITextField.  The problem manifests when both types of picklist helpers are used in the same UIViewController.  This problem only occurs on an actual device and not on the simulator.  I have attached small test project that demonstrates the problem.
Comment 1 Rolf Bjarne Kvinge [MSFT] 2013-01-03 05:25:24 UTC
Exporting generic types to ObjectiveC is currently an unsupported scenario.

When building for device this is reported as build warnings:

warning MT4112: The registrar found a generic type: TemplateTestApp.PicklistHelperBase`1. Registering generic types with ObjectiveC is not supported, and will lead to random behavior and/or crashes.
warning MT4112: The registrar found a generic type: TemplateTestApp.PicklistHelperBase`1/PicklistViewController. Registering generic types with ObjectiveC is not supported, and will lead to random behavior and/or crashes.

We already have a bug report open about adding support for exporting generic types to ObjectiveC, so I'm marking this bug as a duplicate of that one.

*** This bug has been marked as a duplicate of bug 6963 ***