Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 27th, 2008, 1:24 PM   #11
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Timers and hooks -

Sure it does. What my loop does is delete all the menu items in the menu... It does this by checking why the recorded number of windows was and then deletes the same position every time. You might think that the function only deletes on thing but it doesn't, for example imagine that a menu had 2 menu items "A" and "B" if you where to use that function, it would delete the first item(in our case A) this means that since A had the index of 0 and B had 1, A is gone and B becomes 0. And that function keeps on deleting everything in the menu that is indexed at 0.

Quite complicated huh ?

Any ideas?

Thanks.
pcbrainbuster is offline   Reply With Quote
Old Jan 27th, 2008, 2:19 PM   #12
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 532
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: Timers and hooks -

You're right -- I'm the deaf one
Ancient Dragon is offline   Reply With Quote
Old Jan 27th, 2008, 2:45 PM   #13
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Timers and hooks -

Don't worry this happens to the best of us

Hmm, this is VERY bad. You basically just debugged that and came up with no problems. Then why do you think it stops my mouse hook?
pcbrainbuster is offline   Reply With Quote
Old Jan 27th, 2008, 4:45 PM   #14
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 532
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: Timers and hooks -

I didn't debug it -- all I did was look at the code. Since you didn't post all the code then only you can debug it.
Ancient Dragon is offline   Reply With Quote
Old Jan 27th, 2008, 5:27 PM   #15
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Timers and hooks -

I was expressing, I meant that you basically just checked it for me But now I'm just heart broken that I have no lead to what went wrong
pcbrainbuster is offline   Reply With Quote
Old Jan 27th, 2008, 6:46 PM   #16
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 532
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: Timers and hooks -

>>But now I'm just heart broken that I have no lead to what went wrong
We all feel that way from time-to-time. When that happens you learn how to use your compiler's debugger and step through the program so that you can see the value of variables and the flow of execution. If you don't know how to use your compiler's debugger, then take the time to learn it. Dev-C++ has its own form where you can search threads and ask questions.
Ancient Dragon is offline   Reply With Quote
Old Jan 30th, 2008, 5:59 PM   #17
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Timers and hooks -

Now that I think about it, would multi-threading help me in anyway?

Thanks.
pcbrainbuster is offline   Reply With Quote
Old Jan 30th, 2008, 10:16 PM   #18
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 532
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: Timers and hooks -

Quote:
Originally Posted by pcbrainbuster View Post
Now that I think about it, would multi-threading help me in anyway?

Thanks.
I doubt it -- but it would make it more difficult because there are several other issues to overcome.
Ancient Dragon is offline   Reply With Quote
Old Jan 30th, 2008, 11:14 PM   #19
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Timers and hooks -

Then would running the hook in another thread help me?

Thanks.
pcbrainbuster is offline   Reply With Quote
Old Jan 31st, 2008, 5:26 AM   #20
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 532
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: Timers and hooks -

Quote:
Originally Posted by pcbrainbuster View Post
Then would running the hook in another thread help me?

Thanks.
No. Fix the problem instead of attempting some kind of hack.
Ancient Dragon is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:03 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC