> i'm not sure, but shouldn't you give the player pointer null? i mean: > public class MainWindow : Window { > WebPlayer player = null; > }
I believe if no initial value is explicitly given the compiler will give it a default value of null. > Also, i think using a static main in a class isn't a good thing, write a > class initializer and use an extern main method, e.g.: extern main and static main are really the same thing, except for the namespacing, which doesn't really matter. I suspect what happens is that player.destroy does its job, and the assignment player = new WebPlayer() produces code that thinks that it has a non-toplevel garbage window to cleanup. hand Nor Jaidi Tuah _______________________________________________ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list