memory

IE 8 dropping memory pages?

This question is a spin-off/evolution of this question. (That question got marked as resolved because I put a bounty on it and it auto-resolved, but it never really got answered.) The summary is this: we have an ASP.NET site. Sometimes we get errors when the client asks for bizarre urls. From the resources the client is asking for,...

How to handle passing runtime-sized arrays between classes in C++

Right now I have a simple class that handles the parsing of XML files into ints that are useful to me. Looks something like this: int* DataParser::getInts(){ *objectNumbers = new int[getSize()]; for (int i=0;i<getSize();i++){ objectNumbers[i]=activeNode->GetNextChild()->GetContent(); } return objectNumbers; ...

SQL Server CLR Memory Allocation

Currently we have MS SQL Server 2005 (32 bit). We have 1 assembly (and only 1 assembly) which we use for encryption and decryption. Only 512 MB of system memory is allocated to CLR. The assembly runs pretty slow, and I'm trying to rule out if its from memory or not. When I run the SQL code in query analyzer (not in an assembly) it runs q...

GCC __attribute__((aligned(x)) explanation

Hi, i have the following code: #include <stdio.h> int main(void) { float a[4] __attribute__((aligned(0x1000))) = {1.0, 2.0, 3.0, 4.0}; printf("%p %p %p %p\n", &a[0], &a[1], &a[2], &a[3]); } And i have the following output: 0x7fffbfcd2da0 0x7fffbfcd2da4 0x7fffbfcd2da8 0x7fffbfcd2dac Why the address of a[0] is not a...

Read memory of Java applet running inside browser

Hi, I use C# to program and use ReadProcessMemory to read the memory of other processes running on the system. However, I'm unsure how to read the memory of a java applet that is running inside a browser? Has anyone tackled this before? Thanks. ...

Large initial memory footprint for native app

Hi, I've noticed that the native C++ application I'm working on has quite a large memory footprint (20MB) even before it enters any of my code. (I'm referring to the "private bytes" measure in Windows, which as I understand it is the most useful metric). I've placed a break point on the first line of the "main()" function and sure en...

WPF - Dynamic vs Static Resources

I am experiencing an enormous memory leak in my WPF project and am trying to figure out what I can do to minimize it. To access resources I use StaticResource 100% of the time. Should I use DynamicResource where I can? Are there advantages as far as memory management between StaticResource and DynamicResource? FYI: I have a listbox show...

Read Java Variables

Hi, I am trying to achieve reading variables from a Java applet out of process from my C# program. Apart from reading memory addresses, is there any way I can obtain values of variables from a java applet? This java applet will be running inside a browser. If it is not possible to do this from C#, would it be possible to do it from a dif...

Making a game trainer in C++?

Ok so i've messed with games before, but now i would like to make a trainer only problem is that there memory adresses changes every time i play it on a different computer or restart the game. Now i need to find a pointer but have no idea how. So how do i find the pointer to the adress for ammo for any weapon with a memory scanner like ...

How to read 3rd party application's variables from memory?

Dears, I'm trying to read variables from memory. Variables, that doesn't belong to my own program. For instance, let's say I have this Adobe Shockwave (.dcr) application running in browser and I want to read different variables from it. How it's being done? Do I need to hook the process? But it's running under virtual machine, so I don'...

Memory usage of C++ / Qt application

I'm using OS X 10.5.6. I have a C++ application with a GUI made with Qt. When I start my application it uses 30 MB of memory (reported by OS X Activity Monitor RSIZE). I use this application to read in text files to memory, parse the data and finally visualize it. If I open (read to memory, parse, visualize) a 9 MB text file Activity Mo...

WPF Memory Usage #2

I've asked a question about my memory management problem in WPF, but this is a different one about the same problem. I am using DotTrace trying to figure out what's going on. When I start up my app, I can see in Task Manager that it is taking 200MB. DotTrace says a total of 33MB. If I simply minimize the window and bring it back up, the ...

How to determine the hardware (CPU and RAM) on a machine?

I'm working on a cross platform profiling suite, and would like to add information about the machine's CPU (architecture/clock speed/cores) and RAM(total) to the report of each run. Currently I need to target Windows and Unix, so I need methods to obtain this information from both platforms, any clues? Edit: Thanks for the great answers...

Cocoa Autoreleasing in loops

(I have read Apple's memory management guide, as well as other memory management help here, but am still confused on the following) What should I do for memory management with convenience methods in a loop? Do I need to explicitly create an autorelease pool and then drain it. Or is it all automagic? e.g. for (i=0; i<numFilePaths; i++...

Where Do malloc() / free() Store Allocated Sizes and Addresses?

Hi, where do malloc() and free() store the allocated addresses and their sizes (Linux GCC)? I've read that some implementations store them somewhere before the actual allocated memory, but I could not confirm that in my tests. The background, maybe someone has another tip for this: I'm experimenting a little bit with analyzing the heap...

T-Mobile G1 (MSM7200) GPU Memory

Hello. I'm trying to find some information regarding the available GPU (for OpenGL) memory on the T-Mobile G1. This phone has a MSM7200 Qualcomm chip inside with ATI Imageon GPU. Unfortunately I am not able to dig any info regarding the specifics of GPU memory usage. How much memory is available in total for the textures? Is the memo...

How to find or calculate a Linux process's page table size and other kernel accounting?

How can I find out how big a Linux process's page table is, along with any other variable-size process accounting? ...

how to map memory as USWC under windows/linux?

I need to map most of the computer memory as uswc to take advantage of non-caching movntdqa. Is there any easy way to do this under windows or linux? ...

intrinsic memcmp

According to the gcc docs, memcmp is not an intrinsic function of GCC. If you wanted to speed up glibc's memcmp under gcc, you would need to use the lower level intrinsics defined in the docs. However, when searching around the internet, it seems that many people have the impression that memcmp is a builtin function. Is it for some compi...

Java Memory explained (SUN JVM)

I tried to find a interpretation of the memory segments of the sun java vm, which would also understandable by an administrator. It should explain what heap / non-heap memory is and the significance of the different memory pools. If it would somehow relate to the jconsole view, it would be a bonus. Is there somewhere a website with su...