Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
Any other information?
Where is the leak? What code do you run that produces the leak?
Does this bit of code fix the problem?

Original comment by [email protected] on 29 Dec 2011 at 3:42

from tiny-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
[deleted comment]

from tiny-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
When a CScriptException throwed at match function, the memory allocated to 
'contents' can not be freed.

And I found several memory leak on catch statement, because the catched 
exception is not freed yet.

Please see blow statements.

try {
  throw new CScriptException("one");
}
catch (CScriptException* e) {
  throw new CScriptException("other");
}

Hope for your reply.Thanks.

Original comment by [email protected] on 29 Dec 2011 at 4:56

from tiny-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
Hi, Thanks for your information.

This is definitely a problem, and we could hopefully solve it be surrounding 
each call in the interpreter with a try...finally. 

However at the moment I feel this is very low priority - exceptions should be 
just that - an exception, so if a program is running correctly, then there 
should be no memory leaks.

Original comment by [email protected] on 5 Jan 2012 at 3:02

  • Changed state: Accepted
  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

from tiny-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
Yes. So it is. I am working on Symbian platform, and a little memory leak can 
not be tolerated.

Original comment by [email protected] on 6 Jan 2012 at 1:54

from tiny-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.