Hi all,
For some reason I am seeing that the RoboViewController instances that I create are never GC'ed.
In a simple test app I do the following:
UIViewController roboVC = new RoboViewController(UIScreen.getMainScreen().getBounds(), new RoboPlatform.Config()) {
@Override
protected void doDispose() {
super.doDispose();
System.out.println("RoboViewController.doDispose");
}
};
System.out.println("RoboViewController: retain count = " + roboVC.retainCount());
roboVC = null;
UIViewController vc2 = new UIViewController() {
@Override
protected void doDispose() {
super.doDispose();
System.out.println("UIViewController.doDispose");
}
};
System.out.println("UIViewController: retain count = " + vc2.retainCount());
vc2 = null;
After some time, the GC will kick in, and I see UIViewController.doDispose printed to the console.
However I never see the RoboViewController.doDispose trace.
Any ideas what might be going on here?
Guillermo