We have a Visual Studio 2005 solution with 50 projects (mostly class libraries and some Win Form projects).
Doing a clean debug build with a freshly started Visual Studio peak memory usage (recorded by task manager) shows about 500mb.
Doing the same build (clean, debug) with MSBuild the peak memory usage is about 1600mb and it eventual...
I'm getting an instruments Memory Leak with this iPhone 3.0 SDK code.
I'm using the JSON from http://code.google.com/p/json-framework/
Here is my code:
// .h
@property (nontatomic,retain) NSMutableArray *tweets;
// .m
import" JSON.h"
@synthesize tweets;
...
tweets = [[NSMutableArray alloc] init];
NSURL *url = [NSURL URLWit...
After running with the memory analyzer, my app seems to increase its memory consumption very slowly.
The analyzer did detect memory leaks whenever certain events occur, which i quickly fixed. But this slow consumption of memory is occuring when im not doing anything in the app. The app basically just starts. Consumption is more noticeab...
Hi,
I've a C callback defined as follows:
Int16 (CALLBACK *ProcessMessage)(Uint16 ServerId,
const char PTR *RequestMsg, Uint32 RequestSize,
char PTR **ResponseMsg, Uint32 PTR *ResponseSize,
Int16 PTR *AppErrCode);
An exemple of using this callback in C:
Int16 CALLBACK ProcessMessage(Uint16 ServerId, const char PTR *Request...
There are four ways to dynamic allocate memory, is there differences among the four ways?
first like this:
char *seq=(char *)malloc(100*sizeof(char));
void exam(char *seq){
// using 'seq'
}
second like this:
char *seq;
void exam(char *seq){
seq=(char *)malloc(100*sizeof(char));
// using 'seq'
}
third like this:
char *s...
Hi, I'm doing some graphics programming and I'm using Vertex pools. I'd like to be able to allocate a range out of the pool and use this for drawing.
Whats different from the solution I need than from a C allocator is that I never call malloc. Instead I preallocate the array and then need an object that wraps that up and keeps track of ...
The service was compile with no trace/debug constant and no debug info.
How would you inspect the memory usage of that windows services?
...
it seem, after looking with reflector, that the sendasync(smtpclient) with the object token in the parameter of the function is byval
does it make sense to try to release the attachment in the callback function?
everywhere people(myself included) seem to do sendasync(mailmessage,mailmessage)
and in the callback(SendCompletedCallback) ...
So some where i have a leak which is related to deleting an object under certain circumstances.
Premise:
- I have an NSMutableArray of Tree objects (a Tree object knows how to draw itself).
- I have a reference pointer (Tree *selected) which basically points to whatever tree i last touched.
- Note that the *selected pointer is a weak r...
I want to know the size occupied by a JavaScript object.
Take the following function -
function Marks()
{
this.maxMarks = 100;
}
function Student()
{
this.firstName = "firstName";
this.lastName = "lastName";
this.marks = new Marks();
}
Now.. i instantiate the student
var stud = new Student();
so that I can do stuff like
...
Hi,
We are writing a java program which keeps a password in memory. Unfortunately, the user can easily use jconsole or jmap to create a heap dump file and open it to find the password. I think jconsole connects jvm using local sockets. I wanna know, is there any way to disable jmx even for local users? Is there any way to totally disable...
I'm trying to read some large text files (between 50M-200M), doing simple text replacement (Essentially the xml I have hasn't been properly escaped in a few, regular cases). Here's a simplified version of the function:
<?php
function cleanFile($file1, $file2) {
$input_file = fopen($file1, "r");
$output_file = fopen($file2, "w");...
Hi,
What is the Maximum memory size limit for ASP.NET application on windows 2008 64bit?
Thanks,
Guy Bertental
...
I have used trainers in the past to gain things like extra lives in games, it is my understanding that trainers work by hacking or freezing the memory address that the game uses to track such things.
My questions are:
Could memory hacks be used to manipulate controls in a program (i.e. play, pause, next song for a media app)?
And are ...
On timer tick I am allocating new ClearCase ApplicationClass object, Is following code okay?
Or Do I need to release memory, If yes, How? I am using ClearCase Interop of ccauto.dll, I believe ccauto.dll is unmanaged code, I am confused, am I supposed to release the memory or not?
Please advise.
private void timer1_Tick(object sende...
Does anybody know of Memory Leak in Oracle Client 10.2.04 64bit?
We use in on ASP.NET application running on Windows 2008 server with
System.Data.OracleClient and our process is growing to 2.4GB withing few days!
...
I would like to understand what is going on in the GCC runtime in the following situation.
I have a C++ program that allocates many blocks of memory and then deletes them. What's puzzling is that the memory is not being returned to the OS by the GCC runtime. Instead, it is still being kept by my program, I assume in case I want to alloc...
Is there a way to fill the free RAM on a linux machine with random data?
The reason I'm asking this: I'm working in a group where we do numerical programming in Fortran. Sometimes, people mess up working with double precision reals, so that programs that should give double precision results only give single precision.
If my understandi...
Hy guys. I'm currently working on a project which uses a lot of data stored in session variables. My question is how reliable is this method and if affects the server performance and memory usage. Basicaly, what you would choose between session variables and cookies.
...
I’m currently monitoring a Java application with jconsole. The memory tab let you choose between:
Heap Memory Usage
Non-Heap Memory Usage
Memory Pool “Eden Space”
Memory Pool “Survivor Space”
Memory Pool “Tenured Gen”
Memory Pool “Code Cache”
Memory Pool “Perm Gen”
What is the different between them ?
...