bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Run-time error, and beginner questions


From: Jim Segrave
Subject: Re: [Bug-gnubg] Run-time error, and beginner questions
Date: Sun, 29 Jun 2003 22:18:14 +0200
User-agent: Mutt/1.2.5.1i

On Sun 29 Jun 2003 (15:55 +0200), Gabi at HotPOP wrote:
> I compiled and executed according to Nardy's instructions.
> The game runs fine, but when I try to analyze a position, I get the following 
> error:
> 
> (gnubg.exe:1420): Gtk-CRITICAL **: file gtkstyle.c: line 348 
> (gtk_style_copy): assertion `style != NULL' failed
> 
> My questions:
> 1) What is the problem?
> 2) Should I get the GTK sources?  According to the instructions, I just have 
> the DLL.
> 3) If and when I get the sources, how do I get to debug the program?

Could you post the details of what you are doing? The position or the
game/match details might help - if it's a gnubg bug that can be
replicated, it will get fixed.

> Larger scope questions (from a beginner):
> 4) How can I learn to extend graphic capabilities?  For example, add "quick 
> buttons" to start 1-, 3-, 5- and 7-point matches.

Look at gtkgame.c and gtkboard.c to see how other buttons are created
and activate commands. I think you'd basically want buttons that, when
clicked, call UserCommand with strings like "new match 1", "new match
3", etc. The gtk reference manuals help - they are available on-line
or as html in the gtk sources

> 5) Are there any design documents for gnubg?  I tried to read the sources and 
> it's quite difficult without guiding.

Not that I'm aware of. But user functions (as opposed to the details
of the playing and analysis engines) are often easier to figure out
than you might think. Every menu command has a text mode
equivalent. The file gnubg.c has a set of arrays which lead you to the
functions called for the various text mode commands. From there you
can find the code which performs functions of interest (or related
functions to what you want to do).

-- 
Jim Segrave           address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]