FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AssertError in TextView

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
lulabad



Joined: 24 Apr 2008
Posts: 7

PostPosted: Mon Apr 28, 2008 2:02 am    Post subject: AssertError in TextView Reply with quote

Simple Programm running under Windows Vista 32bit and gtkd r494:
Code:
module GuiTest;

import gtk.MainWindow;
import gtk.GtkD;
import gtk.TextView;
import gtk.TextBuffer;
import gtk.TextMark;

void main(char[][] args) {
    GtkD.init(args);
    MainWindow win = new MainWindow("TEST");
    TextView view = new TextView();
    TextBuffer buffer = view.getBuffer();
    TextMark last_pos = buffer.getMark("last_pos");
    win.add(view);
    win.showAll();
    GtkD.main();
}

The Error Message is:
Code:
Error: AssertError Failure gtk\TextMark.d(140) struct gtkTextMark is null on constructor

The Problem is buffer.getMark("last_pos");
The Mark does not exists. This works if i create the Mark befor getMark.
Is this an BUG?
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Mon Apr 28, 2008 12:12 pm    Post subject: Reply with quote

That assert was removed in svn r348 are you sure you have r494?
Back to top
View user's profile Send private message
lulabad



Joined: 24 Apr 2008
Posts: 7

PostPosted: Mon Apr 28, 2008 2:28 pm    Post subject: Reply with quote

Wow, i have reinstalled the current svn and now all works fine.
I do not understand what the problem was but it was my fault.
Sorry.
_________________
-----------------------------------------
Sorry for my bad English, im German Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group