On 01-Mar-2002 Bo Thorsen wrote:
> Hi all,
> 
> I now have blackbox running and looking beautiful in my hammer simulator,
> but I have a problem.
> 
> I can set the style in .blackboxrc, but if I try it on runtime blackbox
> immediately dumps core.
> 
> Not having gdb yet, I'm faced with an awful amount of ifdefs, so I was
> hoping that someone could point me to the place in the code where this
> might happen. Just general pointers would speed up the binary search a
> lot.
> 
> I'm running blackbox 0.62.0.
> 

Well, I would really like to make this easier on you, but I can't.  Changing
the style touches nearly every cc file in the source.  Let me give you the
quick overview:

Rootmenu.cc:
  if chose SetStyle -> blackbox->saveStyleFilename(style)
  fall through to Reconfigure -> blackbox->reconfigure()

blackbox.cc:
  void reconfigure(void) -> re-read the Xrm database using style as the database
                            then delete all of the menu time stamps
                            then for each screen, screen->reconfigure()

Screen.cc:
  void reconfigure(void) -> parse the style, update the gradients, call
                            reconfigure() on every item it manages --
                            workspace, menus, windows, toolbar, slit ....

Each of the subsequent reconfigure() calls adjusts decor, location, font, etc. 
Until you can at least get a stack trace the best thing you could do is place a
'I am here' print in each reconfigure() method.  At least that way you know who
died.  Warning, reconfigure() is called fairly often on some items.

Reply via email to