How the memory of airconditioning in InDesign.

Hi all

We develop an extension for Adobe InDesign and after several months of development, that we're still stuck with various things we do not find a solution for them. Extension exports a lot of images, texts, create new pages, basically, we export all content in a document as long as 300 to 400 pages in various goods, JPG and PNG formats. So really memory consumes

When executing the extension, we have developed, the main thread is bloqued and the InDesign does not and if the export we do is really great it blocks just about InDesign. We would like to release memory after each page is complete, but we cannot do it. Once the full export is complete, then the memory is freed, but not when you export that happens

We export the memory increases more and more without letting go of anything, we tried various options, but looks like we never come to free the memory that everything is blocked

How can free us the memory while the extension is running? Or y at - it a way to stop the extension of each iteration, then it frees the memory?

We use the extensions Manager and flash builder.

Thank you!

Caesar.

Welcome,

It really depends on your code Cero, but for example if you have a car or while loop that goes for hundreds of cycles, you can eliminate down to smaller portions and loop of blocking a thread during execution, that means each while/for loop is an application of single process no matter how large or intense it would be It must be done before this CPU core/thread accepts another request, but if you break to two cycles, thread will be released by the first query and taken over by the other (overlap cpu can decide what priorities and performs tasks of short, high priority before arriving to work on the second loop). again, this depends on your needs and your code, but for example to break a loop 100 time in 10 x 10, you can do:

var arrayLength = 100;

/*Before:*/
for (var i = arrayLength - 1; i >= 0; i--) {
    exportThePage(i);
};

/*After:*/
var breakPoint = 10;
var neededCycles = arrayLength / breakPoint; //obviously you need to improve these aspects since it breaks if you have 103 cycles for example!
var currentCycle = 0;
function loopBreaker(){
    if(breakPoint < arrayLength && currentCycle <= neededCycles){
        currentCycle++;
        mainLoop(currentCycle);
    } else if (breakPoint >= arrayLength) {
        alert('no need for me! just call a simple loop!')
    } else {
        alert('Im done here!');
    }

}
function mainLoop(currentCycle){
    for (var i = breakPoint - 1; i >= 0; i--) {
        exportThePage((breakPoint * (currentCycle - 1)) + i);
        alert('just finished workin on page: '+(breakPoint * (currentCycle - 1)) + i);
    }
    loopBreaker();
}

Now, I didn't have the chance to test this in all (I may be able to test it tomorrow at the University) (Edit: not surprisingly, there was a small error I fixed), in addition it makes it harder to do such a thing in extendScript in absence of javascript of calendar events, but I guess it will work if the process of exporting your page is heavy enough to prevent this code through a chimney overflow error (in the case otherwise you need to increase the variable breakpoint, or use a short sleep period or you don't just it really), I also hope not to have an error of syntax here so please re - check yourself.

On the use of GC it may (or may not) solve your problem of memory, but plus help certainly not all on your cpu load, it is preferable to reuse objects and not to destroy them every time.

PS: Oh I forgot to say, but there's no need really to mention you want to modify and adapt on cause of code it will break easily if you have 103 pages for example, instead of 100, I just wanted to show one of the approaches I think

hope this helps and gl.

m,

Tags: InDesign

Similar Questions

  • How and when Berkeley releases the memory of the key and data?

    Hello
    even if I just posted a question a few days ago, I couldn't find an answer to these questions in the docs of Berkeley or the Internet:

    Berkleley Db releases data that are transmitted to him with the key or the objekt data?
    When is it free?
    How data in the secondary databases that points directly to the primary of the base and do I need to copy managed?

    It would be nice to have some answers, because it's hard to write something with little memory use when you do not know how the memory is handled.

    Yes, of course, you can delete "buffer", it's your memory in your process space. It can be deleted or changed in any way you want in your application. The contents of the 'buffer' in your code snippet went to db 'put', it is up to you to do what you want to do with "buffer" and the memory associated with it.

    Debsubhra Roy

  • Accumulation of memory in InDesign: how to free the memory?

    Hey guys,.

    I'm fairly new to InDesign extendscript and quickly ran into a problem that I can't solve everyday.

    I'm working on a flash (version with adobe extension builder) Panel which, among other things, automatically the thumbnails page on exports, adds some data and so on... during treatment of pages (true magazine with a lot of content), the memory raises up to 1.5 GB and InDesign crashes. When I try less grave InDesign pages not down, even after the completed export script, InDesign uses still some 1 GB of memory.

    To get initially page thumbnails, I use the built-in function Document.fileExport (Menu-> export (JPEG)).

    I absolutely do not understand the tricky part is, if I call with window options (Document.fileExport: showingOptions = true), the memory instantly drops about 10 MB. So I 'bypassed' this problem by exporting pages in bursts (10 pages at the time) and indicating the options for the export of 10 pages. This way memory relies for 10 pages, then descends and accumulates again. But never up to 1.5 GB of crash InDesign.

    As you can guess, this workaround is real pain in the anus, because export is automated is no longer and need operator / monkey push-button every 5 minutes or up to prevent InDesign crashing. (reminds me of the TV series LOST )

    I tried to call $. gc(), but absolutely nothing happened. Even when I created the button dedicated with single purpose: call $. gc() and kept pushing for 10 minutes after export was over - nothing happened, the memory was still upstairs.

    I just reopen the old project (abandoned due to the accumulation of memory) and was really surprised that he was suddenly works fine. I did a little googling and discovered that there was an update of InDesign in August 2010 that included graphics export patches.

    So, if anyone google this thread, it is more relevant if you update IDS 2010/10.

    Way to go Adobe!

    Thank you, Peter

  • How much memory do I need on my iMac when I launch illustrator, Photoshop and InDesign

    How much memory do I need on my iMac when I launch illustrator, Photoshop and InDesign

    The following links will take you to pages that list the system requirements for the programs you specified.  Choose whatever the version, you are concerned with and add up the numbers on the memory requirements for the worst case scenario - the recommended vs. required as well.

    Photoshop - http://helpx.adobe.com/photoshop/system-requirements.html

    InDesign - http://helpx.adobe.com/indesign/system-requirements.html

    Illustrator - http://helpx.adobe.com/illustrator/system-requirements.html

  • DesignJet T2530: How to save the file to the memory of the printer to the flash player?

    We had printed a 19 page file with our DesignJet printer and then deleted the file from our desktop. Customer had need another copy so we printed from the file saved in the memory of the DesignJet. Question: How can I put that it was saved on a USB? Thank you very much!

    Hello

    But remember this file is a temporary file until that backup file more, all are County for sequential printing job. It is not possible to copy for the thumb of the printer.

    Thank you
    Rashed

    I'm not an employee of HP, but I am an engineer @ HP Partner and I share my knowledge of my own time.

    If your problem is resolved please click the button "accept as a Solution.

    If my answer was helpful, please click the 'Thumbs Up' to say 'thank you '.

  • Tecra R850 - How can I reduce the memory shared graphics card?

    Hi all

    I need help with a few questions:
    My system says I have 2, 66 GB RAM available for applications, services, etc. The rest (between 1.1 and 1.3 GB of RAM) is shared and reserved for the graphics card. I looked for a way to reduce it through the BIOS (how it works normally), tried an update for the bios jumps that he would add this feature. But it wasn't the case.

    I don't understand why Toshiba won't allow its customers to modifity this setting!
    I can understand putting such a context by default, but also giving an option for advanced users to change this setting.

    2, 66 GB RAM are not very good and I often need more than that... 500 MB more of RAM for sys would be really nice.
    And 64 bit OSs don't are currently not supported in our society.

    Does anyone know if a way to reduce the memory shared to 500 MB for example?

    My system features:

    Windows 7 Pro SP1 (32-bit)
    Model: TECRA R850
    SERIALNO. : 7B042670H
    PartNo. : PT525E-03E00KGR

    Thank you in advanced for your answers!

    null

    As far as I know shared memory works automatically and laptop user cannot control it.
    There is nothing new and the same principle is on all Toshiba laptops.

    Sorry but there is nothing to do about it.

  • Portege Z930 - how to clear the memory of the fingerprint sensor?

    Hello

    Tell me how to clear the memory of the fingerprint sensor?
    Reinstall the operating system and now I can not add your impressions.

    They have their No....

    > Reinstall the operating system and now I can not add your impressions.
    Stand by. You have reinstalled OS using original recovery image?

  • Photosmart 7520: How to erase the memory of my 7520 HP printer all in one?

    How to erase the memory of my 7520 HP printer all in one?

    I try to delete all personal data before recycling.  I also want to remove the password of wireless network that seems to be in memory?

    From the front panel access home, installation, tools, Reset Factory Defaults.  Also make sure that camera cards are removed from the slots on the front panel.

  • Satellite M70 - how to remove the memory module

    Can someone post instructions on how to remove / add modules of memory for Satellite M70?
    Thank you
    FS

    Hello

    It of not difficult to remove or Exchange the memory modules because you only check Chapter 8 and 9 of your owner's manual. In the user manual, you can find a detailed explanation how to do this with a few photos and what you need to the modules of RAM.

    Check this box!

  • Satellite T130: 5-in-1 Bridge Media Slot - how to use the Memory Stick?

    Hi all

    My T130 has a bridge 5-in-1 Media Slot for SD card / Memory Stick / Memory Stick Pro / MultiMedia Card and xD-Picture Card.

    But how it should work with a Memory Stick? Its smaller SD card and just fall into the slot (no klick and no contact - and no easy way to get it out with your fingers).

    Do need me an adapter for this (mentioned nowhere in the manual)?

    On my old Sony Vaio, I have two slots, SD and Memory Stick - but how should this work with one slot on T130?

    > But how it should work with a Memory Stick? Its smaller SD card and just fall into the slot (no klick and no contact - and no easy way to get it out with your fingers).

    Need an adapter for the Memory Stick!

    Notes; You can use only Memory Stick 128 MB and 256 MB.

    Welcome them

  • Satellite Pro L50 - a: how to replace the memory, HARD drive and battery

    I just uploaded 2 new video from Youtube on the L50 - A. Satellite Pro

    The first is a tear down showing how to replace the memory, hard drive and battery (you can also clean the fan if it detects overheating).

    http://www.YouTube.com/watch?v=IG0lW7t92bI

    BTW why they made it so difficult to get just to the battery in this model?

    WARNING - proceed at your own risk and don't forget static precautions!

    Hope they help and if you have any questions let me know.

    + The message was edited: link has been removed ad channel may not +.

    Thanks for these videos. It may be useful to replace the memory, but I think that the owners of the laptop should not open the case. This may void the warranty.
    Be careful about this.

  • Portege M780 - how to upgrade the memory?

    I have a M780. I wanted to move to 8 GB. But if I open the memory module, I can find a slot for the memory. How can I access the other get 2 x 4 GB?

    As they seem to be similar to the M750, maybe it's the same thing with the M750 and someone can answer this question. Unable to find a service manual for the M750 / M780 either.

    THX

    Marcus

    Hi schuerstedt,

    Really, you ask where the other memory module location?
    The user manual is not interesting for you right?

    Well, if you check the user manual, you can find an exact description how replace the memory sticks with lots of photos.
    Check this box!

    BTW, the other location is placed under the keyboard.

  • Tecra R10 - how to remove the memory module?

    Hello!

    How to remove the memory module?

    Get the following message and for me, it means that one of the modules is broken:

    Out of memory error
    Address = H 00034000
    Read Date = H 28034000
    Write data = H 00034000

    For my opinion, the computer should start up again when I remove the memory broken slice?

    The Australia has soon

    Hello

    You can easily remove the memory modules.
    I think that the Bay is placed at the bottom of the unit.
    Remove the screw that is blocking the Bay, and you will have access to the module.

    Here is a video of how do this on another Satellite L500 laptop. But the procedure is not very different on Tecra R10
    http://forums.computers.Toshiba-Europe.com/forums/Ann.jspa?annID=81

    I hope this helps a little

  • How can I enable the memory remapping in BIOS on the Satellite A100-192

    Hello!
    How can I enable the memory remapping in BIOS (5.90) on my laptop?

    Thank you.

    Hello

    It seems a problem with the Microsoft 32-bit Windows operating system.

    Please check this:
    http://support.toshiba-tro.de/KB0/TSB7601WE0007R01.htm

    You can find this info:

    _Issue: _
    I put in the memory 2x2gb in my book * and the BIOS * and the operating system is worth about 3 GB

    _Solution: _
    This is a limitation of the 32-bit system.
    System resources need of addressing which overlaps physical memory below 4 GB.
    These requirements can reduce available addressable memory space to and reported by the operating system

  • How to extend the memory of card display for Satellite Pro A120?

    I would like to expand the memory used by the graphics card because its at this stage only 8 MB, I want to make this 64 MB. Total memory in the computer laptop AI 512 MB. Normally you can do this in the BIOS but I can't find any option to do this.

    Someone at - it an idea how to proceed?

    What graphics card you have?
    What is a processor ATI or nVidia GPU?

    Graphics memory of my knowledge depends on the size of the main memory.
    The larger main memory, the largest memory GPU.

    However, if your graphics card supports shared memory and then the graphics card driver controls the amount of GPU automatically.
    In other words, if the GPU memory is not required then shared the GPU memory is set to a lower value.

Maybe you are looking for