Allocate memory for buffers

Hello,
I'm trying to allocate memory through using a buffer via LabVIEW.  I understand I'm supposed to use an array, yet I'm not sure how I'm supposed to do this. Would you be able to provide an example, or provide an explanation how this is accomplished? I'd think it should be relatively easy to find how to do this, but I don't seem to be hitting the right sources. 
Thanks, 
Andrea 

You do not need to allocate memory at all, LV is doing this for you automagically.
There are several ways to get an array:
* Use the build array function (you can resize it, it allows inputs of single as well as array), this is fully dynamically and also works as AppendToArray.
* Use the Initalize array to get an array of defined size with all values initalized the same; Usful if you have large amount of data and are concerned about performance (then you use the replace array element function to set the values one by one or subset by subset)
* Use the autoindexing of a loop output (for- or while-, for gives optimal performance)
Please do not think the same way as when programming C or similar. Graphical programming has no variables but wires. Because each wire is mapped to a memory location, the wire itself has already the information for the compiler and you do not need (and hence they are not available as functions) use any of the MemAlloc, MemFree or similar...
Felix
www.aescusoft.de
My latest community nugget on producer/consumer design
My current blog: A journey through uml

Similar Messages

  • The merge process could not allocate memory for an operation; your system may be running low on virtual memory. Restart the Merge Agent.

    I encountered this problem on our SQL2012 and I have tried different scenarios (see below) to no avail. I have decided to give up and check if someone here has encountered this and resolved it. 
    One thing I know, it's not a memory issue. Both servers we're using has lots of memory to spare and we monitor the memory as the replication goes through it's steps. 
    I hope someone can help me on this. Thanks!
    The Error:
    The merge process could not allocate memory for an operation; your system may be running low on virtual memory. Restart the Merge Agent.
    Our Scenario
    We're using SQL Server 2012 SP1. All subscriptions are pull based.
    We're using direct Merge Replication (not FTP or web sync)
    We already have 10 active replications with larger databases. Only 1 has this issue.
    Database size is less than 5 GB
    Rebuilding the publisher is not an option.
    What have I tried?
    There is no memory problem --- we have lots to spare
    I have tried re-initialization of the database. Same problem.
    I tried deleting the database and reinitializing it. Same problem
    New snapshot. Same problem.
    I tried changing the subscriber server but still same issue. 
    MCP, MCSD, MCDBA (ANXA)

    Here is the result for the sp_configure on our subscriber. We're doing a pull on the server with the issue.
    name
    minimum
    maximum
    config_value
    run_value
    max server memory (MB)
    128
    2147483647
    2147483647
    2147483647
    In addition, I made a comparison between the working servers and the one with the issue -- there seems to be a difference in the service pack. Publisher has none but the subscriber is operating on SP1. But still strange as only 1 database is affected. 
    MCP, MCSD, MCDBA (ANXA)

  • Urgent help with ORA-01062: unable to allocate memory for define buffer

    Hello, Folks!
    I have a c++ code that is using OCI API that is running both in
    windows and in spark.
    (The same c++ code compiled and running in both platforms)
    and asking the same query.
    In windows, everything is OK but in spark
    it failes...
    The ORACLE Server is installed on win2003 station
    Both client and server ORACLE version is 10.2.0.1.0
    The code is running on spark(oracle instant client is installed)
    This query is a simple select query that selects only one field
    of type VARCHAR2(4000) (the same problem with happen with any
    string type field larger than 150 characters)
    The error occured when calling for OCIDefineByPos method
    when associating an item in a select-list with the type and output
    data buffer.
    The error message is: ORA-01062: unable to allocate memory for define
    buffer
    (This error message signifies that I need to use piecewise operation...)
    But it happens even if I make this varchar2 field to be of size larger
    than 150.
    It is not fair to use piecewise fetch for such a small fields sizes.
    May be there is not configuration setting that can enlarge this
    I know that I wrote here a very superficial description.
    If somebody knows something about this issue, please help
    Thanks

    I had a special luck today after searching the solution per weeks:)I have got a solution.
    When I get the size of the oci field, in the following expressioin
    l_nResult = OCIAttrGet(l_oParam->pOCIHandle(), OCI_DTYPE_PARAM, &(orFieldMD.m_nSize), NULL, OCI_ATTR_DATA_SIZE, m_oOCIErrInfo.pOCIError());
    orFieldMD.m_nSize was of type ub4 but according the manual it must be ub2.
    As a result, the number returned was very large (junk?) and I passed this value to OCIDefineByPos
    Now I changed the type and everything is working!!!
    In windows there is not problem with this expression :)
    Thanks
    Issahar

  • Unable to allocate memory for mutex; resize mutex region

    I have BDB on linux. I am trying to run my app, but I am getting this when it tries to set up the environment. Do I need to set any environment variable or something?
    Here is my setting.
    <property name="allowCreate" value="true"/>
    <property name="cacheSize" value="65535000"/>
    <property name="cacheCount" value="30"/>
    <property name="initializeCache" value="true"/>
    <property name="initializeLocking" value="true"/>
    <property name="transactional" value="true"/>
    Thanks.
    ------------- Standard Error -----------------
    unable to allocate memory for mutex; resize mutex region
    Testcase: testRunService took 1.842 sec
    Caused an ERROR
    Cannot allocate memory
    java.lang.OutOfMemoryError: Cannot allocate memory
    at com.sleepycat.db.internal.db_javaJNI.DbEnv_open(Native Method)
    at com.sleepycat.db.internal.DbEnv.open(DbEnv.java:262)
    at com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:908)
    at com.sleepycat.db.Environment.<init>(Environment.java:30)
    Edited by: user635741 on Oct 23, 2008 9:19 AM

    Hello,
    Based on the error, unable to allocate memory for mutex; resize mutex region,
    have you tried increasing the mutex region?
    The documentation on the setMaxMutexes method is at:
    http://www.oracle.com/technology/documentation/berkeley-db/db/java/com/sleepycat/db/EnvironmentConfig.html#setMaxMutexes(int)
    You can run db_stat -x
    to display the mutex subsystem statistics.
    You'll see the information for statistics like:
    Mutex region size
    The number of region locks that required waiting (0%)
    Mutex alignment
    Mutex test-and-set spins
    If that does not look to be the problem, just let me know.
    Thanks,
    Sandra

  • Cannot open photoshop application. Error shows that cannot allocate memory for activation.

    Please help me out with this prpblem

    Basic information is essential.
    What exact version of Photoshop and of the OS?
    How much memory (RAM) do you have installed?
    How much free disk space?
    Machine and monitor specs?
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers: 
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How does Java structure memory for an object's members?

    I'm trying to figure out how Java structures/allocates memory for objects. (Yes this is implementation specific. I'm using the Oracle 1.7 runtime for this.) I did some work on this here and here and the results are confusing.
    First off, in both referenced links, when I allocated an array of objects, the equivalent of new Object[10000], it used 4 bytes per object. On a 32-bit system this makes perfect sense. But I'm on a 64-bit system so what's going on here?
    Is Java limited to a 32-bit address space even on 64-bit systems?
    Is Java limited to a 32-bit address space per array and each array object then has a pointer to where the elements are?
    Something else?
    Second, I compared the memory footprint of 8 booleans vs. a byte as the variables in a class. The 8 booleans requires 24 bytes/object or 3 bytes/boolean. The single byte approach requires 10 bytes/object.
    What is going on with 3 bytes/boolean? I would understand 4 (making each an int) and definitely 1 (making each a byte. But 3?
    And what's with expanding a byte to 10 bytes? I would understand 8 where it's expanding a byte to a native int (I'm on a 64-bit system). But what's with the other 2 bytes?
    And in the case of different ways to create a RGB class it gets really weird.
    For a class composed of 3 byte variables it uses 24 bytes/instance. Expensive but understandable as each uses an int.
    So I tried where each class is a single int with the RGB stored in parts of the int (using bit shifting). And it's still 24 bytes/instance. Why on earth is Java taking 3 ints for storage? This makes no sense.
    But the weirdest case is where the class has a single variable of "byte[] color = new byte3;" Note that the byte is allocated so it's not just a null pointer. This approach takes less memory than the other two approaches. How???
    Any guidance as to what is going on here is appreciated. I have a couple of classes that get allocated a lot and the flywheel pattern won't work (these objects have their values changed all over the place).
    And an associated question, does the order of declaring variables matter? Back in the old days when I did C++ programming, declaring "int, byte, int, byte" used 4 int's work of space while "int, int, byte, byte" used 3.
    thanks - dave

    This is a quadruple crosspost.

  • Cannot allocate memory error

    Hello,
    I am using:
    Oracle: Berkeley DB XML 2.5.16: (December 22, 2009)
    Berkeley DB 4.8.26: (December 18, 2009)
    When attempting to open a container in an environment where the application process has been running for a while I get the following error:
    XmlDatabaseError: XmlDatabaseError 12, Error: Cannot allocate memory
    The Python bindings do not have support for errcall. I have added errcall support to the bindings but I do not appear to be receiving any message (but it is new code so I do not trust it completely).
    Running the dbxml shell tool I get:
    [root@localhost db]# dbxml
    Joined existing environment
    dbxml> open test.dbxml
    stdin:1: openContainer failed, Error: Cannot allocate memory
    dbxml>I don't appear to be out of locks:
    127786  Last allocated locker ID
    0x7fffffff      Current maximum unused locker ID
    9       Number of lock modes
    20000   Maximum number of locks possible
    10000   Maximum number of lockers possible
    20000   Maximum number of lock objects possible
    1       Number of lock object partitions
    639     Number of current locks
    691     Maximum number of locks at any one time
    10      Maximum number of locks in any one bucket
    0       Maximum number of locks stolen by for an empty partition
    0       Maximum number of locks stolen for any one partition
    1282    Number of current lockers
    1320    Maximum number of lockers at any one time
    571     Number of current lock objects
    622     Maximum number of lock objects at any one time
    3       Maximum number of lock objects in any one bucket
    0       Maximum number of objects stolen by for an empty partition
    0       Maximum number of objects stolen for any one partition
    998958  Total number of locks requested
    997936  Total number of locks released
    0       Total number of locks upgraded
    13055   Total number of locks downgraded
    0       Lock requests not available due to conflicts, for which we waited
    0       Lock requests not available due to conflicts, for which we did not wait
    0       Number of deadlocks
    0       Lock timeout value
    0       Number of locks that have timed out
    0       Transaction timeout value
    0       Number of transactions that have timed out
    10MB 152KB      The size of the lock region
    0       The number of partition locks that required waiting (0%)
    0       The maximum number of times any partition lock was waited for (0%)
    0       The number of object queue operations that required waiting (0%)
    0       The number of locker allocations that required waiting (0%)
    0       The number of region locks that required waiting (0%)
    3       Maximum hash bucket lengthOr transactions:
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    35511/10059360  File/offset for last checkpoint LSN
    Thu Aug 12 17:25:26 2010        Checkpoint timestamp
    0x80007128      Last transaction ID allocated
    100     Maximum number of active transactions configured
    0       Active transactions
    3       Maximum active transactions
    28968   Number of transactions begun
    16699   Number of transactions aborted
    12269   Number of transactions committed
    0       Snapshot transactions
    0       Maximum snapshot transactions
    0       Number of transactions restored
    40KB    Transaction region size
    0       The number of region locks that required waiting (0%)
    Active transactions:Or mutexes:
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    6MB 112KB       Mutex region size
    0       The number of region locks that required waiting (0%)
    4       Mutex alignment
    1       Mutex test-and-set spins
    50000   Mutex total count
    39829   Mutex free count
    10171   Mutex in-use count
    10201   Mutex maximum in-use count
    Mutex counts
    39829   Unallocated
    509     db handle
    1       env dblist
    2       env handle
    1       env region
    4       lock region
    691     logical lock
    1       log filename
    1       log flush
    2       log region
    815     mpoolfile handle
    3896    mpool buffer
    63      mpool filehandle
    17      mpool file bucket
    1       mpool handle
    4099    mpool hash bucket
    1       mpool region
    1       mutex region
    62      sequence
    1       twister
    1       txn active list
    1       transaction checkpoint
    1       txn regionAny ideas?

    See unable to allocate memory for mutex; resize mutex region
    Edited by: Vitaliy Katochka on Nov 23, 2010 4:31 PM

  • ORA-12853: insufficient memory for PX buffers

    SQL> STARTUP NOMOUNT
    ORA-12853: insufficient memory for PX buffers: current 0K, max needed 2640K
    ORA-04031: unable to allocate 21544 bytes of shared memory ("large pool","unknown object","large pool","PX msg pool")
    Database would not go to any state.
    Please assist.
    Thankyou.

    > SQL> STARTUP NOMOUNT
    > ORA-12853: insufficient memory for PX buffers: current 0K, max needed 2640K
    > ORA-04031: unable to allocate 21544 bytes of shared memory ("large pool","unknown object","large pool","PX msg pool")
    Check your OS configuration (ulimit/limit)
    Markus

  • Playing video from a capture device - Out of memory for video buffers?

    Hello guys, I'm having problems playing video from a video capture device when not using JMStudio. When I use JMStudio, the video plays real time with no problems, but when I use code taken from a java book which is a simple Media Player, I get the following error:
    "Error is Error: Out of memory for video buffers."
    My capture device is working and I don't know why i get this error when trying to watch the video feed from a program other than JMStudio. I also tried different code that has worked in the past with the same exact capture device and I still get the same error. Please help, I have no clue at this point. The code for the simple media player is below, it's taken out of the book "Java: How to Program (4th edition)":
    Thanks in advance, I am very greatful
    Miguel
    device info: vfw:Microsoft WDM Image Capture (Win32):0
    When I type the locator, I am typing vfw://0, I also tried just vfw://
    and I get the same error.
    // Fig. 22.1: SimplePlayer.java
    // Opens and plays a media file from
    // local computer, public URL, or an RTP session
    // Java core packages
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    // Java extension packages
    import javax.swing.*;
    import javax.media.*;
    public class SimplePlayer extends JFrame {
         // Java media player
         private Player player;
    // visual content component
    private Component visualMedia;
    // controls component for media
    private Component mediaControl;
    // main container
    private Container container;
    // media file and media locations
    private File mediaFile;
    private URL fileURL;
    // constructor for SimplePlayer
    public SimplePlayer()
    super( "Simple Java Media Player" );
    container = getContentPane();
    // panel containing buttons
    JPanel buttonPanel = new JPanel();
    container.add( buttonPanel, BorderLayout.NORTH );
    // opening file from directory button
    JButton openFile = new JButton( "Open File" );
    buttonPanel.add( openFile );
    // register an ActionListener for openFile events
    openFile.addActionListener(
    // anonymous inner class to handle openFile events
    new ActionListener() {
    // open and create player for file
    public void actionPerformed( ActionEvent event )
    mediaFile = getFile();
    if ( mediaFile != null ) {
    // obtain URL from file
    try {
    fileURL = mediaFile.toURL();
    // file path unresolvable
    catch ( MalformedURLException badURL ) {
    badURL.printStackTrace();
    showErrorMessage( "Bad URL" );
    makePlayer( fileURL.toString() );
    } // end actionPerformed
    } // end ActionListener
    ); // end call to method addActionListener
    // URL opening button
    JButton openURL = new JButton( "Open Locator" );
    buttonPanel.add( openURL );
    // register an ActionListener for openURL events
    openURL.addActionListener(
    // anonymous inner class to handle openURL events
    new ActionListener() {
    // open and create player for media locator
    public void actionPerformed( ActionEvent event )
    String addressName = getMediaLocation();
    if ( addressName != null )
    makePlayer( addressName );
    } // end ActionListener
    ); // end call to method addActionListener
    // turn on lightweight rendering on players to enable
    // better compatibility with lightweight GUI components
    Manager.setHint( Manager.LIGHTWEIGHT_RENDERER,
    Boolean.TRUE );
    } // end SimplePlayer constructor
    // utility method for pop-up error messages
    public void showErrorMessage( String error )
    JOptionPane.showMessageDialog( this, error, "Error",
    JOptionPane.ERROR_MESSAGE );
    // get file from computer
    public File getFile()
    JFileChooser fileChooser = new JFileChooser();
    fileChooser.setFileSelectionMode(
    JFileChooser.FILES_ONLY );
    int result = fileChooser.showOpenDialog( this );
    if ( result == JFileChooser.CANCEL_OPTION )
    return null;
    else
    return fileChooser.getSelectedFile();
    // get media location from user input
    public String getMediaLocation()
    String input = JOptionPane.showInputDialog(
    this, "Enter URL" );
    // if user presses OK with no input
    if ( input != null && input.length() == 0 )
    return null;
    return input;
    // create player using media's location
    public void makePlayer( String mediaLocation )
    // reset player and window if previous player exists
    if ( player != null )
    removePlayerComponents();
    // location of media source
    MediaLocator mediaLocator =
    new MediaLocator( mediaLocation );
    if ( mediaLocator == null ) {
    showErrorMessage( "Error opening file" );
    return;
    // create a player from MediaLocator
    try {
    player = Manager.createPlayer( mediaLocator );
    // register ControllerListener to handle Player events
    player.addControllerListener(
    new PlayerEventHandler() );
    // call realize to enable rendering of player's media
    player.realize();
    // no player exists or format is unsupported
    catch ( NoPlayerException noPlayerException ) {
    noPlayerException.printStackTrace();
    // file input error
    catch ( IOException ioException ) {
    ioException.printStackTrace();
    } // end makePlayer method
    // return player to system resources and
    // reset media and controls
    public void removePlayerComponents()
    // remove previous video component if there is one
    if ( visualMedia != null )
    container.remove( visualMedia );
    // remove previous media control if there is one
    if ( mediaControl != null )
    container.remove( mediaControl );
    // stop player and return allocated resources
    player.close();
    // obtain visual media and player controls
    public void getMediaComponents()
    // get visual component from player
    visualMedia = player.getVisualComponent();
    // add visual component if present
    if ( visualMedia != null )
    container.add( visualMedia, BorderLayout.CENTER );
    // get player control GUI
    mediaControl = player.getControlPanelComponent();
    // add controls component if present
    if ( mediaControl != null )
    container.add( mediaControl, BorderLayout.SOUTH );
    } // end method getMediaComponents
    // handler for player's ControllerEvents
    private class PlayerEventHandler extends ControllerAdapter {
    // prefetch media feed once player is realized
    public void realizeComplete(
    RealizeCompleteEvent realizeDoneEvent )
    player.prefetch();
    // player can start showing media after prefetching
    public void prefetchComplete(
    PrefetchCompleteEvent prefetchDoneEvent )
    getMediaComponents();
    // ensure valid layout of frame
    validate();
    // start playing media
    player.start();
    } // end prefetchComplete method
    // if end of media, reset to beginning, stop play
    public void endOfMedia( EndOfMediaEvent mediaEndEvent )
    player.setMediaTime( new Time( 0 ) );
    player.stop();
    } // end PlayerEventHandler inner class
    // execute application
    public static void main( String args[] )
    SimplePlayer testPlayer = new SimplePlayer();
    testPlayer.setSize( 300, 300 );
    testPlayer.setLocation( 300, 300 );
    testPlayer.setDefaultCloseOperation( EXIT_ON_CLOSE );
    testPlayer.setVisible( true );
    } // end class SimplePlayer

    somebody? anybody? I know there are some JMF professionals in here, any ideas?
    I was reading the Sun documentation and it said something about increasing the JVM memory buffer or something? Well, i'm just clueless at this point.
    Help a brotha out!

  • What is the best way to capture RGB8 image to memory for later write to disk?

    HI-
    I have been using the code below for some time now but wonder if an expert can take a look and let me kown if there are ways to improve it.  Problem I run into is that I preallocate the memory beforehand (camera.buffering[]), and with a 5 MP camera, this takes up a lot of RAM.  It seems like when I am running this program in debug mode all day and constantly start/stop it without allowing it to free the memory gracefully, i eventually bog the system and start getting Out of Memory error -12, in other places in my code such as DisplayBitmap or GetBitmapfrom File.  Is this all related to how much memory I am trying to allocate prior to begining the camera capture routine below?  Am I not allocating and free-ing it properly?
    Code is below for how I grab the image and then send to memory usign memcpy.  Is there a better, more efficient or faster method?  I have removed error checking/etc from code below simply to save space. This operates at 15 fps.   
    I also included my allocation and free-ing code, too. 
    Thanks in advance.
    Blue
    //caemra capture loop//
    camera.dxerror = IMAQdxGrab (camera.session, camera.image, 1, &camera.bufNum);          
    stat = imaqRotate2 (rotateimage, camera.image, camera.rotate_image, pixval, IMAQ_BILINEAR, TRUE);    
    stat = imaqScale (scaledimage, rotateimage, 4, 4, IMAQ_SCALE_SMALLER,IMAQ_NO_RECT);          
    stat = imaqGetImageInfo(camera.image,&camera.info);
    stat = imaqDisplayImage (scaledimage, 0, FALSE);         
    memcpy (camera.buffering[camera.count], camera.info.imageStart, camera.info.pixelsPerLine*camera.CAMY*camera.bytesperpixel);   
    //memory allocation code//
     camera.buffering = (int **)malloc(camera.maxcount*sizeof(int*));
     for(i=0;i<camera.maxcount;i++)
          camera.buffering[i] = (int *)malloc(camera.info.pixelsPerLine*camera.CAMY*camera.bytesperpixel); 
    // free allocated memory code//
     for(x=0;x<camera.maxcount;x++)
             free(camera.buffering[x]);
    free(camera.buffering);

    How many images are you storing in RAM?  Typically when I need to work with tens, hundreds, or even thousands of images, I save them to the hard drive after I capture them as a PNG with 1000 quality.  Sometimes I process them before saving, sometimes I process them offline from the saved images depending on the application.  If you don't need all of the images simultaneously in memory at once, just save them to PNG.  If you only process one image at a time, only allocate enough memory for the processing you need to perform on a single image.
    www.movimed.com - Custom Imaging Solutions

  • Cannot allocate memory - Concept Explanation Please

    Hello all,
    Just wanted to confirm something.
    I compile a helloword class and the javac does it job.
    Now when I am preparing a larger program from ant like so: /usr/local/ant/bin/ant prepareI get:Buildfile: build.xml
    [property] java.io.IOException: java.io.IOException: Cannot allocate memory
    [property]     at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
    [property]     at java.lang.ProcessImpl.start(ProcessImpl.java:65)So more memory is required for different compilations of programs, right?
    Is there a way, I can allocate all (most) memory to the javac compiler?
    If I have some of my theory and terminology mixed please correct me.
    Thanks all
    ---------Key Info-----------
    java version "1.5.0_15"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
    Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)
    OS: Fedora 7

    Thanks Peter will look into this now.
    Before I find the tut/HOWTO is there any chance of the swap file damaging my server? I mean worst case scenario would be...?
    Just had a look at "top" and it says "swap" on there, is that referring to something eles: (sucks to be a noob!)
    top - 12:32:34 up 14 min,  1 user,  load average: 0.00, 0.00, 0.00
    Tasks:  35 total,   2 running,  33 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.0% us,  0.1% sy,  0.0% ni, 99.9% id,  0.0% wa,  0.0% hi,  0.0% si
    Mem:   8140596k total,  8087960k used,    52636k free,    73708k buffers
    Swap: 12578884k total,    28956k used, 12549928k free,  1705984k cachedEdited by: abshirf2 on Oct 2, 2008 7:32 PM
    Edited by: abshirf2 on Oct 2, 2008 7:33 PM

  • Safari won't open web pgs, says cannot allocate memory - HELP?

    Just got iPod Touch, connected to WiFi, but any web page I try to open with Safari gives me the same message: *POSIX error 12, Cannot allocate memory. NSPOSSIXErrorDomain.* What on earth does this mean, and why can't I open any websites??? Grateful for any assistance! Thanks - lizmo

    I've never succeeded in opening a page yet! This is my first attempt. I get the same error message every time. Thanks for any help.

  • Db_load error: Cannot allocate memory

    Hi
    when I try to import an dump file, i always get this error:
    db_load: BDB2055 Lock table is out of available lock entries
    db_load: Cannot allocate memory
    I executed "db_load -f outdb/outdb2 -h env xass.db"
    and i have set max locks by:
    dbenv->set_lk_max_locks(dbenv,1000);
    but it doesn't work.
    What should I do to prevent this problem?
    Thanks for your help in advance
    Mark
    Update:
    I have doing some tests, and i found that if I increase the number of locks by "set_lk_max_locks" in DB_CONFIG file,  the operation of db_load will success.
    The point is that the larger db file may need a very big value of locks, so why "db_load" doesn't release the locks during the running procedure? Is this a bug for bdb?
    becuase I can't increase the number of locks infinity!
    if not, How can i cause "db_load" release the locks of transaction?
    Does anybody can help me?
    Mark

    Hi Mark,
    If you are importing a dump file into an existing environment and opened with the flags of(can have more) DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN, then it is true you may see the error about "lock table is out of available lock entries" when the dump file is very big. The db_load process will not release the locks since it needs to provent other process from accessing the database being built to provide data consistency in the transactional environment.
    The usually way for loading a database from a dump file is to specify an empty directory as the home directory. By this, the database will be created in a private non-transactional environment, and you can copy the database into your running environment after the db_load process finishes.
    Regards,
    Winter, Oracle Berkeley DB.

  • I can no longer access Safari on my ipad. I get the error:the operation couldn't be completed. Cannot allocate memory. Help please!

    I am not able to access Safari on my ipad. I get the error message: The operation couldn't be completed. Cannot allocate memory. Can anyone help please??

    Try this first.
    Go to Settings>Safari>Clear History, Cookies and Data. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    If that doesn't work, reboot the iPad - or quit all apps and restart.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Quit all apps completely and restart the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar. Restart the iPad.

  • Using Disc Utility to copy my hard drive to a brand new external drive and am having the error "Unable to create...(Cannot allocate memory)".

    I'm not very tech savvy but am trying my best to use Disc Utility to copy my hard drive to a brand new external drive and am having the error "Unable to create...(Cannot allocate memory)".
    Last night no problems, woke this morning and it was freezing so I forced a restart and got the grey screen with the folder and question mark. Ran off to best buy to get an external drive... Please help! Thank you!

    I have done both. When I hold down the "C" key it pauses for a few seconds while the cd spins and then the flashing folder icon appears.
    Could be you have the wrong cd/dvd.  The mac will only boot a supported cd/dvd for your machine. The flashing question mark indicdates your machine could not find a valid os.
    When I hold down the "option" key for the startup manager the cursor comes up and moves but the actually manager doesn't come up no matter how long I leave the laptop on.
    Not sure.  Could be your machine does not support the startup manager. You would think the machine would ignore the key.
    Where did you get the dvd?  What is the number on the DVD?
    What machine do you have anyway?
    This site provides more information, but lacks security.
    "A serial number is a unique, identifying number or group of numbers and letters assigned to an individual piece of hardware or software. It's used for various things depending on the product / brand but what is your Mac's serial number for and more importantly... what is it hiding and what can it do for you ?"
    http://www.appleserialnumberinfo.com/Desktop/index.php
    or
    This site provides more information, but lacks security too.
    "A serial number is a unique, identifying number or group of numbers and letters assigned to an individual piece of hardware or software. It's used for various things depending on the product / brand but what is your Mac's serial number for and more importantly... what is it hiding and what can it do for you ?"
    http://www.appleserialnumberinfo.com/Desktop/index.php
    http://www.chipmunk.nl/klantenservice/applemodel.html
        ( hint by K Shaffer  )

Maybe you are looking for