Hi Robin (and all)
win98se, py 2.2.1, wx py 2.3.3pre5
I created a class called PlotAreaXY and will open it. PlotAreaXY is
a ready-to-use widget to draw a function y=f(x) on the screen. The class
PlotAreaXY uses a bitmap as buffer and comes with its own drawing and
scaling procedures.
I have implemented two 'PlotData' procedures, that draw onto the DC.
The first uses dc.DrawLine(), the second uses dc.DrawLineList().
Both procedures should raise an exception when an error occurs. The first
one works fine, the second not. What is strange, is that I even can not
catch the error with a try... except. The application (pythonw or python)
crashes, and windows displays some register errors in the module
python22.dll.
I tested different things like using wxBufferedPaintDC() instead of
my buffered bmp. Same problem. I suspected a graphic driver problem,
or my buffered bitmap. I only succeed to localize the problem in
dc.DrawLineList().
On wxPython 2.3.2.1: same story.
My test file, PlotAreaDebug, is too long for this mailing list, I will
attached it to this mail. I added some comments in it.
Regards
Jean-Michel Fauth, Switzerland
PlotAreaDebug.py (21.3 KB)