i can now reserve more than 999MB of ram using varsetcapacity so it is looking good
Solution, run 64bit
Spoiler
i have set maxmem to 4000 but AHK is only consuming 700mb of ram when it crashes out, perhaps someone could shed light on this?
i have read the documentation https://www.autohotkey.com/docs/commands/_MaxMem.htm
is there any way to permit this?
i have tried splitting it through multiple variables to no avail as mentioned here https://www.autohotkey.com/boards/viewtopic.php?f=76&t=77492
https://autohotkey.com/board/topic/60032-error-out-of-memory-except-im-not/
rseding91 appears to have had a similar issue in the past
the regex help i require would be condensing this mess [SOLVED] :
i have read the documentation https://www.autohotkey.com/docs/commands/_MaxMem.htm
i'm thinking perhaps i need to use VarSetCapacity, i am trying to store upwards of 2-3GB of data in an objectThis setting restricts only the automatic expansion that a variable does on its own. It does not affect VarSetCapacity().
is there any way to permit this?
i have tried splitting it through multiple variables to no avail as mentioned here https://www.autohotkey.com/boards/viewtopic.php?f=76&t=77492
https://autohotkey.com/board/topic/60032-error-out-of-memory-except-im-not/
rseding91 appears to have had a similar issue in the past
the regex help i require would be condensing this mess [SOLVED] :
Code: Select all
RegExReplace(file, "[^a-zA-Z0-9\-\.]", "`n")
Spoiler
it replaces all the characters listed, including but not limited to, the first 43 on the ascii table, all to new line
specifically the outcome i wish to have is to replace all characters that are NOT: {[a-Z] [0-9], hypen: "-", and point "."} to newline
it is important that it becomes a new line
i have a feeling by fixing that mess of code would potentially help in fixing the memory issue above?
my code is nasty either way, it needs to go!
Code: Select all
File := Strreplace(file, "#", "`n")
File := Strreplace(file, "`r", "`n")
File := Strreplace(file, ";", "`n")
File := Strreplace(file, ":", "`n")
File := Strreplace(file, chr(34), "`n")
File := Strreplace(file, A_Space, "`n")
File := Strreplace(file, A_Tab, "`n")
File := Strreplace(file, A_Tab, "`n")
File := Strreplace(file, "@", "`n")
File := Strreplace(file, "/", "`n")
File := Strreplace(file, "\", "`n")
File := Strreplace(file, "_", "`n")
File := Strreplace(file, "*", "`n")
File := Strreplace(file, "&", "`n")
File := Strreplace(file, "$", "`n")
File := Strreplace(file, "{", "`n")
File := Strreplace(file, "}", "`n")
File := Strreplace(file, "(", "`n")
File := Strreplace(file, ")", "`n")
File := Strreplace(file, "[", "`n")
File := Strreplace(file, "]", "`n")
File := Strreplace(file, "<", "`n")
File := Strreplace(file, ">", "`n")
File := Strreplace(file, ",", "`n")
File := Strreplace(file, "?", "`n")
File := Strreplace(file, "~", "`n")
File := Strreplace(file, "'", "`n")
File := Strreplace(file, "=", "`n")
File := Strreplace(file, "!", "`n")
File := Strreplace(file, "£", "`n")
File := Strreplace(file, "$", "`n")
File := Strreplace(file, "%", "`n")
File := Strreplace(file, "^", "`n")
File := Strreplace(file, "&", "`n")
File := Strreplace(file, "_", "`n")
File := Strreplace(file, "+", "`n")
File := Strreplace(file, ":", "`n")
File := Strreplace(file, "|", "`n")
File := Strreplace(file, "¬", "`n")
File := Strreplace(file, "`", "`n")
File := Strreplace(file, "_", "`n")
File := Strreplace(file, "'", "`n")
File := Strreplace(file, "#", "`n")
loop 43
File := Strreplace(file, chr(a_index), "`n")
File := Strreplace(file, "0.0.0.0", "`n")
specifically the outcome i wish to have is to replace all characters that are NOT: {[a-Z] [0-9], hypen: "-", and point "."} to newline
it is important that it becomes a new line
i have a feeling by fixing that mess of code would potentially help in fixing the memory issue above?
my code is nasty either way, it needs to go!