Announcement

Collapse
No announcement yet.

Graphic Window turning white ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Graphic Window turning white ?

    I've got a problem with one of my applications : the application draws graphs in the output window . The CPU is herby running at ca. 100% .
    Sometimes the output window becomes totally empty , in the middle of the run .
    The curious thing is that if I perform a screenshot at the end of the program , the screenshot is as expected .
    Do I have some problem with my Graphics?
    Curiously , if I give the program at the beginning a priority of "high" in the Windows task manager the problem doesn't occur at all.
    Someone has any similar experiences ( and a cure ) ?

  • #2
    Originally posted by Frank Kestens View Post
    The CPU is herby running at ca. 100% .....( and a cure ) ?
    Compileable source code will probably do the trick...

    Comment


    • #3
      Originally posted by Chris Holbrook View Post
      Compileable source code will probably do the trick...
      What do yo mean Chris ?
      The program compiles wihout errors

      Comment


      • #4
        Originally posted by Frank Kestens View Post
        What do yo mean Chris ?
        The program compiles wihout errors
        If you post compileable source code here then people can look at it and I bet you will get a result.

        Comment


        • #5
          Frank,
          Basically if you post the code you are using that makes the CPU go to 100% I am sure someone can spot why it is doing that. (Although without seeing code, we can only guess, but my guess would involve SLEEP)

          Engineer's Motto: If it aint broke take it apart and fix it

          "If at 1st you don't succeed... call it version 1.0"

          "Half of Programming is coding"....."The other 90% is DEBUGGING"

          "Document my code????" .... "WHYYY??? do you think they call it CODE? "

          Comment


          • #6
            Sounds like "The White Screen of Death" .... what you get when you try do something which ties up the current thread, preventing the screen from repainting.

            (solution: do such stuff in a separate thread of execution).
            Michael Mattias
            Tal Systems (retired)
            Port Washington WI USA
            [email protected]
            http://www.talsystems.com

            Comment


            • #7
              Thanks for the answers . I'll post the code , but cause its quite long I have to clean it before posting it ...

              Comment

              Working...
              X