зеркало из https://github.com/mono/mail-archives.git
90 строки
3.4 KiB
HTML
90 строки
3.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [mono-android] InvalidCastException in release mode
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=Re%3A%20%5Bmono-android%5D%20InvalidCastException%20in%20release%20mode&In-Reply-To=%3CE3C3E5C1DB20E040A23772BAB822E3646CDA9884%40mail-west-2.exchange2.ara.wan%3E">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<style type="text/css">
|
|
pre {
|
|
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
|
|
}
|
|
</style>
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="012797.html">
|
|
<LINK REL="Next" HREF="012799.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[mono-android] InvalidCastException in release mode</H1>
|
|
<B>Jeremy A. Kolb - ARA/NED</B>
|
|
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=Re%3A%20%5Bmono-android%5D%20InvalidCastException%20in%20release%20mode&In-Reply-To=%3CE3C3E5C1DB20E040A23772BAB822E3646CDA9884%40mail-west-2.exchange2.ara.wan%3E"
|
|
TITLE="[mono-android] InvalidCastException in release mode">jkolb at ara.com
|
|
</A><BR>
|
|
<I>Thu Nov 8 20:48:22 UTC 2012</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="012797.html">[mono-android] Unobserved task errors
|
|
</A></li>
|
|
<LI>Next message: <A HREF="012799.html">[mono-android] InvalidCastException in release mode
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#12796">[ date ]</a>
|
|
<a href="thread.html#12796">[ thread ]</a>
|
|
<a href="subject.html#12796">[ subject ]</a>
|
|
<a href="author.html#12796">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>I'm seeing this exception in release mode only. I have a fragment that implements LoaderManager.ILoaderCallbacks:
|
|
|
|
public void OnLoadFinished(Loader loader, Java.Lang.Object data)
|
|
{
|
|
switch(loader.Id)
|
|
{
|
|
case PersonnelListLoaderId:
|
|
this._adapter.SwapCursor((ICursor)data);
|
|
break;
|
|
}
|
|
}
|
|
|
|
In release mode the cast to ICursor fails even though it is a CursorWrapper. I'm not sure why it happens in release but not debug. Has anyone seen anything like this before? I thought it might be a linking issue but I have "sdk only" selected and the other options didn't help.
|
|
|
|
Thanks,
|
|
Jeremy
|
|
-------------- next part --------------
|
|
An HTML attachment was scrubbed...
|
|
URL: <<A HREF="http://lists.ximian.com/pipermail/monodroid/attachments/20121108/04e3c52d/attachment.html">http://lists.ximian.com/pipermail/monodroid/attachments/20121108/04e3c52d/attachment.html</A>>
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="012797.html">[mono-android] Unobserved task errors
|
|
</A></li>
|
|
<LI>Next message: <A HREF="012799.html">[mono-android] InvalidCastException in release mode
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#12796">[ date ]</a>
|
|
<a href="thread.html#12796">[ thread ]</a>
|
|
<a href="subject.html#12796">[ subject ]</a>
|
|
<a href="author.html#12796">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
|
|
mailing list</a><br>
|
|
</body></html>
|