Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29264
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Memory allocation overflow |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <4eb1912d-87cd-4e4b-a4b0-5154de752831@googlegroups.com> <XnsA591CA3AF7869eejj99@194.109.6.166> <bd35a056-a331-44e0-8f8e-c18c77c23088@googlegroups.com> |
| Date | 2016-01-16 20:29 +0100 |
| Message-ID | <XnsA591D079B41EFeejj99@194.109.6.166> (permalink) |
jonas.thornvall@gmail.com wrote on 16 Jan 2016 in comp.lang.javascript:
> Den lördag 16 januari 2016 kl. 19:52:54 UTC+1 skrev Evertjan.:
>> jonas.thornvall@gmail.com wrote on 16 Jan 2016 in comp.lang.javascript:
>>
>> > What could possibly overflow in this?
>> >
>> > To me it seems just weird
>> >
>> > j=1;
>> > while(j<=base){
>>
>> Usually the overflow is that j>base will never be reached.
>>
>> As I have suggested before, debugging is better than guessing,
>> so add a console.log() writing each cycle.
>>
>> And in IMHO you should not ask without those test-results.
> There is two options either you tell me that the inner loop never exceed
You are the asking party,
my options are only limited by my imagination,
so do not tell me how I should answer,
that would be somewhat impolite.
How do you know that there are only two,
without debugging what is wrong in your syntax or in your mind?
> 100 which seem impossible because here base is constant 10 never change,
> and i takes on the value of j a counter that start with 1 and as j adds
> up so does i.
You are wrong here, I am not going to tell you because it your job to debug
your code, and not to bother us with undebugged code.
> And when i> base which is 10 the loop breaks.
First you wll have to debug and see WHERE things go the other way than you
think.
> How can you spend so fucking much time writing text that doesn't give a
> clue to what is wrong?
Me? You are not paying the slightest attention to serious help.
> Why doesn't j reach 10
Unimportant, first debug if it is so.
> or
> Why doesn't i reach 100 that is what i would like to know.
Unimportant, first debug if.
> I can't see why the adds do not reach the constants values when i add to
> them, can you see it?
Unimportant, first debug
and then you will find your syntactical mistake or your logical mistake.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Memory allocation overflow jonas.thornvall@gmail.com - 2016-01-16 09:58 -0800
Re: Memory allocation overflow "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-16 19:52 +0100
Re: Memory allocation overflow jonas.thornvall@gmail.com - 2016-01-16 11:03 -0800
Re: Memory allocation overflow jonas.thornvall@gmail.com - 2016-01-16 11:05 -0800
Re: Memory allocation overflow Luuk <luuk@invalid.lan> - 2016-01-16 20:13 +0100
Re: Memory allocation overflow jonas.thornvall@gmail.com - 2016-01-16 11:25 -0800
Re: Memory allocation overflow Luuk <luuk@invalid.lan> - 2016-01-16 21:25 +0100
Re: Memory allocation overflow Luuk <luuk@invalid.lan> - 2016-01-16 21:31 +0100
Re: Memory allocation overflow jonas.thornvall@gmail.com - 2016-01-16 14:06 -0800
Re: Memory allocation overflow John Harris <niam@jghnorth.org.uk.invalid> - 2016-01-17 11:08 +0000
Re: Memory allocation overflow jonas.thornvall@gmail.com - 2016-01-17 04:10 -0800
Re: Memory allocation overflow Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-01-17 20:15 +0000
Re: Memory allocation overflow jonas.thornvall@gmail.com - 2016-01-17 13:25 -0800
Re: Memory allocation overflow Carlos Pedro <carlospedr@gmail.com> - 2016-01-18 08:21 -0800
Re: Memory allocation overflow "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-16 20:29 +0100
Re: Memory allocation overflow Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-01-16 23:43 +0000
Re: Memory allocation overflow jonas.thornvall@gmail.com - 2016-01-16 19:30 -0800
Re: Memory allocation overflow jonas.thornvall@gmail.com - 2016-01-16 19:56 -0800
Re: Memory allocation overflow jonas.thornvall@gmail.com - 2016-01-16 20:01 -0800
Re: Memory allocation overflow Silvio <silvio@internet.com> - 2016-01-18 16:09 +0100
csiph-web