I create a memory pool with flag(DB_CREATE) after ope a Db_Env with flag(DB_CREATE | DB_INIT_MPOOL |DB_SYSTEM_MEM), when I run their program at first time, it's ok and create some db files such _db.001,_db.002,mpool, but after I close the program and run it again,their make a error said the system cannot find the specified file("Mpool: P...
Is there a list of reserved memory addresses out there - a list of addresses that the memory of a user-space program could never be allocated to? I realize this is most likely per-OS or per-architecture, but I was hoping someone might know some of the more common OSes and Arches. I could only dig one up for a few versions of windows:
...
What is the memory and performance usage compared to creating a object with only a constructor?
The usage here is in creating a Set<Object> or List<Object> that may contain million plus entries and I am concerned with the overhead of using Bloch's Builder Pattern. I have used it in the past, but never in this large of a scope.
Refer...
There's a bug in delphi 6 which you can find some reference online for when you import a tlb the order of the parameters in an event invocation is reversed. It is reversed once in the imported header and once in TServerEventDIspatch.Invoke.
you can find more information about it here:
http://cc.embarcadero.com/Item/16496
somewhat rela...
This is kind of a follow-up to a question I posted last week:
http://stackoverflow.com/questions/2429056/simple-jquery-ajax-call-leaks-memory-in-ie
I love the jquery syntax and all of its nice features, but I've been having trouble with a page that automatically updates table cells via ajax calls leaking memory.
So I created two simple...
I'm studying security, and I would like to know: in Windows or Unix based OS environment, is there a way for anything (programs or user with some knowledge) to copy all the content of the computer's memory?
My worry is about a hacker get my decrypted data loaded in memory. And how to avoid it.
The hacker may be the user himself.
...
I'm running:
MySQL v5.0.67
InnoDB engine
innodb_buffer_pool_size = 70MB
Question: What command can I run to ensure that my entire 50 MB database is stored entirely in RAM?
...
Hi,
I have a Perl script running in mod_perl that needs to write a large amount of data to the client, possibly over a long period. The behavior that I observe is that once I print and flush something, the buffer memory is not reclaimed even though I rflush (I know this can't be reclaimed back by the OS).
Is that how mod_perl operates...
hi,
I am developing image saving app. i am using two high resolution images(1200*1600) to get single image of high resolution(1200*1600), which is drawing from both images like photo in frame . here i am using renderInContext to draw a single image. but its giving memory warning issue and crashes the app. its happening consistently. plea...
Looks like dynamic memory allocation without garbage collection is a way to disaster. Dangling pointers there, memory leaks here. Very easy to plant an error that is sometimes hard to find and that has severe consequences.
How are these problems addressed when mission-critical programs are written? I mean if I write a program that contr...
How can I define an object in Java in a way that would mean 'block of memory'?
...
I've looked on the web for a while and can't seem to find the setting to increase the memory allocated to OC4J when launching from Eclipse. Does anyone know where the setting is?
Thanks.
...
Do these types of memory leaks have fixed names?
...
I've got the entire contents of a text file (at least a few KB) in string myStr.
Will the following code create a copy of the string (less the first character) in memory?
myStr = myStr[1:]
I'm hoping it just refers to a different location in the same internal buffer. If not, is there a more efficient way to do this?
Thanks!
Note: I'...
I have got one weird issue. I am working on an asp .net mvc application. I have a refresh button that build some data and view models in the controller code, and returns the partial view back. Well this refresh does work good the very first time. But when i try to click my refresh button again, a javascript alert comes saying
"out of m...
As a Java programmer, you usually keep two truths in your pocket:
Instance variables and Objects lie on Heap.
Local variables and methods lie on the Stack.
Now that I use Hibernate in just about everything, I realize I'm not as sure of myself.
Are there some good rules of thumb for using hibernate and knowing where your memory liv...
Does the MEMORY storage engine of MySQL ever write to disk the database contents?
Meaning, if I'm using the MEMORY storage engine and my database server loses power - do I lose all of my database content or is it backed up to disk?
...
I inserted the following code:
$counter = 1;
while($_POST['additional_contact1'] != '' || $_POST['additional_contact2'] != '' || $_POST['additional_contact3'] != '') {
if($_POST['additional_contact' . $counter] != '') {
$_SESSION['contact'][$counter]['additional_contact'] = $_POST['additional_contact' . $counter];
$_SESSION['c...
I'm using Symfony 1.4 and Doctrine.
So far I had no problem running tasks with Symfony.
But now that I have to import a pretty big amount of data and save them in the database, I get the infamous
"Fatal Error: Allowed memory size of
XXXX bytes exhausted"
During this import I'm only creating new objects, setting a few fields and...
Is there a Python library that allows manipulation of zip archives in memory, without having to use actual disk files?
The ZipFile library does not allow you to update the archive. The only way seems to be to extract it to a directory, make your changes, and create a new zip from that directory. I want to modify zip archives without di...