V4.2 Errors - Optimize and Save App - ClearCache and Automation Errors

Hello everyone,
I have a client on v4.2 that is getting multiple errors when they do anything in Admin.
When they do a full optimize they're seeing:
'Administration and Security - ClearCache Method '' of object '' failed.'
When they do a save of their application they get:
'Administration and Security - SaveApplicationInfo Automation Error, the object invoked has disconnected from its clients'.
Thoughts anyone?
Thank you,
Grant

Hi Grant,
First, I think you need to focus on the Save application issue, as I am quite sure that, once resolved, you will have more visibility on your Optimization error.
Both errors seem to be related to OLAP. Then, I would first try to stop and restart Analysis Services and then try to process the cube (or cubes, if it impacts multiple applications in your customer's application set) directly in Analysis Services and see if it finishes successfully. If yes, please try to save your application from eAdmin.
Best regards,
Julien

Similar Messages

  • HT1338 My system preference hang after i click desktop and screen saver app.

    When ever i try to change my wall paper or click on my desktop and screen saver app the system preference hang..
    Any one know how to fix that beside format the whole system?
    Thanks in Adv.

    Welcome to the Apple Support Communities
    Try to delete the Desktop settings file. First, open Finder, select Go menu > Go to Folder, and type ~/Library/Preferences. Then, delete "com.apple.desktop.plist" and "com.apple.systempreferences.plist", and restart. Finally, you should be able to go to Desktop and Screen Saver on System Preferences

  • Zend optimizer and PHP startup: unable to load errors

    I am finding some errors in the log for my site about zend
    optimizer and PHP startup: unable to load dynamic library.
    as far as I know, I have never used PHP and i have never done
    anything with this zend optimizer. i need some help!
    there are some references in there to some pretty strange
    websites. my site is a wedding photography site!
    thanks for any help.
    here is the log:
    [Fri Jun 06 13:33:44 2008] [error] [client 82.18.149.126] PHP
    Warning: PHP Startup: Unable to load dynamic library
    '//home/offthema/sourceguardian/ixed.lin' -
    //home/offthema/sourceguardian/ixed.lin: cannot open shared object
    file: Permission denied in Unknown on line 0, referer:
    http://www.justiceandcompassion.com/
    [Fri Jun 06 13:33:44 2008] [error] [client 82.18.149.126] PHP
    Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
    '/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
    try reinstalling the Zend Optimizer in Unknown on line 0, referer:
    http://www.justiceandcompassion.com/
    [Fri Jun 06 13:33:45 2008] [error] [client 75.8.116.97]
    Failed loading /home/vanity1/ioncube/ioncube_loader_lin_5.2.so:
    /home/vanity1/ioncube/ioncube_loader_lin_5.2.so: cannot open shared
    object file: No such file or directory, referer:
    http://vanitytransformations.com/diamondt/index.php?option=com_fireboard&Itemid=57&func=sh owcat&catid=2&page=2
    [Fri Jun 06 13:33:50 2008] [error] [client 80.82.139.143] PHP
    Warning: PHP Startup: Unable to load dynamic library
    '//home/offthema/sourceguardian/ixed.lin' -
    //home/offthema/sourceguardian/ixed.lin: cannot open shared object
    file: Permission denied in Unknown on line 0
    [Fri Jun 06 13:33:50 2008] [error] [client 80.82.139.143] PHP
    Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
    '/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
    try reinstalling the Zend Optimizer in Unknown on line 0
    [Fri Jun 06 13:33:53 2008] [error] [client 62.50.73.8]
    Request exceeded the limit of 10 internal redirects due to probable
    configuration error. Use 'LimitInternalRecursion' to increase the
    limit if necessary. Use 'LogLevel debug' to get a backtrace.
    [Fri Jun 06 13:33:53 2008] [error] [client 62.50.73.8]
    Request exceeded the limit of 10 internal redirects due to probable
    configuration error. Use 'LimitInternalRecursion' to increase the
    limit if necessary. Use 'LogLevel debug' to get a backtrace.
    [Fri Jun 06 13:33:59 2008] [error] [client 200.30.148.234]
    Failed loading /home/estudio5/ioncube/ioncube_loader_lin.so:
    /home/estudio5/ioncube/ioncube_loader_lin.so: cannot open shared
    object file: No such file or directory
    [Fri Jun 06 13:33:59 2008] [error] [client 200.30.148.234]
    Failed loading /home/estudio5/ioncube/ioncube_loader_lin_ts.so:
    /home/estudio5/ioncube/ioncube_loader_lin_ts.so: cannot open shared
    object file: No such file or directory
    [Fri Jun 06 13:34:09 2008] [error] [client 82.18.149.126] PHP
    Warning: PHP Startup: Unable to load dynamic library
    '//home/offthema/sourceguardian/ixed.lin' -
    //home/offthema/sourceguardian/ixed.lin: cannot open shared object
    file: Permission denied in Unknown on line 0, referer:
    http://www.otmatheist.com/
    [Fri Jun 06 13:34:09 2008] [error] [client 82.18.149.126] PHP
    Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
    '/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
    try reinstalling the Zend Optimizer in Unknown on line 0, referer:
    http://www.otmatheist.com/
    [Fri Jun 06 13:34:14 2008] [error] [client 82.18.149.126] PHP
    Warning: PHP Startup: Unable to load dynamic library
    '//home/offthema/sourceguardian/ixed.lin' -
    //home/offthema/sourceguardian/ixed.lin: cannot open shared object
    file: Permission denied in Unknown on line 0, referer:
    http://www.otmatheist.com/2008/06/05/i-dont-want-my-kids-to-be-atheists/
    [Fri Jun 06 13:34:14 2008] [error] [client 82.18.149.126] PHP
    Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
    '/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
    try reinstalling the Zend Optimizer in Unknown on line 0, referer:
    http://www.otmatheist.com/2008/06/05/i-dont-want-my-kids-to-be-atheists/
    [Fri Jun 06 13:34:21 2008] [error] [client 75.8.116.97]
    Failed loading /home/vanity1/ioncube/ioncube_loader_lin_5.2.so:
    /home/vanity1/ioncube/ioncube_loader_lin_5.2.so: cannot open shared
    object file: No such file or directory, referer:
    http://vanitytransformations.com/diamondt/index.php?option=com_events&Itemid=37
    [Fri Jun 06 13:34:21 2008] [error] [client 75.8.116.97]
    Failed loading /home/vanity1/ioncube/ioncube_loader_lin_5.2.so:
    /home/vanity1/ioncube/ioncube_loader_lin_5.2.so: cannot open shared
    object file: No such file or directory, referer:
    http://vanitytransformations.com/diamondt/index.php?option=com_events&Itemid=37
    [Fri Jun 06 13:34:25 2008] [error] [client 38.100.8.10] PHP
    Warning: PHP Startup: Unable to load dynamic library
    '//home/offthema/sourceguardian/ixed.lin' -
    //home/offthema/sourceguardian/ixed.lin: cannot open shared object
    file: Permission denied in Unknown on line 0, referer:
    http://www.google.com/search?sourceid=navclient&ie=UTF-8&rlz=1T4DMUS_enUS204US205&q=gideon +bible+ebay
    [Fri Jun 06 13:34:25 2008] [error] [client 38.100.8.10] PHP
    Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
    '/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
    try reinstalling the Zend Optimizer in Unknown on line 0, referer:
    http://www.google.com/search?sourceid=navclient&ie=UTF-8&rlz=1T4DMUS_enUS204US205&q=gideon +bible+ebay
    [Fri Jun 06 13:34:26 2008] [error] [client 70.241.173.162]
    PHP Warning: PHP Startup: Unable to load dynamic library
    '//home/offthema/sourceguardian/ixed.lin' -
    //home/offthema/sourceguardian/ixed.lin: cannot open shared object
    file: Permission denied in Unknown on line 0
    [Fri Jun 06 13:34:26 2008] [error] [client 70.241.173.162]
    PHP Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected
    at
    '/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
    try reinstalling the Zend Optimizer in Unknown on line 0
    [Fri Jun 06 13:34:31 2008] [error] [client 70.241.173.162]
    PHP Warning: PHP Startup: Unable to load dynamic library
    '//home/offthema/sourceguardian/ixed.lin' -
    //home/offthema/sourceguardian/ixed.lin: cannot open shared object
    file: Permission denied in Unknown on line 0, referer:
    http://doableevangelism.com/2008/04/16/dali-desi-and-doug-in-seattle/
    [Fri Jun 06 13:34:31 2008] [error] [client 70.241.173.162]
    PHP Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected
    at
    '/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
    try reinstalling the Zend Optimizer in Unknown on line 0, referer:
    http://doableevangelism.com/2008/04/16/dali-desi-and-doug-in-seattle/
    [Fri Jun 06 13:34:32 2008] [error] [client 65.214.44.28] PHP
    Warning: PHP Startup: Unable to load dynamic library
    '//home/offthema/sourceguardian/ixed.lin' -
    //home/offthema/sourceguardian/ixed.lin: cannot open shared object
    file: Permission denied in Unknown on line 0
    [Fri Jun 06 13:34:32 2008] [error] [client 65.214.44.28] PHP
    Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at
    '/usr/local/Zend/lib/Optimizer-3.2.2/php-5.2.x/ZendOptimizer.so') -
    try reinstalling the Zend Optimizer in Unknown on line 0

    ..... What???

  • How can I prevent Adobe Acrobat from applying optimizations and compressionsserve on save/save as...

    I am generating mailpiece documents as PDF v1.4 from a document composition tool.  I am using Enfocus Pitstop v10 (v10.1.7.27 to be exact) to remove some unneeded water marks from the produced document.
    My issue is that I need to PRESERVE the original PDF structure as emitted from my composiiton tool and I'm finding that regardless how I proceed, Adobe Acrobat want to resave the PDF as v1.6 and apply a series of optimizations and compressions which alters the original PDF structure.  The reason I need to preserve the strucure of thePDF is to confirm 508 compliance for the emitted PDF documents.
    Note: I've tried various settings in Acrobat Distiller and the Adobe PD printer (thinking they are invoked somewhere inthe backgroud of Acrobat when it goes to save/save as...) but haven't experienced any progress...
    Am I chasing a rabbit here (meaning what I want is NOT possible) or am I missing something in my configuration attempts??
    Thanks!

    If you need the final PDF to have the requisite well-formed structure tree (that is, compliant with ISO 14289-1, PDF/UA-1) and thus "accessible" then you need to do the adjustments to your PDF's content streams before establishing that well-formed structure tree.
    Note that PDF  versions 1.4 or above can have that well-formed structure tree - put another way PDF version 1.4 or PDF-1 (PDF is the ISO Standard ISO 32000-1) can have the well-formed structure tree. I can 'build' such a PDF that starts as PDF version 1.4 via Acrobat 5, do some additional post-processing with Acrobat XI Pro which, via a Save As puts the PDF into a new "version" and *not* adversely affect content streams / structure tree.  Your post-processing is what is changing the "guts" not the save to a different version.
    Just becaues - an obtw:
    For those who desire to / need to provide accessible PDF success is predicated in having and understanding the essential reference material.
    ISO 32000-1 (14.8 in particular).
    Document Management – Portable Document Format – Part 1: PDF 1.7, First Edition
    Adobe (Jul 2008)
    This document is an ISO approved copy of the ISO 32000-1 Standards document. By agreement with ISO, Adobe Systems Incorporated is allowed to offer this version of the ISO standard as a free PDF file on their own Web site.
    It is not an official ISO document but the technical content is identical; the page and section numbers are also preserved.
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_200 8.pdf
    ISO 14289-1 (PDF/UA-1)
    This you will have to purchase ($104) from the ANSI Web Store.
    http://webstore.ansi.org/FindStandards.aspx?SearchString=iso+14289-1&SearchOption=0&PageNu m=0&SearchTermsArray=null%7ciso+14289-1%7cnull
    The Matterhorn Protocol.
    http://www.pdfa.org/2013/08/the-matterhorn-protocol-1-0/
    The resources for Accessible PDF at the AIIM site.
    http://www.aiim.org/Research-and-Publications/Standards/Committees/PDFUA
    PDF/UA-1 Technical Implementation Guide: Understanding ISO 14289-1 (PDF/UA-1)
    PDF/UA-1 Technical Implementation Guide: Understanding ISO 32000-1 (PDF 1.7) (under development)
    Achieving WCAG 2.0 with PDF/UA
    (WCAG 2.0 for PDF IS PDF/UA-1)
    Be well...

  • Inline functions in C, gcc optimization and floating point arithmetic issues

    For several days I really have become a fan of Alchemy. But after intensive testing I have found several issues which I'd like to solve but I can't without any help.
    So...I'm porting an old game console emulator written by me in ANSI C. The code is working on both gcc and VisualStudio without any modification or crosscompile macros. The only platform code is the audio and video output which is out of scope, because I have ported audio and video witin AS3.
    Here are the issues:
    1. Inline functions - Having only a single inline function makes the code working incorrectly (although not crashing) even if any optimization is enabled or not (-O0 or O3). My current workarround is converting the inline functions to macros which achieves the same effect. Any ideas why inline functions break the code?
    2. Compiler optimizations - well, my project consists of many C files one of which is called flash.c and it contains the main and exported functions. I build the project as follows:
    gcc -c flash.c -O0 -o flash.o     //Please note the -O0 option!!!
    gcc -c file1.c -O3 -o file1.o
    gcc -c file2.c -O3 -o file2.o
    ... and so on
    gcc *.o -swc -O0 -o emu.swc   //Please note the -O0 option again!!!
    mxmlc.exe -library-path+=emu.swc --target-player=10.0.0 Emu.as
    or file in $( ls *.o ) //Removes the obj files
        do
            rm $file
        done
    If I define any option different from -O0 in gcc -c flash.c -O0 -o flash.o the program stops working correctly exactly as in the inline funtions code (but still does not crash or prints any errors in debug). flash has 4 static functions to be exported to AS3 and the main function. Do you know why?
    If I define any option different from -O0 in gcc *.o -swc -O0 -o emu.swc  the program stops working correctly exactly as above, but if I specify -O1, -O2 or O3 the SWC file gets smaller up to 2x for O3. Why? Is there a method to optimize all the obj files except flash.o because I suspect a similar issue as when compilling it?
    3. Flating point issues - this is the worst one. My code is mainly based on integer arithmetic but on 1-2 places it requires flating point arithmetic. One of them is the conversion of 16-bit 44.1 Khz sound buffer to a float buffer with same sample rate but with samples in the range from -1.0 to 1.0.
    My code:
    void audio_prepare_as()
        uint32 i;
        for(i=0;i<audioSamples;i+=2)
            audiobuffer[i] = (float)snd.buffer[i]/32768;
            audiobuffer[i+1] = (float)snd.buffer[i+1]/32768;
    My audio playback is working perfectly. But not if using the above conversion and I have inspected the float numbers - all incorrect and invalid. I tried other code with simple floats - same story. As if alchemy refuses to work with floats. What is wrong? I have another lace whre I must resize the framebuffer and there I have a float involved - same crap. Please help me?
    Found the floating point problem: audiobuffer is written to a ByteArray and then used in AS. But C floats are obviously not the same as those in AS3. Now the floating point is resolved.
    The optimization issues remain! I really need to speed up my code.
    Thank you in advice!

    Dear Bernd,
    I am still unable to run the optimizations and turn on the inline functions. None of the inline functions contain any stdli function just pure asignments, reads, simple arithmetic and bitwise operations.
    In fact, the file containing the main function and those functions for export in AS3 did have memset and memcpy. I tried your suggestion and put the code above the functions calling memset and memcpy. It did not work soe I put the code in a header which is included topmost in each C file. The only system header I use is malloc.h and it is included topmost. In other C file I use pow, sin and log10 from math.h but I removed it and made the same thing:
    //shared.h
    #ifndef _SHARED_H_
    #define _SHARED_H_
    #include <malloc.h>
    static void * custom_memmove( void * destination, const void * source, unsigned int num ) {
      void *result; 
      __asm__("%0 memmove(%1, %2, %3)\n" : "=r"(result) : "r"(destination), "r"(source), "r"(num)); 
      return result; 
    static void * custom_memcpy ( void * destination, const void * source, unsigned int num ) { 
      void *result; 
      __asm__("%0 memcpy(%1, %2, %3)\n" : "=r"(result) : "r"(destination), "r"(source), "r"(num)); 
      return result; 
    static void * custom_memset ( void * ptr, int value, unsigned int num ) { 
      void *result; 
      __asm__("%0 memset(%1, %2, %3)\n" : "=r"(result) : "r"(ptr), "r"(value), "r"(num)); 
      return result; 
    static float custom_pow(float x, int y) {
        float result;
      __asm__("%0 pow(%1, %2)\n" : "=r"(result) : "r"(x), "r"(y));
      return result;
    static double custom_sin(double x) {
        double result;
      __asm__("%0 sin(%1)\n" : "=r"(result) : "r"(x));
      return result;
    static double custom_log10(double x) {
        double result;
      __asm__("%0 log10(%1)\n" : "=r"(result) : "r"(x));
      return result;
    #define memmove custom_memmove
    #define memcpy custom_memcpy
    #define memset custom_memset
    #define pow custom_pow
    #define sin custom_sin
    #define log10 custom_log10 
    #include "types.h"
    #include "macros.h"
    #include "m68k.h"
    #include "z80.h"
    #include "genesis.h"
    #include "vdp.h"
    #include "render.h"
    #include "mem68k.h"
    #include "memz80.h"
    #include "membnk.h"
    #include "memvdp.h"
    #include "system.h"
    #include "loadrom.h"
    #include "input.h"
    #include "io.h"
    #include "sound.h"
    #include "fm.h"
    #include "sn76496.h" 
    #endif /* _SHARED_H_ */ 
    It still behave the same way as if nothing was changed (works incorrectly - displays jerk which does not move, whereby the image is supposed to move)
    As I am porting an emulator (Sega Mega Drive) I use manu arrays of function pointers for implementing the opcodes of the CPU's. Could this be an issue?
    I did a workaround for the floating point problem but processing is very slow so I hear only bzzt bzzt but this is for now out of scope. The emulator compiled with gcc runs at 300 fps on a 1.3 GHz machine, whereby my non optimized AVM2 code compiled by alchemy produces 14 fps. The pure rendering is super fast and the problem lies in the computational power of AVM. The frame buffer and the enulation are generated in the C code and only the pixels are copied to AS3, where they are plotted in a BitmapData. On 2.0 GHz Dual core I achieved only 21 fps. Goal is 60 fps to have smooth audio and video. But this is offtopic. After all everything works (slow) without optimization, and I would somehow turn it on. Suggestions?
    Here is the file with the main function:
    #include "shared.h"
    #include "AS3.h"
    #define FRAMEBUFFER_LENGTH    (320*240*4)
    static uint8* framebuffer;
    static uint32  audioSamples;
    AS3_Val sega_rom(void* self, AS3_Val args)
        int size, offset, i;
        uint8 hardware;
        uint8 country;
        uint8 header[0x200];
        uint8 *ptr;
        AS3_Val length;
        AS3_Val ba;
        AS3_ArrayValue(args, "AS3ValType", &ba);
        country = 0;
        offset = 0;
        length = AS3_GetS(ba, "length");
        size = AS3_IntValue(length);
        ptr = (uint8*)malloc(size);
        AS3_SetS(ba, "position", AS3_Int(0));
        AS3_ByteArray_readBytes(ptr, ba, size);
        //FILE* f = fopen("boris_dump.bin", "wb");
        //fwrite(ptr, size, 1, f);
        //fclose(f);
        if((size / 512) & 1)
            size -= 512;
            offset += 512;
            memcpy(header, ptr, 512);
            for(i = 0; i < (size / 0x4000); i += 1)
                deinterleave_block(ptr + offset + (i * 0x4000));
        memset(cart_rom, 0, 0x400000);
        if(size > 0x400000) size = 0x400000;
        memcpy(cart_rom, ptr + offset, size);
        /* Free allocated file data */
        free(ptr);
        hardware = 0;
        for (i = 0x1f0; i < 0x1ff; i++)
            switch (cart_rom[i]) {
         case 'U':
             hardware |= 4;
             break;
         case 'J':
             hardware |= 1;
             break;
         case 'E':
             hardware |= 8;
             break;
        if (cart_rom[0x1f0] >= '1' && cart_rom[0x1f0] <= '9') {
            hardware = cart_rom[0x1f0] - '0';
        } else if (cart_rom[0x1f0] >= 'A' && cart_rom[0x1f0] <= 'F') {
            hardware = cart_rom[0x1f0] - 'A' + 10;
        if (country) hardware=country; //simple autodetect override
        //From PicoDrive
        if (hardware&8)        
            hw=0xc0; vdp_pal=1;
        } // Europe
        else if (hardware&4)    
            hw=0x80; vdp_pal=0;
        } // USA
        else if (hardware&2)    
            hw=0x40; vdp_pal=1;
        } // Japan PAL
        else if (hardware&1)      
            hw=0x00; vdp_pal=0;
        } // Japan NTSC
        else
            hw=0x80; // USA
        if (vdp_pal) {
            vdp_rate = 50;
            lines_per_frame = 312;
        } else {
            vdp_rate = 60;
            lines_per_frame = 262;
        /*SRAM*/   
        if(cart_rom[0x1b1] == 'A' && cart_rom[0x1b0] == 'R')
            save_start = cart_rom[0x1b4] << 24 | cart_rom[0x1b5] << 16 |
                cart_rom[0x1b6] << 8  | cart_rom[0x1b7] << 0;
            save_len = cart_rom[0x1b8] << 24 | cart_rom[0x1b9] << 16 |
                cart_rom[0x1ba] << 8  | cart_rom[0x1bb] << 0;
            // Make sure start is even, end is odd, for alignment
            // A ROM that I came across had the start and end bytes of
            // the save ram the same and wouldn't work.  Fix this as seen
            // fit, I know it could probably use some work. [PKH]
            if(save_start != save_len)
                if(save_start & 1) --save_start;
                if(!(save_len & 1)) ++save_len;
                save_len -= (save_start - 1);
                saveram = (unsigned char*)malloc(save_len);
                // If save RAM does not overlap main ROM, set it active by default since
                // a few games can't manage to properly switch it on/off.
                if(save_start >= (unsigned)size)
                    save_active = 1;
            else
                save_start = save_len = 0;
                saveram = NULL;
        else
            save_start = save_len = 0;
            saveram = NULL;
        return AS3_Int(0);
    AS3_Val sega_init(void* self, AS3_Val args)
        system_init();
        audioSamples = (44100 / vdp_rate)*2;
        framebuffer = (uint8*)malloc(FRAMEBUFFER_LENGTH);
        return AS3_Int(vdp_rate);
    AS3_Val sega_reset(void* self, AS3_Val args)
        system_reset();
        return AS3_Int(0);
    AS3_Val sega_frame(void* self, AS3_Val args)
        uint32 width;
        uint32 height;
        uint32 x, y;
        uint32 di, si, r;
        uint16 p;
        AS3_Val fb_ba;
        AS3_ArrayValue(args, "AS3ValType", &fb_ba);
        system_frame(0);
        AS3_SetS(fb_ba, "position", AS3_Int(0));
        width = (reg[12] & 1) ? 320 : 256;
        height = (reg[1] & 8) ? 240 : 224;
        for(y=0;y<240;y++)
            for(x=0;x<320;x++)
                di = 1280*y + x<<2;
                si = (y << 10) + ((x + bitmap.viewport.x) << 1);
                p = *((uint16*)(bitmap.data + si));
                framebuffer[di + 3] = (uint8)((p & 0x1f) << 3);
                framebuffer[di + 2] = (uint8)(((p >> 5) & 0x1f) << 3);
                framebuffer[di + 1] = (uint8)(((p >> 10) & 0x1f) << 3);
        AS3_ByteArray_writeBytes(fb_ba, framebuffer, FRAMEBUFFER_LENGTH);
        AS3_SetS(fb_ba, "position", AS3_Int(0));
        r = (width << 16) | height;
        return AS3_Int(r);
    AS3_Val sega_audio(void* self, AS3_Val args)
        AS3_Val ab_ba;
        AS3_ArrayValue(args, "AS3ValType", &ab_ba);
        AS3_SetS(ab_ba, "position", AS3_Int(0));
        AS3_ByteArray_writeBytes(ab_ba, snd.buffer, audioSamples*sizeof(int16));
        AS3_SetS(ab_ba, "position", AS3_Int(0));
        return AS3_Int(0);
    int main()
        AS3_Val romMethod = AS3_Function(NULL, sega_rom);
        AS3_Val initMethod = AS3_Function(NULL, sega_init);
        AS3_Val resetMethod = AS3_Function(NULL, sega_reset);
        AS3_Val frameMethod = AS3_Function(NULL, sega_frame);
        AS3_Val audioMethod = AS3_Function(NULL, sega_audio);
        // construct an object that holds references to the functions
        AS3_Val result = AS3_Object("sega_rom: AS3ValType, sega_init: AS3ValType, sega_reset: AS3ValType, sega_frame: AS3ValType, sega_audio: AS3ValType",
            romMethod, initMethod, resetMethod, frameMethod, audioMethod);
        // Release
        AS3_Release(romMethod);
        AS3_Release(initMethod);
        AS3_Release(resetMethod);
        AS3_Release(frameMethod);
        AS3_Release(audioMethod);
        // notify that we initialized -- THIS DOES NOT RETURN!
        AS3_LibInit(result);
        // should never get here!
        return 0;

  • In-Place Element Structures, References and Pointers, Compiler Optimization, and General Stupidity

    [The title of this forum is "Labview Ideas". Although this is NOT a direct suggestion for a change or addition to Labview, it seems appropriate to me to post it in this forum.]
    In-Place Element Structures, References and Pointers, Compiler Optimization, and General Stupidity
    I'd like to see NI actually start a round-table discussion about VI references, Data Value references, local variables, compiler optimizations, etc. I'm a C programmer; I'm used to pointers. They are simple, functional, and well defined. If you know the data type of an object and have a pointer to it, you have the object. I am used to compilers that optimize without the user having to go to weird lengths to arrange it. 
    The 'reference' you get when you right click and "Create Reference" on a control or indicator seems to be merely a shorthand read/write version of the Value property that can't be wired into a flow-of-control (like the error wire) and so causes synchronization issues and race conditions. I try not to use local variables.
    I use references a lot like C pointers; I pass items to SubVIs using references. But the use of references (as compared to C pointers) is really limited, and the implementation is insconsistent, not factorial in capabilites, and buggy. For instance, why can you pass an array by reference and NOT be able to determine the size of the array EXCEPT by dereferencing it and using the "Size Array" VI? I can even get references for all array elements; but I don't know how many there are...! Since arrays are represented internally in Labview as handles, and consist of basically a C-style pointer to the data, and array sizing information, why is the array handle opaque? Why doesn't the reference include operators to look at the referenced handle without instantiating a copy of the array? Why isn't there a "Size Array From Reference" VI in the library that doesn't instantiate a copy of the array locally, but just looks at the array handle?
    Data Value references seem to have been invented solely for the "In-Place Element Structure". Having to write the code to obtain the Data Value Reference before using the In-Place Element Structure simply points out how different a Labview reference is from a C pointer. The Labview help page for Data Value References simply says "Creates a reference to data that you can use to transfer and access the data in a serialized way.".  I've had programmers ask me if this means that the data must be accessed sequentially (serially)...!!!  What exactly does that mean? For those of use who can read between the lines, it means that Labview obtains a semaphore protecting the data references so that only one thread can modify it at a time. Is that the only reason for Data Value References? To provide something that implements the semaphore???
    The In-Place Element Structure talks about minimizing copying of data and compiler optimization. Those kind of optimizations are built in to the compiler in virtually every other language... with no special 'construct' needing to be placed around the code to identify that it can be performed without a local copy. Are you telling me that the Labview compiler is so stupid that it can't identify certain code threads as needing to be single-threaded when optimizing? That the USER has to wrap the code in semaphores before the compiler can figure out it should optimize??? That the compiler cannot implement single threading of parts of the user's code to improve execution efficiency?
    Instead of depending on the user base to send in suggestions one-at-a-time it would be nice if NI would actually host discussions aimed at coming up with a coherent and comprehensive way to handle pointers/references/optimization etc. One of the reasons Labview is so scattered is because individual ideas are evaluated and included without any group discussion about the total environment. How about a MODERATED group, available by invitation only (based on NI interactions with users in person, via support, and on the web) to try and get discussions about Labview evolution going?
    Based solely on the number of Labview bugs I've encountered and reported, I'd guess this has never been done, with the user community, or within NI itself.....

    Here are some articles that can help provide some insights into LabVIEW programming and the LabVIEW compiler. They are both interesting and recommended reading for all intermediate-to-advanced LabVIEW programmers.
    NI LabVIEW Compiler: Under the Hood
    VI Memory Usage
    The second article is a little out-of-date, as it doesn't discuss some of the newer technologies available such as the In-Place Element Structure you were referring to. However, many of the general concepts still apply. Some general notes from your post:
    1. I think part of your confusion is that you are trying to use control references and local variables like you would use variables in a C program. This is not a good analogy. Control references are references to user interface controls, and should almost always be used to control the behavior and appearance of those controls, not to store or transmit data like a pointer. LabVIEW is a dataflow language. Data is intended to be stored or transmitted through wires in most cases, not in references. It is admittedly difficult to make this transition for some text-based programmers. Programming efficiently in LabVIEW sometimes requires a different mindset.
    2. The LabVIEW compiler, while by no means perfect, is a complicated, feature-rich set of machinery that includes a large and growing set of optimizations. Many of these are described in the first link I posted. This includes optimizations you'd find in many programming environments, such as dead code elimination, inlining, and constant folding. One optimization in particular is called inplaceness, which is where LabVIEW determines when buffers can be reused. Contrary to your statement, the In-Place Element Structure is not always required for this optimization to take place. There are many circumstances (dating back years before the IPE structure) where LabVIEW can determine inplaceness and reuse buffers. The IPE structure simply helps users enforce inplaceness in some situations where it's not clear enough on the diagram for the LabVIEW compiler to make that determination.
    The more you learn about programming in LabVIEW, the more you realize that inplaceness itself is the closest analogy to pointers in C, not control references or data references or other such things. Those features have their place, but core, fundamental LabVIEW programming does not require them.
    Jarrod S.
    National Instruments

  • Optimize PDF Save

    Hi,
    In our project, we are doing some image processing operations on images in PDF pages.
    For that we will do following steps:
    1.       1. Extract image from PDF page. (Getting image as uncompressed format)
    2.       2. Do image processing operation.
    3.       3. Flatten the processed image into PDF page.
    While doing these steps, our PDF file size getting increased.
    For that, we decided to do OptimizePDFSave Operation after step3 and confirmed that PDF file size is reduced.
    Code used for Optimize PDF Save operation:
    Here we are using JPGE compression type for images (“Standard” parameter).
    Customer feels like JPGE compression is loss compression type.
    Customer is expecting same image compression type available in PDF image content.
    Please help us to resolve the issue.

    What is the issue, exactly? JPEG is lossy, certainly. What was the original compression on the images? Why don't you just compress the images as you write them rather than later using the optimizer?
    I'm afraid I don't understand your code. Why would a plug-in send a WM_CLOSE message to Acrobat?

  • Error -2147220733 occurred at DAQ Assistant (in Measurement and Automation Explorer)

    Ok!  Just before the weekend I figured out how to make channels in Measurement and Automation Explorer for inputs through a couple different NI input devices (USB-9211A & PCI-6229 DAQ).  Things were going well.  Loaded up the computer today, added a few more channels.  Worked fine.  Now all of a sudden, any channel I make has an error and if I try modifying existing channels and saving, I get same error:
    "This global channel currently has an error.  You can save the global channel, but it cannot be used until all errors have been fixed.  Press "Yes" to save anyway, or "No" to cancel and show the error."
    If I hit yes, the channel is non functional.  After hitting no, I get:
    "Error -2147220733 occurred at DAQ Assistant.  Possible Reason(s): "
    with no possible reasons listed.  I tried restarting the program.  I tried restarting the computer.  I verified connections.  Searched for the above stated error number on ni.com, google.ca, and in the MAX help files, and found absolutely nothing.  I have no clue what to do.  Any help would indeed be very much appreciated.

    Hi there,
    This is my first time on here and I've only been using this software for a couple of days so it's possible I'm making a trivial error but I thought I'd post here anyway as I can't find anything on the net about my problem.
    I also get an error while trying to save:
    Error -2147220733 occurred at DAQ Assistant
    Possible Reason(s):
    Requested Code: -2147220733
    But mine comes about in different circumstances to the one in the original post on this thread by Kahless. I was editting a VI logger task and within that I was trying to edit an NI-DAQmx Task. I was trying to change the clock settings, specifically I was attempting to change the Rate (Hz) from the 1k default to just 20, or 200. I got the error while trying to save so changed it back to 1k, but the error persisted even though I'd set it back to what it was.
    I thought at first it might be simply that I was trying to edit an NI-DAQmx task within VILogger, so I tried making the ammendment directly but the problem was still there. 
    Any ideas?
    Many thanks.

  • Optimize and Repair on the PSE 12 Organizer

    I performed the optimize and repair function on the PSE 12 Organizer because it was running really slow. However, now when I try to open the organizer I get an error message that says Internal Programming Error Organizer cannot open. Can this be fixed?

    If its within warranty and not caused by abuse no doubt it will be FOC.
    However, we have just been through the festive period so I expect things wll take a liitle longer. Apple elves have been very busy packing and sending Xmas gifts.
    Normal service will be resumed first week of Jan 2012.

  • How do you save apps,before you get update for ipod

    just was wondering how to best save apps on ipod before downloading latest version of ios 6 ?

    Import the mucis into your iTunes library and then sync via iTunes.
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
    or
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad

  • NEW 9I RMAN: BACKUP OPTIMIZATION AND RETENTION POLICIES

    제품 : RMAN
    작성날짜 : 2004-05-20
    NEW 9I RMAN: BACKUP OPTIMIZATION AND RETENTION POLICIES
    =======================================================
    오라클 9i RMAN 에서는 백업을 보다 효율적으로 할 수 있는 기능을 보강 했다.
    지금 소개할 "Retention Policies" 기능을 통해서 보다 효율적인 RMAN 백업
    전략을 세울 수 있다.
    1. 백업 화일 최적화 방법 (Backup File Optimization)
    백업 화일 최적화란 백업에 소요되는 공간을 최소화 하는 전략이다. RMAN
    백업시에 같은 정보 (dbid, checkpoint, and resetlogs data 등등) 를 가지고 있는
    화일이 이미 존재하는 백업 셋 내부에 있는지 체크하게 된다. 만일 같은 화일이
    이미 백업 되어 있다면 BACK UP 명령은 해당 화일에 대해서는 백업을 하지 않게
    된다.
    이때 같은 화일이라고 판단하는 기준은 다음과 같다.
    * Datafile: 같은 DBID, checkpoint SCN, resetlogs SCN 과 time. 데이타 화일은
    반드시정상적으로 offline 되었거나, read-only 이거나, 또는 정상적 으로 close
    되어야 함.
    * Archived redo log: 같은 thread, sequence number, 그리고 같은 Resetlogs
    SCN 과 time.
    * Backup Set: 같은 Backup Set recid 와 stamp.
    RMAN 이 백업을 수행하다가 위와 같은 조건의 화일이 이미 존재함을 확인하면
    이것은 건너뛰게 될 화일의 대상이다. 하지만 이때 바로 Skip 을 결정하지 않고
    정해진 Retention Policies 를 조사 한후에 Skip 여부를 결정 하게 된다.
    만일 백업 명령에 DELETE INPUT option 이 사용되면 RMAN 은 백업이 Skip
    되어도 화일을 지우게 된다.
    RMAN 은 모든 화일에 대한 백업이 Skip 되어도 에러메시지나 경고를 보내지
    않는다.
    그러나 만일 데이터 화일에 대한 백업이 recovery policy window 보다 오래
    된 것 이면 RMAN 은 새로운 백업 화일을 만들기 위해서 화일을 백업 하게 된다.
    Note:
    자체적인 expirations policy 를 가지고 있는 media manager 를 사용할 경우에는
    이런 백업 최적화 정책을 사용하는 것에 신중을 기해야 한다.
    백업 최적화 를 사용하기 위해서는 CONFIGURE 명령을 사용한다. CONFIGURE
    명령은 명령 수행 이후에 이루어지는 모든 백업에 대해 적용이 된다.
    예:
    CONFIGURE BACKUP OPTIMIZATION ON; # default 는 OFF
    2. Backup Optimization에 Retention Policies 적용 하기
    Retention Policy 로 백업 최적화를 조절 할 수 있다. 그러나 retention policy를
    사용하지 않기 위해서는 'CONFIGURE RETENTION POLICY TO NONE' 을
    이용해서 명시적으로 retention policy를 사용하지 않는다고 해야 한다. 디폴트로
    REDUNDANCY = 1 이 적용 된다.
         a. Recovery Window 를 이용한 Backup Optimization
    만일 백업 최적화가 enable 되어 있고 Recovery Window 가 retention policy
    적용을 위해서 셋업 되어 있으면 RMAN 은 항상 가장 최근의 백업이 Recovery
    Window 보다 오래된 데이터 화일을 백업한다.
    예를 들면 다음과 같은 조건에서
    o Today is February 21.
    o The recovery window is 7 days.
    o The most recent backup of tablespace tbs2 to tape is January 3.
    o Tablespace tbs2 is read-only.
    2월 21일에 tbs2 테이블 스페이스를 테이프로 백업을 하라는 명령을 내리면,
    RMAN 은 이 화일이 1월3일 이후에 변경 사항이 없는데도 불구 하고 백업을 하게
    된다. 이로써 RMAN 은 최근 7일 동안에 최소한 한번의 백업이 있어야 된다는
    조건을 지키게 된다.
    이러한 작동 방식은 media manager 가 오래된 테잎을 제거 해도 되도록 한다.
    그렇지 않다면, media manager 는 1월 3일의 백업을 무한정 가지고 있게 된다.
    2월 21일에 tbs2 테이블 스페이스의 보다 최근의 백업을 만듦으로 써, RMAN 은
    media manager 가 1월 3일에 백업 했던 테입을 지워도 되도록 한다.
         b. Redundancy 를 이용한 Backup Optimization
    Retention policy 로 Redundancy 를 채택 한 경우에 RMAN 은 Redundancy
    에 1을 더한 갯수를 초과하는 오프라인 또는 읽기 전용 화일의 백업을 건너뛴다.
    이때 'CONFIGURE RETENTION POLICY TO REDUNDANCY n' 명령어로
    Redundancy의 갯수를 정한다.
    아래와 같은 백업 최적화 명령을 내린 경우를 예로 든다:
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
    아카이브 테이블스페이스를 한번도 백업을 받은적이 없고 다음의 작업을 1주일
    동안 한다고 하자.
    Day Action Result Redundant Backup
    Monday Take tablespace archive offline clean.
    Tuesday Run BACKUP DATABASE. The archive tablespace is backed up.
    Wednesday Run BACKUP DATABASE. The archive tablespace is backed up.
    Thursday Run BACKUP DATABASE. The archive tablespace is backed up. Tuesday backup.
    Friday Run BACKUP DATABASE. n/a Tuesday backup.
    Saturday Run BACKUP DATABASE. n/a Tuesday backup.
    Sunday Run DELETE OBSOLETE. The Tuesday backup is deleted.
    Monday Run BACKUP DATABASE. The archive tablespace is backed up. Wednesday backup.
    화요일, 수요일, 그리고 목요일의 백업은 아카이브 테이블 스페이스를 복사 해서
    3개의 백업이 반드시 존재 해야 한다는 조건을 충촉 시킨다. (1+Redundancy)
    금요일과 토요일에는 백업 최적화 조건에 의해서 아카이브 테이블 스페이스를
    복사하지 않게 된다.
    RMAN 은 일요일에는 유효기간이 지난 백업 화일을 지우게 된다. 따라서 화요일에
    만든 백업은 삭제 된다. 월요일의 전체 백업은 3개의 백업이 존재 해야 한다는 조건
    때문에 아카이브 테이블 스페이스를 또 다시 백업하게 된다. 이런 방식으로 백업
    사이클이 진행 된다.
    3. RETENTION POLICY NONE vs. DEFAULT
    주의 사항:
    'CONFIGURE RETENTION POLICY TO NONE' 과 'CONFIGURE RETENTION
    POLICY TO DEFAULT' 는 그 의미가 같지 않다. 전자는 RETENTION POLICY
    자체가 존재 하지 않는다는 의미 이며 백업은 expire 되지 않으며 'DELETE
    OBSOLETE' 명령은 사용 할 수 없게 된다. 후자는 디폴트 RETENTION POLICY
    (REDUNDANCY 1) 를 사용하게 된다는 의미 이다.
    'DELETE OBSOLETE' 명령은 RETENTION POLICY 기준으로 expire 된 백업을
    제거 하라는 명령이다.
    보다 자세한 내용은 Oracle9i Recovery Manager User's Guide and
    Reference의 Backup Optimization 부분을 참고 하시기 바랍니다.
    --------------THE END----------------------------------------------

    Hi,
    Backup optimisation = +- do not copy empty space.
    So, when you issue your BACKUP statement, it backs up the datafile. dot. nothing more.
    In order to achieve what you're testing, look into TFM for BACKUP INCREMENTAL LEVEL x .
    Regards,
    Yoann.

  • Need info on Product interchangeability in SNP using Optimizer and Heuristi

    Can anyone suggest steps to configure product interchangeability in SNP using Optimizer and Heuristics
    we have a scenario for 1:1 config of predecessor and succesor product , same Units, across locations using Full and Forward directions for some combiantions of products.
    I would like to know prerequsites to configure this setup and any good links that lead to config steps.

    Hi,
    You can refer these help library for further help
    http://help.sap.com/saphelp_scm70/helpdata/en/21/186b398c15ef59e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_scm50/helpdata/en/2e/847337613fbc40e10000009b38f8cf/frameset.htm
    Thanks,
    nandha

  • Optimization and flattening

    I am a fairly new user to Adobe and was wondering how to optimize and flatten a pdf using Acrobat Standard XI?

    These are Acrobat Pro things. (Probably. "Flattening" means at least three entirely different things, so you can let us know exactly what you mean).

  • PDF Optimizer and Java Scripts

    We have a custom Java Script that is at the bottom of each page of certain PDFs.
    The Java Script is setup to print the date on the bottom of each page if a selected PDF is printed to hard copy.
    Our problems lies in the fact that after adding the Java Scripts, the PDF optimizer doesn't seem to optimize the PDF at all.
    We are still talking about 6MB+ PDF files. When I look at the AUDIT feature in the PDF optimizer, the biggest offender is Fonts.
    I have messed around with tons of settings inside of the PDF optimizer and nothing seems to work.
    We are using Adobe Acrobat Professional 7.1.0.
    Thanks,
    Bill

    You might also look at Adobe's FDF Toolkit.
    http://partners.adobe.com/asn/developer/acrosdk/forms.html
    This is excellent if you just want your users to be able to fill out an html form and put the data values into a PDF document.

  • Dynamic Optimization and PRO tips

    Is dynamic optimization a new feature on System Center 2012 or it was included in previous versions under a different name?
    What are the main differences between dynamic optimization and PRO tips beside trigger customization?
    Can dynamic optimization work with Operations Manager Monitoring VMM only?
    Thanks!

    Hi
    Your filemaker pro database must be exported as sql in order for you to use it to create a database.
    This may not be a simple create and import into MySQL, see - http://dev.mysql.com/tech-resources/articles/filemaker_mysql_whitepaper/filemaker_to_mysql _whitepaper01.htm.
    PZ

Maybe you are looking for