import li_boost_intrusive_ptr.*; public class li_boost_intrusive_ptr_runme { static { try { System.loadLibrary("li_boost_intrusive_ptr"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e); System.exit(1); } } // Debugging flag public final static boolean debug = false; private static void WaitForGC() { System.gc(); System.runFinalization(); try { java.lang.Thread.sleep(10); } catch (java.lang.InterruptedException e) { } } public static void main(String argv[]) { if (debug) System.out.println("Started"); li_boost_intrusive_ptr.setDebug_shared(debug); // Change loop count to run for a long time to monitor memory final int loopCount = 5000; //5000; for (int i=0; i