Click here to Skip to main content
15,905,004 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Odd BitBlt timings Pin
Mircea Puiu29-Oct-05 9:22
Mircea Puiu29-Oct-05 9:22 
GeneralRe: Odd BitBlt timings Pin
RandomMonkey29-Oct-05 9:38
RandomMonkey29-Oct-05 9:38 
GeneralRe: Odd BitBlt timings Pin
RandomMonkey29-Oct-05 9:49
RandomMonkey29-Oct-05 9:49 
GeneralRe: Odd BitBlt timings Pin
RandomMonkey29-Oct-05 10:26
RandomMonkey29-Oct-05 10:26 
GeneralRe: Odd BitBlt timings Pin
ddupre29-Oct-05 11:53
ddupre29-Oct-05 11:53 
GeneralRe: Odd BitBlt timings Pin
RandomMonkey29-Oct-05 15:00
RandomMonkey29-Oct-05 15:00 
GeneralRe: Odd BitBlt timings Pin
ddupre29-Oct-05 17:45
ddupre29-Oct-05 17:45 
GeneralA Major clue Pin
RandomMonkey29-Oct-05 19:49
RandomMonkey29-Oct-05 19:49 
It only shows 50 when opened with nothing running, ~92 GDI objects when running the performance I was playing with. This is well under some of the other procs running (Firefox: 131). My application uses about 15.5K memory when running that proc, as well.

Now, that major clue. There are two of them, actually.

1) Out of curiousity, I ran Jooleem while my application was running. All of a sudden Task Manager showed my proc usage creeping up to about 10%, from 0%. Shut Jooleem down and restarted my program and played it. Proc usage was at 45%.

Rebooted. Ran my program five times. Each time Task Manager showed it about 0~2% proc usage. During sixth time, ran Jooleem again. My proc usage immediately went up to 10% again. Shut Jooleem off. Without shutting my program down, I restarted the task it was performing. TM showed my app to be using 45% of the proc time. Shut my program down and restarted it. It was still at 45%.

So finally a breakthrough.

2'nd clue) It definately seems to have something to do with the graphics. If my application is being shown on the screen, and then I cover it up with Firefox or another program, the proc usage goes to 0%. Bring my program to the front, and proc usage spikes to 45% again.

I am not using anything other than plain GDI for my graphics. No DirectX, no OpenGL, no nothing. My app is using DirectMusic, but I don't see how that could be tying into the graphics. I'm not saying that it is impossible, I'm just saying that I don't know how it could be. I don't link to anything other than dxguid.lib.

I guess a third clue is that the problem is somehow able to transmit itself to my relaunched application, no matter how many times I shut it down and restart it. It takes a shutdown or a log-off and log-on to make the problem go away.

Even with these clues, I don't know what to do next. Leave it? Say it is some other program's problem? I would still like to know what is really going on, but I don't want to delve into the guts of Jooleem just to find out, and I am scared that is the only thing that would eventually unearth the problem. Maybe someone else has a better idea?

David

Debugging - The high art and magic of cussing errors into 'features'
GeneralRe: A Major clue Pin
RandomMonkey30-Oct-05 6:10
RandomMonkey30-Oct-05 6:10 
QuestionIP range. Help Needed Pin
Radu Sorin28-Oct-05 20:40
Radu Sorin28-Oct-05 20:40 
AnswerRe: IP range. Help Needed Pin
Ghasrfakhri29-Oct-05 0:06
Ghasrfakhri29-Oct-05 0:06 
Questioncannot convert parameter 1 from 'CComboBox' to 'CComboBox' Pin
kevincwong28-Oct-05 19:31
kevincwong28-Oct-05 19:31 
AnswerRe: cannot convert parameter 1 from 'CComboBox' to 'CComboBox' Pin
RandomMonkey28-Oct-05 19:48
RandomMonkey28-Oct-05 19:48 
GeneralRe: cannot convert parameter 1 from 'CComboBox' to 'CComboBox' Pin
kevincwong28-Oct-05 20:10
kevincwong28-Oct-05 20:10 
QuestionSave/Open Dialog Pin
Tom Sapp28-Oct-05 17:22
Tom Sapp28-Oct-05 17:22 
AnswerRe: Save/Open Dialog Pin
RandomMonkey28-Oct-05 18:06
RandomMonkey28-Oct-05 18:06 
AnswerRe: Save/Open Dialog Pin
Gary R. Wheeler29-Oct-05 3:35
Gary R. Wheeler29-Oct-05 3:35 
QuestionWINVER and Graphics projects using glut Pin
adonisv28-Oct-05 15:40
adonisv28-Oct-05 15:40 
Questionneed help in speech recognitiion Pin
gr8coaster32928-Oct-05 13:22
gr8coaster32928-Oct-05 13:22 
AnswerRe: need help in speech recognitiion Pin
Ravi Bhavnani28-Oct-05 16:54
professionalRavi Bhavnani28-Oct-05 16:54 
QuestionRe: need help in speech recognitiion Pin
gr8coaster32929-Oct-05 7:01
gr8coaster32929-Oct-05 7:01 
AnswerRe: need help in speech recognitiion Pin
Ravi Bhavnani29-Oct-05 7:07
professionalRavi Bhavnani29-Oct-05 7:07 
Questionparallel port Pin
jama68728-Oct-05 12:57
jama68728-Oct-05 12:57 
AnswerRe: parallel port Pin
Indivara28-Oct-05 17:19
professionalIndivara28-Oct-05 17:19 
QuestionA couple of Reference Function questions Pin
j4express28-Oct-05 12:45
j4express28-Oct-05 12:45 

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.