[mono-android] Heavy load Thread without being killed?

Oscar R Lopez ironarthur at hotmail.com
Wed Feb 15 14:36:55 UTC 2012


i don´t get any exception, i get some "your pid has died"

02-15 15:28:19.101 D/dalvikvm(  542): GC_EXPLICIT freed 16K, 52% free
2826K/5767K, external 2398K/2652K, paused 137ms
02-15 15:28:20.695 W/PowerManagerService(  118): Timer 0x7->0x3|0x0
02-15 15:28:20.695 I/PowerManagerService(  118): Ulight 7->3|0
02-15 15:28:23.007 I/mypackage( 2345): Insert xclien finish
02-15 15:28:23.007 I/mypackage( 2345): Finished : xclien001.xml || hour:
15/02/2012 15:28:23
02-15 15:28:23.011 I/mypackage( 2345): Starting : xruta.xml || hour:
15/02/2012 15:28:23
02-15 15:28:23.242 I/mypackage( 2345): Insert ruta finish
02-15 15:28:23.242 I/mypackage( 2345): Finished : xruta.xml || hour:
15/02/2012 15:28:23
02-15 15:28:23.242 I/mypackage( 2345): Starting : xwart.xml || hour:
15/02/2012 15:28:23
02-15 15:28:24.519 D/dalvikvm(  695): GC_EXPLICIT freed 436K, 59% free
2662K/6407K, external 2514K/2995K, paused 551ms
02-15 15:28:34.156 I/mypackage( 2345): Insert wart finish
02-15 15:28:34.156 I/mypackage( 2345): Finished : xwart.xml || hour:
15/02/2012 15:28:34
02-15 15:28:34.156 I/mypackage( 2345): Starting : xwart_a.xml || hour:
15/02/2012 15:28:34
02-15 15:28:34.625 D/dalvikvm( 2345): GC_EXPLICIT freed 106K, 50% free
2788K/5511K, external 7062K/8782K, paused 19ms
02-15 15:28:34.625 I/monodroid-gc( 2345): GC cleanup summary: 81 objects
tested - resurrecting 56.
02-15 15:28:35.777 D/dalvikvm( 2345): threadid=10: thread exiting, not yet
detached (count=0)
02-15 15:28:35.796 D/dalvikvm( 2345): GC_EXPLICIT freed 2K, 50% free
2787K/5511K, external 7062K/8782K, paused 20ms
02-15 15:28:35.800 I/monodroid-gc( 2345): GC cleanup summary: 56 objects
tested - resurrecting 56.
02-15 15:28:36.000 D/AndroidRuntime( 2359): 
02-15 15:28:36.000 D/AndroidRuntime( 2359): >>>>>> AndroidRuntime START
com.android.internal.os.RuntimeInit <<<<<<
02-15 15:28:36.011 D/AndroidRuntime( 2359): CheckJNI is OFF
02-15 15:28:36.011 D/AndroidRuntime( 2359): setted country_code = Spain
02-15 15:28:36.011 D/AndroidRuntime( 2359): setted sales_code = XEC
02-15 15:28:36.011 D/AndroidRuntime( 2359): setted gSales_Code = XEC
02-15 15:28:36.011 D/AndroidRuntime( 2359): Set to default setting_5 :
language=-Duser.language=es propLang=es
02-15 15:28:36.011 E/AndroidRuntime( 2359): Set to default setting_6 :
region=-Duser.region=ES propRegn=ES
02-15 15:28:36.011 D/AndroidRuntime( 2359): found sales_code tag = <XEC>,
</XEC> 
02-15 15:28:36.011 D/dalvikvm( 2359): creating instr width table
02-15 15:28:36.218 D/LibQmg_native( 2359): register_android_app_LibQmg
02-15 15:28:36.277 D/AndroidRuntime( 2359): Calling main entry
com.android.commands.am.Am
02-15 15:28:36.320 I/ActivityManager(  118): Process com.company.mypackage
(pid 2345) has died.


my code:
DataSet ds= new DataSet();
ds.ReadXml(direcXML);
table= ds.Tables[0]

Models.Modelos.wart_a wart_a;
db.Query<Models.Modelos.wart_a>("DROP TABLE IF EXISTS wart_a");
db.CreateTable<Models.Modelos.wart_a>();
db.InsertAll(ConvertToIenum_a(table));

and:
 private static IEnumerable<Modelos.wart_a> ConvertToIenum_a(DataTable
dataTable)
        {
          
            foreach (DataRow row in dataTable.Rows)
            {
                yield return new Modelos.wart_a
                {
                    cod_art = row.ItemArray[0].ToString(),
                    almacen = row.ItemArray[1].ToString(),
                    ubicacion = row.ItemArray[2].ToString(),
                   (  .... lot of fields)
                };
            }

        }


Bye and thanks


--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Heavy-load-Thread-without-being-killed-tp5481800p5486205.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list