Kevin Ollivier | 5 Oct 2004 23:12
Picon
Favicon

[documancer] CVS - Invalid toolbar bitmap on Windows?

Hi all,

Were some new icons added to the Documancer package recently? I just 
checked out CVS HEAD and I am testing against 2.5.2.8 on Windows, and 
whenever I try to start the program, I get an assert saying "invalid 
tool button bitmap" in src/msw/tbar95.cpp line 635. (Basically, 
bmp.Ok() is failing.) If I know what's been added recently, it will 
make it easier for me to track down which icon(s) are causing the 
problem. (Or what wxWidgets is doing wrong.)

Thanks,

Kevin

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Vaclav Slavik | 6 Oct 2004 17:59
Picon
Favicon

Re: [documancer] CVS - Invalid toolbar bitmap on Windows?

Hi,

Kevin Ollivier wrote:
> Were some new icons added to the Documancer package recently? 

Depends on your definition of "recently". Refresh and Stop icons were 
added since 0.2.3, but I didn't touch CVS in a month or so.

> just checked out CVS HEAD and I am testing against 2.5.2.8 on
> Windows, and whenever I try to start the program, I get an assert
> saying "invalid tool button bitmap" in src/msw/tbar95.cpp line 635.

I thought wxPython would output backtrace to stderr, does it not? 

Regards,
Vaclav

--

-- 
PGP key: 0x465264C9, available from http://pgp.mit.edu/
Kevin Ollivier | 6 Oct 2004 19:40
Picon
Favicon

Re: [documancer] CVS - Invalid toolbar bitmap on Windows?

Hi Vaclav,

On Oct 6, 2004, at 8:59 AM, Vaclav Slavik wrote:

> Hi,
>
> Kevin Ollivier wrote:
>> Were some new icons added to the Documancer package recently?
>
> Depends on your definition of "recently". Refresh and Stop icons were
> added since 0.2.3, but I didn't touch CVS in a month or so.

Wow, I believe I just found a nasty bug in wxMSW. I went to check the 
refresh and stop icons to see if there was something wrong that would 
cause them not to appear, and I noticed that they weren't in my 
Documancer source tree at all. Checking more, it appears 
src/data/refresh.png and src/data/stop.png are not actually in the 
Documancer CVS tree. (They aren't showing up in SF's CVS browser 
either.) But the amazing part here is that wxMSW doesn't even complain 
that the files don't exist! That's why I'm getting the invalid tool 
button bitmap error inside of wxToolbar::Realize().

If this is indeed the case (that wxBitmap doesn't even assert for 
nonexistent files) then I think we need to remedy that before 2.6. I'm 
going to check the source code for wxBitmap on MSW later and see if I 
can figure this out.

>> just checked out CVS HEAD and I am testing against 2.5.2.8 on
>> Windows, and whenever I try to start the program, I get an assert
>> saying "invalid tool button bitmap" in src/msw/tbar95.cpp line 635.
(Continue reading)

Vaclav Slavik | 6 Oct 2004 20:12
Picon
Favicon

Re: [documancer] CVS - Invalid toolbar bitmap on Windows?

Kevin Ollivier wrote:
> Checking more, it appears
> src/data/refresh.png and src/data/stop.png are not actually in the
> Documancer CVS tree.

Embarrassing... Thanks, fixed now.

Vaclav

--

-- 
PGP key: 0x465264C9, available from http://pgp.mit.edu/

Gmane