[wxpython-users] Win32 mode and graphics?
Chris.Barker
Chris.Barker at noaa.gov
Thu May 1 21:03:34 PDT 2008
Brian Hamlin wrote:
>> so I am going through demos.. yes, FloatCanvas in the demo app. but I
>> am getting errors
>> CreateXXXBrush() failed with error (number) (this function only
>> valid in Win32 mode)
> I should say clearly.. FloatCanvas *is* working.. some of the Demos work
> *fine*.. it is some of the calls that are failing, in some demos.. on
> Windows98.. thanks
I have no idea what I'm talking about, but a wild guess is that maybe
you are running out of resources -- older Windows versions were limited
as to how many GDI objects, etc you could have, an FloatCanvas caches
pens and brushes, so that may be the source of the error.
Though you'd sure think you were running in "Win32 mode"!
However, if I'm right, you may not have any problems with your real app.
The FloatCanvasDemo generates a LOT of random colors, etc, so that the
pen and brush cache is probably a lot larger than what you'd get with a
real app.
Are you seeing any of these errors with your own code?
In the refactor, we'll probably get rid of that caching system, but
frankly I'm not going to put too much effort into supported a 10 yr. old
OS that was build on old, crappy technology to begin with.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list