Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re: Canvas does not allow drawing

Status
Not open for further replies.

CStrugling

Programmer
Apr 10, 2007
9
JP
Hi programmers,

Do you know how to fix this bug issue "Canvas does not allow drawing". I get this error when I draw to my canvas by moving many times, ie: draw a line many times. Sometimes this will appear and application crash.

I`m using Borland C++ 2006 version. Is this a bug on borland? Im searching from the websites, and there are some links regarding this. I tried their solutions but it seems bug still appear.

Hope you can help to solve my problem.
 
Hi

It could be that if you are drawing too many times the Canvas is updating while you are trying to draw to it again...

Why not trap the error..put a Sleep(500) if it fails then try again.



Hope this helps!

Regards

BuilderSpec
 
@BuilderSpec

I used the lock and unlock method and it works. thanks for your info and i got the idea on it. good work guys.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top