Moving a process to the background (avoiding Max to freeze up)

Sep 29, 2010 at 9:25am

Moving a process to the background (avoiding Max to freeze up)

Hi all,

I’m parsing huge files (tens of thousands of lines), which is fine but then once I go through the process of extracting what I need and filling up [coll]s, fair enough – Max is freezing up. I understand that it’s a huge process, but I would like it to be moved to the background. Is it possible?

The patch below is annotated with what I’m trying to do and what I have tried. I have also attached an example file that I’m parsing in case you have [tap.xml.sax] to test it.

Thanks so much for any help.

– Pasted Max Patch, click to expand. –
Attachments:
  1. BigTest.gpx.zip
#52516
Sep 30, 2010 at 2:18pm

Do you know java? If you do the most demanding stuff in java (maybe you can avoid using colls that way too), you can have it run in a separate thread so that Max doesn’t lock up.

In the ‘buildingexternalswithjava’ pdf documentation there is a bit about threads that you can use.

#188867
Sep 30, 2010 at 2:30pm

perhaps you can make a seperate standalone only for this process.
for interacting with your main app, you can use udpsend/udpreceive.

#188868
Sep 30, 2010 at 10:29pm

@EMV Fancy meeting you here… hehe. Thanks for the response. Sadly I no zilch Java. I’ll ask a friend to see if he can help.

@janette_h That’s a good idea. I’ll test it out, and see if it’s an okay user experience. Thanks!

#188869
Oct 1, 2010 at 8:46am

@andrew, yeah, I read this post first and remembered that I’d seen that name before, and then I saw your other post on what you were trying to build :)

#188870

You must be logged in to reply to this topic.