Click here to Skip to main content
15,921,279 members
Home / Discussions / C#
   

C#

 
QuestionCall to Graphics.DrawString thows invalid argument on call to System.Drawing.Graphics.CheckErrorStatus Pin
DoomedOne21-May-07 8:25
DoomedOne21-May-07 8:25 
AnswerRe: Call to Graphics.DrawString thows invalid argument on call to System.Drawing.Graphics.CheckErrorStatus Pin
Dave Kreskowiak21-May-07 8:29
mveDave Kreskowiak21-May-07 8:29 
GeneralRe: Call to Graphics.DrawString thows invalid argument on call to System.Drawing.Graphics.CheckErrorStatus Pin
DoomedOne21-May-07 8:46
DoomedOne21-May-07 8:46 
GeneralRe: Call to Graphics.DrawString thows invalid argument on call to System.Drawing.Graphics.CheckErrorStatus Pin
Dave Kreskowiak21-May-07 9:17
mveDave Kreskowiak21-May-07 9:17 
GeneralRe: Call to Graphics.DrawString thows invalid argument on call to System.Drawing.Graphics.CheckErrorStatus Pin
DoomedOne21-May-07 9:40
DoomedOne21-May-07 9:40 
GeneralRe: Call to Graphics.DrawString thows invalid argument on call to System.Drawing.Graphics.CheckErrorStatus Pin
Dave Kreskowiak21-May-07 10:10
mveDave Kreskowiak21-May-07 10:10 
GeneralRe: Call to Graphics.DrawString thows invalid argument on call to System.Drawing.Graphics.CheckErrorStatus Pin
DoomedOne21-May-07 10:46
DoomedOne21-May-07 10:46 
GeneralRe: Call to Graphics.DrawString thows invalid argument on call to System.Drawing.Graphics.CheckErrorStatus Pin
Luc Pattyn21-May-07 12:40
sitebuilderLuc Pattyn21-May-07 12:40 
DoomedOne wrote:
if (!DrawingToBuffer){ //flag para prevenir 2 instancias al mismo tiempo
// Here gos code to read data from database....

DrawingToBuffer = true;


You are trying to have a mutex so only one instance of this code can execute the
drawing actions, but:
1) having a separate test, then set of a variable is not reliable
2) if as your comment indicate you do a database access in between, it is
doomed to fail.

So give it a try with DrawingToBuffer=true before you do DB access,
and better yet use a real non-reentrance defense (such as disabling the timer
while inside paginar).

Smile | :)


GeneralRe: Call to Graphics.DrawString thows invalid argument on call to System.Drawing.Graphics.CheckErrorStatus Pin
DoomedOne22-May-07 3:05
DoomedOne22-May-07 3:05 
AnswerRe: Call to Graphics.DrawString thows invalid argument on call to System.Drawing.Graphics.CheckErrorStatus Pin
DoomedOne22-May-07 7:22
DoomedOne22-May-07 7:22 
QuestionHow to validate decimal value Pin
indiaone21-May-07 7:21
indiaone21-May-07 7:21 
AnswerRe: How to validate decimal value Pin
Sven Cipido21-May-07 7:34
Sven Cipido21-May-07 7:34 
AnswerRe: How to validate decimal value Pin
Are Jay21-May-07 8:00
Are Jay21-May-07 8:00 
QuestionDerived class constructors Pin
~~~Johnny~~~21-May-07 7:08
~~~Johnny~~~21-May-07 7:08 
AnswerRe: Derived class constructors Pin
Not Active21-May-07 7:15
mentorNot Active21-May-07 7:15 
AnswerRe: Derived class constructors Pin
Dave Kreskowiak21-May-07 7:24
mveDave Kreskowiak21-May-07 7:24 
GeneralRe: Derived class constructors Pin
~~~Johnny~~~21-May-07 7:36
~~~Johnny~~~21-May-07 7:36 
GeneralRe: Derived class constructors Pin
Dave Kreskowiak21-May-07 8:24
mveDave Kreskowiak21-May-07 8:24 
AnswerRe: Derived class constructors Pin
Dave Herren21-May-07 7:41
Dave Herren21-May-07 7:41 
GeneralRe: Derived class constructors Pin
~~~Johnny~~~21-May-07 8:12
~~~Johnny~~~21-May-07 8:12 
GeneralRe: Derived class constructors Pin
Dave Herren21-May-07 9:48
Dave Herren21-May-07 9:48 
GeneralRe: Derived class constructors Pin
~~~Johnny~~~21-May-07 10:37
~~~Johnny~~~21-May-07 10:37 
Question.net test question bank creator Pin
rajantawate1(http//www.tawateventures.com21-May-07 7:02
rajantawate1(http//www.tawateventures.com21-May-07 7:02 
AnswerRe: .net test question bank creator Pin
Not Active21-May-07 7:09
mentorNot Active21-May-07 7:09 
QuestionHow to take mysql backup through .Net Pin
Joe Rozario21-May-07 6:43
Joe Rozario21-May-07 6:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.