Mailing List archive

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

[vdr] Re: PLEASE HELP (was: LCDproc Plugin Settings error (??!) )



> At Monday 21 October 2002 20:13 Tobias Bratfisch wrote:
> > I think the (or one) problem is located in the Progressbar-Patch
> > (BARS=1). With a lot of debugging I think I could trace the (or one)
> > problem back to osd.c in the function cOsdMenu::Display(void):
> >       if (titleProgbar)
> >          Interface->SetBitmap(titleProgbarOffset, 0, *titleProgbar);
> > These lines cause crashes but I actually don't know why.
> > Commenting these lines out I had no crashes the whole weekend.
>
> That gets me to the question Why does my debugger not show the correct line
> number information;) When I traced this problem the error was at
>
> if (bitmap && Bitmap.bitmap) {
>
> where Bitmap (yes the one with the big B, which is an object) pointed to
> 0xa0 at least gdb claimed that.

You're completely right. This line is called from the code I mentioned:

file osd.c, function cOsdMenu::Display(void):

#ifdef PROGRESSBAR 
  if (titleProgbar)
     Interface->SetBitmap(titleProgbarOffset, 0, *titleProgbar);
#endif // PROGRESSBAR
#ifdef CALENDER
  if (titleTimeLine)
    Interface->SetBitmap(titleTimeLinex, titleTimeLiney, *titleTimeLine);
#endif // CALENDER

But I still don't know why this causes crashes.
If the bitmaps don't exist, "if (bitmap && Bitmap.bitmap)" should never be 
called, if they do exist "if (bitmap && Bitmap.bitmap)" should not cause any 
faults because the bitmaps don't get changed (at least as far as I know).

Tobias


--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index