Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Program repeats itself, pointer trouble I suspect.

Reply
Thread Tools

Program repeats itself, pointer trouble I suspect.

 
 
Default User
Guest
Posts: n/a
 
      02-16-2007
Neil wrote:

> On Feb 15, 9:28 pm, Barry Schwarz <schwa...@doezl.net> wrote:
> Post a compilable example of the code that exhibits the behavior.
>
> Barry, I would if I knew where the problem is in the program..
> Obviouly the pointers are not causing the problem.


We need a complete, minimal program that demonstrates the problem.
There three conditions there.

1. Complete - A program that can be cut and pasted in our compilers if
we choose, but at the very least we know is not missing something.

2. Minimal - The program reduced down as much as possible. That means
removing parts where you can to simplify it, but still produces the
failing behavior. Often the process will reveal the section with the
bug, but at least you will make the review process easier.

3. Demonstrates the problem - The code you give us should be able to
produce the exact condition you are experiencing. In addition, you need
to tell us what the program was supposed to do, and what it did
instead. If it is failing to compile, transcribe exactly or
(preferably) cut and paste the compiler messages.




Brian
 
Reply With Quote
 
 
 
 
santosh
Guest
Posts: n/a
 
      02-16-2007
Default User wrote:
> Neil wrote:
>
> > On Feb 15, 9:28 pm, Barry Schwarz <schwa...@doezl.net> wrote:
> > Post a compilable example of the code that exhibits the behavior.
> >
> > Barry, I would if I knew where the problem is in the program..
> > Obviouly the pointers are not causing the problem.

>
> We need a complete, minimal program that demonstrates the problem.
> There three conditions there.
>
> 1. Complete - A program that can be cut and pasted in our compilers if
> we choose, but at the very least we know is not missing something.
>
> 2. Minimal - The program reduced down as much as possible. That means
> removing parts where you can to simplify it, but still produces the
> failing behavior. Often the process will reveal the section with the
> bug, but at least you will make the review process easier.
>
> 3. Demonstrates the problem - The code you give us should be able to
> produce the exact condition you are experiencing. In addition, you need
> to tell us what the program was supposed to do, and what it did
> instead. If it is failing to compile, transcribe exactly or
> (preferably) cut and paste the compiler messages.


Might be a good idea to save this reply for quickly responding to
similar situations in the future.

 
Reply With Quote
 
 
 
 
Neil
Guest
Posts: n/a
 
      02-16-2007
On Feb 16, 1:10 am, Richard Heathfield <r...@see.sig.invalid> wrote:

Since you don't know where the problem was, it makes sense to post the
whole program.

> Richard Heathfield
> "Usenet is a strange place"



True...But I fixed the problem late night, knowing what you everyone
told me about pointers, It works just fine now.

Reason, why I didn't post the whole program was I didn't have copy of
it with me at work, I was sure that I could find a solution for it
soon, as I did.

Richard thanks for your help, Have a good weekend!!

-Neil



 
Reply With Quote
 
Neil
Guest
Posts: n/a
 
      02-16-2007
On Feb 16, 11:57 am, "Default User" <defaultuse...@yahoo.com> wrote:
> Neil wrote:
> > On Feb 15, 9:28 pm, Barry Schwarz <schwa...@doezl.net> wrote:
> > Post a compilable example of the code that exhibits the behavior.

>
> > Barry, I would if I knew where the problem is in the program..
> > Obviouly the pointers are not causing the problem.

>
> We need a complete, minimal program that demonstrates the problem.
> There three conditions there.
>
> 1. Complete - A program that can be cut and pasted in our compilers if
> we choose, but at the very least we know is not missing something.
>
> 2. Minimal - The program reduced down as much as possible. That means
> removing parts where you can to simplify it, but still produces the
> failing behavior. Often the process will reveal the section with the
> bug, but at least you will make the review process easier.
>
> 3. Demonstrates the problem - The code you give us should be able to
> produce the exact condition you are experiencing. In addition, you need
> to tell us what the program was supposed to do, and what it did
> instead. If it is failing to compile, transcribe exactly or
> (preferably) cut and paste the compiler messages.
>
> Brian



Brain Yeh right, I make a note of that next time, fortunatly I solved
the problem late last night. OK.




 
Reply With Quote
 
Neil
Guest
Posts: n/a
 
      02-16-2007
On Feb 16, 12:32 pm, "santosh" <santosh....@gmail.com> wrote:
> Default User wrote:
> > Neil wrote:

>
> > > On Feb 15, 9:28 pm, Barry Schwarz <schwa...@doezl.net> wrote:
> > > Post a compilable example of the code that exhibits the behavior.

>
> > > Barry, I would if I knew where the problem is in the program..
> > > Obviouly the pointers are not causing the problem.

>
> > We need a complete, minimal program that demonstrates the problem.
> > There three conditions there.

>
> > 1. Complete - A program that can be cut and pasted in our compilers if
> > we choose, but at the very least we know is not missing something.

>
> > 2. Minimal - The program reduced down as much as possible. That means
> > removing parts where you can to simplify it, but still produces the
> > failing behavior. Often the process will reveal the section with the
> > bug, but at least you will make the review process easier.

>
> > 3. Demonstrates the problem - The code you give us should be able to
> > produce the exact condition you are experiencing. In addition, you need
> > to tell us what the program was supposed to do, and what it did
> > instead. If it is failing to compile, transcribe exactly or
> > (preferably) cut and paste the compiler messages.

>
> Might be a good idea to save this reply for quickly responding to
> similar situations in the future.



OK ........will do,

 
Reply With Quote
 
Neil
Guest
Posts: n/a
 
      02-16-2007
On Feb 16, 11:57 am, "Default User" <defaultuse...@yahoo.com> wrote:
> Neil wrote:
> > On Feb 15, 9:28 pm, Barry Schwarz <schwa...@doezl.net> wrote:
> > Post a compilable example of the code that exhibits the behavior.

>
> > Barry, I would if I knew where the problem is in the program..
> > Obviouly the pointers are not causing the problem.

>
> We need a complete, minimal program that demonstrates the problem.
> There three conditions there.
>
> 1. Complete - A program that can be cut and pasted in our compilers if
> we choose, but at the very least we know is not missing something.
>
> 2. Minimal - The program reduced down as much as possible. That means
> removing parts where you can to simplify it, but still produces the
> failing behavior. Often the process will reveal the section with the
> bug, but at least you will make the review process easier.
>
> 3. Demonstrates the problem - The code you give us should be able to
> produce the exact condition you are experiencing. In addition, you need
> to tell us what the program was supposed to do, and what it did
> instead. If it is failing to compile, transcribe exactly or
> (preferably) cut and paste the compiler messages.
>
> Brian



Damn.......I spelled your name wrong in the last post.
In C, your not allowed to misspell your variable names either,
Brian....Have a good weekend.

Neil

 
Reply With Quote
 
santosh
Guest
Posts: n/a
 
      02-16-2007
Neil wrote:
> On Feb 16, 1:10 am, Richard Heathfield <r...@see.sig.invalid> wrote:


[quote markers added]

> > Since you don't know where the problem was, it makes sense to post the
> > whole program.


<snip>

> True...But I fixed the problem late night, knowing what you everyone
> told me about pointers, It works just fine now.


<snip>

Please use a standard quotation character like '>' for the text you
quote. Google Groups should quote the message by default. Why are you
removing them?

 
Reply With Quote
 
Neil
Guest
Posts: n/a
 
      02-16-2007
On Feb 16, 1:10 am, Richard Heathfield

But you just said you don't know where the problem is.

True Richard, I only suspected the pointers where at fault, However
Barry gave me some information that was vital in my search for the
problem, then I ruled out that the posted section of the program was
not fault. Thanks anyway.

-Neil.










 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP_ACCEPT_LANGUAGE; repeats and repeats value; ie recent update? cate Javascript 1 06-14-2010 03:30 PM
ASP.NET 2.0 - browser refresh repeats operation Amelyan ASP .Net 2 12-19-2005 02:45 AM
Number of times number repeats viuxrluxvbbc@mailinator.com C++ 4 12-07-2005 07:46 PM
Newbee : Can a Repeater repeats ascx control ? Mick ASP .Net 1 11-29-2004 01:41 PM
Refresh repeats last action kj12345 ASP .Net 3 09-29-2004 07:57 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57