However, if you use two threads , it will complain.
Error: Out of memory.
Code: Select all
f:=[]
MsgBox f.SetCapacity("cache",388*1024*1024)
Code: Select all
f:=[]
MsgBox f.SetCapacity("cache",388*1024*1024)
Code: Select all
a:=ahkThread("f:=[]`nMsgBox f.SetCapacity('cache',388*1024*1024)")
b:=ahkThread("f:=[]`nMsgBox f.SetCapacity('cache',388*1024*1024)")
f:=[]
MsgBox f.SetCapacity("cache",388*1024*1024)
Code: Select all
a:=ahkThread("f:=[]`nMsgBox f.SetCapacity('cache',388*1024*1024)")
b:=ahkThread("f:=[]`nMsgBox f.SetCapacity('cache',388*1024*1024)")
MsgBox a:=ahkThread("f:=[]`nMsgBox f.SetCapacity('cache',388*1024*1024)")
MsgBox a:=ahkThread("f:=[]`nMsgBox f.SetCapacity('cache',388*1024*1024)")
f:=[]
MsgBox f.SetCapacity("cache",388*1024*1024)
Code: Select all
f:=[]
Loop 5
MsgBox f.SetCapacity("cache" A_Index,388*1024*1024)
It is not the inner limit which you are exceeding (there is none), it is your system's / PC's limit. There is no limit for object's fields in v1 either, but there we have #MaxMem for variables. So to answer the thread title, buy more memory for your PC . You could also free up more memory by closing memory heavy application, if any such are running.How do I adjust the inner limit to 2G?
Users browsing this forum: No registered users and 20 guests