Out of memory

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Sipeneco
Newbie
Posts: 6
Joined: Thu Aug 31, 2023 10:43 pm

Out of memory

Post by Sipeneco » Sat Sep 09, 2023 11:39 am

So this message has been shown to me too many times " thread creation error: not enough memory resources are available to process this command".

I have been using your program for about 2,3 week, and too many times I have had to reboot the program because is bugging too much, mostly in code part. In consequence, I had lost progress so many times.

Do you have any suggestions?

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1384
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Out of memory

Post by Dorian (MJT support) » Sat Sep 09, 2023 12:09 pm

This raises it's head from time to time and is usually due to the GetTextInit functions. We recommend using the OCR functions instead.
Yes, we have a Custom Scripting Service. Message me or go here

Sipeneco
Newbie
Posts: 6
Joined: Thu Aug 31, 2023 10:43 pm

Re: Out of memory

Post by Sipeneco » Sat Sep 09, 2023 2:02 pm

I think that I am not using the function "GetTextInit" at least that I am aware. So... I did ask for that function in another post but I didn't use it yet. But the macro as like 3000 lines I don't if that could be the problem

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1384
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Out of memory

Post by Dorian (MJT support) » Sat Sep 09, 2023 3:06 pm

It would be in there if you've used the Text Capture Wizard. If you haven't used that and have no recollection of using text capture in this script, then the GetTextInit suggestion is on the wrong path. :)

You can always use CTRL-F to search your scripts.

It's very unlikely to be the length of the script. I've written scripts that are 50,000 lines or more.

I suggest you turn on logging (you'll see the logging tab in the editor) so you can see where it fails.

These links may help :
https://www.mjtnet.com/manuals/b/v15/topics/logging.htm

https://help.mjtnet.com/article/22-tigh ... -processor

https://help.mjtnet.com/article/7-using-the-debugger

https://help.mjtnet.com/article/42-usin ... t-creation
Yes, we have a Custom Scripting Service. Message me or go here

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts