I'am uisng kxml to do xml parsing but i keep getting a "Segmentation fault" error when i try to preverify my classes. I'am using CLDC1.1 on fedora core 2. The following line of code is causing the problem. long bufsize = Runtime.getRuntime().freeMemory() >= 1048576 ? 8192 : 1;.
Anyone know why this is causing a problem? Is is a problem with long? The following line of code works ok System.out.println(Runtime.getRuntime().freeMemory());
Thanks for any help
posted 12 years ago
It should not be caused by this, but try grouping your conditional -> ie. (foo.foo() >= 104727) ? (27763) : (2344)