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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

webbrowser problem 1

Status
Not open for further replies.

captanblack

Programmer
Mar 2, 2004
20
0
0
IR
Hi

i am using a webbrowser in my application and i use a http server in my application that receives webbrowser requests
and answer to request , sometimes when i post a request to server (i use document object module) i get an exception
"canvas doesnt allow drawing" , ok it has made me complicated , anybody have any comment on ?

So thanx
 
Search on Google found:


says:

Msg 'Canvas does not allow drawing'
Q:
What does the error message 'Canvas does not allow drawing' mean?

A:


you may have run out of resources, which means a new DC cannot be
allocated. Usually this is a result of not freeing unused DCs or other
objects

you are attempting to draw to an device context that is not yet valid.
Such as in the create constructor of a component.

you are trying to draw on a canvas while your last draw-operation has
not finished yet. In this case you can use Canvas.Lock or Canvas.TryLock to fix it.

hth

- fruNNik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top