Folks:
I'm trying to use a graphics object with a canvas, and it's causing my
app to crash without any explanation.
Try this:
1. Create a new project. In Window1, add a canvas (Canvas1).
2. In the code for Window1, add a property tempGraphic As Graphic.
3. In the code for the Open event handler, add the following:
tempGraphic = new Graphics
tempGraphic.DrawRect(1,1,20,40)
4. In the code for Canvas1.Paint, add one line:
g = tempGraphic
Now compile and run. On my Windows XP SP2 machine, using 6r2, the app
crashes outright. I get a typical Windows "this program will be shut
down" error. RB doesn't think anything is wrong.
The idea here is to draw updates to my graphics object first, then
update the Canvas only as necessary. Basically, just trying to buffer
the output without displaying it right away.
Is there a better way to do this? Should this be working at all?
Thanks,
Ed
--
_________________________________________
| |
| ED LEE ed_lee @ ncsu.edu |
|_________________________________________|
| |
| Windows Systems Support |
| College of Design |
| NC State University |
|_________________________________________|
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>