Re: [Vala] (previously no subject) vala gtk bug?
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: <vala-list gnome org>
- Subject: Re: [Vala] (previously no subject) vala gtk bug?
- Date: Wed, 4 Jul 2012 16:51:00 +0800
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]