Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #29267

Re: Memory allocation overflow

Newsgroups comp.lang.javascript
Date 2016-01-16 14:06 -0800
References (3 earlier) <6eb593a1-95cd-446f-aa0f-d15a2593ad38@googlegroups.com> <569a963f$0$23842$e4fe514c@news.xs4all.nl> <d79593b4-64db-4094-b715-eee08067e812@googlegroups.com> <569aa72a$0$23819$e4fe514c@news.xs4all.nl> <569aa8a2$0$23819$e4fe514c@news.xs4all.nl>
Message-ID <648d8d6b-e296-4b52-96e5-8c66e1cb06be@googlegroups.com> (permalink)
Subject Re: Memory allocation overflow
From jonas.thornvall@gmail.com

Show all headers | View raw


Den lördag 16 januari 2016 kl. 21:31:52 UTC+1 skrev Luuk:
> On 16-01-16 21:25, Luuk wrote:
> > On 16-01-16 20:25, jonas.thornvall@gmail.com wrote:
> >> Den lördag 16 januari 2016 kl. 20:13:09 UTC+1 skrev Luuk:
> >>> On 16-01-16 20:05, jonas.thornvall@gmail.com wrote:
> >>>> Den lördag 16 januari 2016 kl. 20:03:33 UTC+1 skrev
> >>>> jonas.t...@gmail.com:
> >>>>> 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.
> >>>>>>
> >>>>>> --
> >>>>>> Evertjan.
> >>>>>> The Netherlands.
> >>>>>> (Please change the x'es to dots in my emailaddress)
> >>>>> There is two options either you tell me that the inner loop never
> >>>>> exceed 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.
> >>>>>
> >>>>> And when i> base which is 10 the loop breaks.
> >>>>> How can you spend so fucking much time writing text that doesn't
> >>>>> give a clue to what is wrong?
> >>>>>
> >>>>>
> >>>>> Why doesn't j reach 10
> >>>>> or
> >>>>> Why doesn't i reach 100 that is what i would like to know.
> >>>>>
> >>>>> I can't see why the adds do not reach the constants values when i
> >>>>> add to them, can you see it?
> >>>>
> >>>> For each innerloop i adds up with base=10
> >>>> For each outerloop j adds up with 1
> >>>>
> >>>> So why don't they break?
> >>>>
> >>>
> >>> In the example code you gave:
> >>> - base does not get a value
> >>> - outStr also does not get a value
> >>> - what is the definition of 'factor_it(i)' ?
> >>>
> >>>
> >>> so, yes, i am also not giving a clue what is wrong...
> >>> and i also do not have a clue what is wrong...
> >>>
> >>> ;)
> >> In the first message of thread if you bothered so scroll down 5 lines
> >> was the full script...
> >>
> >> I tried to pick out the crucial part and show first...
> >>
> >
> >
> > maybe you should not post part of the code,
> > and then the complete code, which is only a bit longer......
> >
> >
> > and you should read this website:
> > http://www.w3schools.com.js/......
> >
> > it has the clue to your problem.... ;)
> 
> 
> oops, that link should be:
> http://www.w3schools.com/js/......
> 
> sorry for the typo....

Oh my gosh a monkey doing a parrots job, this must be the shittiest NG in the galayx. Jast saw star wars.

Oh no monkey leave the job to the parrots at least they have the mindset to bring up some heat on the issue, that make me debug the code myself.

But it is so fucking weird that people in this NG are in total refusal to reveal any bug they spot. They just want general questions that they can answer with a yes or no. Asking if the sky is blue can lead draw you into all sort of issues, that it depend upon the wavelength and the medium it pass, and you are refered to a document with maxwells equations...

Well that is just life i guess.


Well

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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