Re: [Vala] Segfault



On Thu, Jun 28, 2012 at 12:02 PM, David Boesner <
david boesner googlemail com> wrote:

   public SuperClass(int data) {
       this.data = data;
       stdout.printf("3");
       //base(); ////// Here is a segfault
//////////////////////////////////////
   }


You can't access "this" before you construct the instance with base(). Call
it before this.data = data.

-- 
www.debian.org - The Universal Operating System


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]