What is Working Set ?
I'm confused with the concept of Working Set ,while reading the Memory Management code of the Windows Research Kernel. ...
I'm confused with the concept of Working Set ,while reading the Memory Management code of the Windows Research Kernel. ...
Hi there, If I do not care about a thrown Exception. Can I code in a way as not to create it? In other words, can an Exception be thrown but no Exception object be created? An example - Simple example using a System.Net.Sockets.Socket Socket acceptingSocket; acceptingSocket.Blocking = false; while(condition) { try { ...
I have a static std::vector in a class. When I use Microsoft's memory leak detection tools: _CrtMemState state; _CrtMemCheckpoint( & state); _CrtMemDumpAllObjectsSince( & state ); it reports a leak after I insert stuff into the vector. This makes sense to me because new space is allocated when something is inserted into the vector. ...
Hello, I have an MFC app which is wizard based. The App asks a user a variable number of questions which are then written to an INI file which is later encrypted when the user clicks Finish. All the INI file parsers I have seen so far seen read or write to a physical file on Disk. I don't want to do this as the INI file contains con...
I have developed an iphone application that opens to a tabbed view with the first tab being a uinavigationcontroller. Within that controller is a uiviewcontroller that contains a uitableview. There are 2 items listed in the tableview. When I select one or the other item, it displays yet another uiviewcontroller with dynamically generated...
Hello everyone I am trying to resize an image of 700kb with imagecreatefromjpeg. This gives the error: Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 9356 bytes) First the memory_limit was 8M then we set this to 24 M but then it still gives the error. Is this a memory leak? What could have happened? We...
I'm currently working on a C++ program in Windows XP that processes large sets of data. Our largest input file causes the program to terminate unexpectedly with no sort of error message. Interestingly, when the program is run from our IDE (Code::Blocks), the file is processed without any such issues. As the data is being processed, it...
I have a method that returns a NSMutableArray: //implementation of class Students -(NSMutableArray *)listOfStudents { NSMutableArray *students = [[NSMutableArray alloc] init]; //add objects to students and other operations here return students; } The problem here is, when and where do I release the object students? If it was an...
Hello! When a class in Java doesn't override hashCode(), printing an instance of this class gives a nice unique number. The Javadoc of Object says about hashCode(): As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. But when the class overrides hash...
I have a program that process several files, and for each file a report is generated. The report generating part is a separate function that takes a filename, then returns. During report generation, intermediate parts are cached in memory, as they may be used for several parts of the report, to avoid recalculating. When I run this progr...
Hi, I was playing around with memory-mapped files in C and was wondering if there is a way to replace the FILE * from fopen with a memory mapped file transparently. Example: FILE * fp = g_fopen(...); //Program does things to this fp. fclose(); But instead, is it possible to have FILE *fp = my_fopen(...) Where my own function would...
I am trying to determine which implementation of the data structure would be best for the web application. Basically, I will maintain one set of "State" class for each unique user, and the State will be cached for some time when the user login, and after the non-sliding period, the state is saved to the db. So in order to balance the db ...
I need to build a big list of strings and keep it in memory, however while building it an OutOfMemoryException is thrown. According to Resource Monitor I still have 1GB of memory available. I found this KB article addressing the issue, but it seems like it should have been fixed in framework 1.1 SP1 (I am using 3.5 sp1). Can anybody sh...
My application needs to decompress files which contain a lot of Deflate compressed blocks (as well as other types of compression and encryption). Memory profiling shows that the deflate stream constructor is responsible for allocating the majority of the application's memory over its lifetime (54.19%, followed by DeflateStream.read at 12...
I have a Perl-Tk GUI with about 50 sub-windows. In each sub-window there are about 50 buttons and 50 menus (each menu has about 4 options). When I run it on UNIX/Linux/Solaris, it runs smoothly. When I run it on Windows, the GUI freezes in the middle of loading so I see only some of the buttons, or the GUI doesn't show at all it seem...
I've written a small, in house C# program which batch converts between various file formats, mostly relying on other API's. Currently, the UI spawns a BackgroundWorker (not a Thread) to handle the conversions, and then fills a queue with the requests which empties as the worker completes jobs. The queue object themselves are very small...
Hi there if I run top on a Linux system, I can see a lot of information about memory usage. Mem: 15736360k total, 8415332k used, 7321028k free, 174876k buffers Swap: 0k total, 0k used, 0k free, 2630508k cached I was wondering: What is the "cached" attribute telling me? Seems like this is not being freed...
I am using 32 bit RHEL 4.4 on AMD64 based hardware. Here is the output from uname -a $ uname -a Linux zulu 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686 athlon i386 GNU/Linux I have 8Gigs of memory installed on this system, OS being 32 bits I would assume that my system will not be able to make use of full 8GB memory. B...
I'm dealing with financial data, so there's a lot of it and it needs to be relatively high-precision (64bit floating point or wider). The standard practice around my workplace seems to be to represent all of it as the c# decimal type which is a 128bit wide floating point specifically created to support round-off free base10 operations. ...
Hi all, In our oracle server(10 g), we are getting ORA-4030 error on sometimes. ORA-04030: out of process memory when trying to allocate nn bytes We understood it is related with memory size adjustment. We are trying some memory settings. Other than this, wanted to know, (1) Any specific SQL query usages will be cause this kin...