dear fadden, thanks a lot for "Thread(ThreadGroup group, Runnable target, String name, long stackSize)".
this works perfectly :) greetings, darolla 2009/4/22 fadden <[email protected]>: > > On Apr 21, 2:17 am, DaRolla <[email protected]> wrote: >> In order to work with a server object (that uses Castor un/ >> marshalling) I do it like I always do. Same routines. Well, this time >> the file is only 172kb (my routines works pretty well with 2,4mb >> files) but the interlacing is quite deep. So it all starts with a >> class containing 2 ArrayLists. I tried de/serializing just >> ArrayList<String> and this works very well. But the XML file (which is >> unmarshalled with Castor and serialized in JDK) has 7000 lines. So I >> get this StackOverflowError. > > Android's default stack size is 8KB. This gets you 60-100 stack > frames, depending on how complex your methods are. > > You can either: > > (a) use something that doesn't recurse as deeply > (b) do the work on a thread you create with Thread(ThreadGroup group, > Runnable target, String name, long stackSize) > > You can create a thread with a much larger stack (max is 256KB), which > should be enough for your needs. If you need more than that, you > should seriously consider adjusting your needs. :-) > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

