"Curtis L. Olson" <[EMAIL PROTECTED]> said: > At the start of the program we save a copy of the property tree. As > part of restoring the initial state we copy back this saved property > tree to the current/master property tree. Because of callbacks > (functions tied to property reads and writes) there are various calls > into the environment manager that are triggered which then trigger a > rebuild of a cloud layer. In simgear/sky/cloud.cxx, line #146 there > is a "delete layer_root;" >
Noticed that the "layer_transform" is being reinstantiated every time rebuild() in cloud.cxx is called, but doesn't get deleted. I'm not sure what the effect of that would have other than memory leakage. The "rebuild" (or something else) appears to cause a segfault after being called 3 or 4 times. To demonstrate this, try changing the type on one or more of the layers a few time. Like I said it crashes on about the 3rd or 4th time, reliably on my system. This is not necessarily the same exact problem as the reset issue, since changing the config to just a single layer doesn't seem to allow successful reset. Best, Jim _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel