Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QScriptEngine memory limit
Qt 6.11 is out! See what's new in the release blog

QScriptEngine memory limit

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hindsight
    wrote on last edited by
    #1

    Hi!
    I was wondering, is there a way to limit the memory allocated by some script.
    A simple script
    @
    a = new Array;
    for (var i = 0 ;; i++) a[i] = "ololo";
    @
    can do a lot of trouble...

    Another question: is there a way to measure the allocated by script memory (I believe it is stored in QScriptEngine object).
    Cause if there is, I can achieve the memory limitation by implementing the positionChange method of QScriptEngineAgent class.
    Thank you

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hindsight
      wrote on last edited by
      #2

      Maybe you can throw some advice at me on where I should change something in the qtscript sources to achieve the memory limitation?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved