Board index » delphi » canvas does not allow drawing
Bernd Karle
![]() Delphi Developer |
Thu, 25 Dec 2003 04:48:35 GMT
|
Bernd Karle
![]() Delphi Developer |
Thu, 25 Dec 2003 04:48:35 GMT
canvas does not allow drawing
Hi,
on some computers my D3 written program rises a error 'canvas does not |
Bj?rge S?the
![]() Delphi Developer |
Fri, 26 Dec 2003 05:13:12 GMT
Re:canvas does not allow drawing"Quivis" <qui...@ask.me.first> skrev i melding news:MPG.15b29af6d1bf6aea98a02c@207.14.113.10... Quote> On Sat, 07 Jul 2001 22:48:35 +0200, Bernd Karle had this to say... is a delphi-created one, when the canvas does not have a valid handle. I'm not 100% sure, but I guess this happens when the control is not properly initialized, often caused by an exception in the creation process. ISTM that it's even easier to get this error at designtime with a custom created control (because all stuff done to a control is done when the control is visible). It may also happen when you're out of GUI resources (Win9x). |
Bruce Robert
![]() Delphi Developer |
Fri, 26 Dec 2003 12:07:04 GMT
Re:canvas does not allow drawingQuote"Bj?rge S?ther" <REMOVE_bsaether@THIS_online.no> wrote in message Quote> "Quivis" <qui...@ask.me.first> skrev i melding involves a control's canvas before its handle has been created. I'd check the form's OnCreate event and the constructors of any custom components. |
M.H. Avegaar
![]() Delphi Developer |
Fri, 26 Dec 2003 23:07:56 GMT
Re:canvas does not allow drawingI don't think that your application contains bugs. The error 'Canvas does not allow drawing' is very often the result of a lack of user resources (use the Resource Meter to check). Some tips on how to reduce resource usage: "Bernd Karle" <f...@gmx.net> schreef in bericht Quote> Hi, |
Andreas Kyriaco
![]() Delphi Developer |
Sat, 27 Dec 2003 16:50:10 GMT
Re:canvas does not allow drawingThe message <0dtekt8ubbl3410m29g73tuo8j1if7e...@4ax.com> from Bernd Karle <f...@gmx.net> contains these words: Quote> Hi, http://www.jrsoftware.org/buglist/bugsall.htm The Delphi 3.02 version still has some memory leaks -- Andreas Kyriacou |
Bj?rge S?the
![]() Delphi Developer |
Sun, 28 Dec 2003 01:18:47 GMT
Re:canvas does not allow drawing"Quivis" <qui...@ask.me.first> skrev i melding news:MPG.15b44f51b69b8c7b98a02e@207.14.113.10... Quote> On Sun, 8 Jul 2001 23:13:12 +0200, Bj?rge S?ther had this to say... the message flow and handle/device context stuff of a Windows control. It's complicated, so I don't blame anyone. And - I make such mistakes from time to time myself. It's a "what-goes-where" - problem, a piece of code involving canvas access placed where it should not be. The reason it crashes after setting a propert is probably that the control Back to your control: You may email me the code, describe how you make the b -- |
Ima Niceg
![]() Delphi Developer |
Sun, 28 Dec 2003 21:23:34 GMT
Re:canvas does not allow drawingHi, I have had this problem when some graphic components (like tgifimage) try to draw when the system is very low on resources, if there are a lot of other memory greedy programs running. Instead of a out of memory message, I get 'canvas does not allow drawing - as if it's not initilaised or something has failed during the setup. I have reduced the immediate memory requirements of my app by using QuoteOn Sun, 8 Jul 2001 17:30:18 +0200, Quivis <qui...@ask.me.first> wrote: |
1. Error: Canvas does not allow drawing
2. Error: Canvas does not allow drawing
3. Canvas does not allow drawing. :(
4. Canvas does not allow drawing!
5. Canvas does not allow drawing???
6. Canvas does not allow drawing
7. Error Canvas does not allow drawing.
8. Screen capture - Canvas does not allow drawing.