Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Re: Program han...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 7 Topic 1072 of 1134
Post > Topic >>

Re: Program hangs with no output

by Jens Schweikhardt <usenet@[EMAIL PROTECTED] > Apr 4, 2008 at 10:35 AM

David Given <dg@[EMAIL PROTECTED]
> wrote
	in <clcm-20080401-0002@[EMAIL PROTECTED]
>:
....
#  do
#  {
#    focus.target = 0;
#    for (i = 0; i < 1000; i++)
#    {
#      focus.invocation = 0;
#      updatechant();
#    }
#  }
#  while (focus.target != 0);

Where is focus.target ever set to a value other than 0? Yes, it's
declared volatile. But if you don't show us the rest, then that's
probably a clue why the while never terminates.


Regards,

	Jens
-- 
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)
-- 
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
 -- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line.  Sorry.
 




 7 Posts in Topic:
Program hangs with no output
David Given <dg@[EMAIL  2008-04-01 12:17:08 
Re: Program hangs with no output
Kenneth Brody <kenbrod  2008-04-04 10:34:10 
Re: Program hangs with no output
Jack Klein <jackklein@  2008-04-04 10:35:01 
Re: Program hangs with no output
Barry Schwarz <schwarz  2008-04-04 10:35:08 
Re: Program hangs with no output
Jens Schweikhardt <use  2008-04-04 10:35:15 
[comp.lang.c.moderated] Re: Program hangs with no output
Val <Valery_Creux@[EMA  2008-04-04 10:35:19 
Re: Program hangs with no output
dwolffxx@[EMAIL PROTECTED  2008-04-04 10:35:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 21:16:50 CDT 2008.