View previous topic :: View next topic |
Author |
Message |
lulabad
Joined: 24 Apr 2008 Posts: 7
|
Posted: Mon Apr 28, 2008 2:02 am Post subject: AssertError in TextView |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Mon Apr 28, 2008 12:12 pm Post subject: |
|
|
That assert was removed in svn r348 are you sure you have r494? |
|
Back to top |
|
|
lulabad
Joined: 24 Apr 2008 Posts: 7
|
Posted: Mon Apr 28, 2008 2:28 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
|