Hiya,
Hoping you could help me please..
I am using WCF in my program. Part of this includes using ServiceHost in a self-service type scenario using a netNamedTypeBinding. When I include ServiceHost in my class and then instantiate that class (ServiceHost is set to null at this point), the memory usage increases by approx 9Mb. If I c...
Hi.
I have about 30 picture boxes in my form.
all pictures are the same.
how can i save memory in this case?
for example define a picture and bind it to all picture boxes.
to increase application size and Reduce memory usage.
thanks.
...
Hi,
It seems that the JVM uses some fixed amount of memory. At least I have often seen parameters -Xmx (for the maximum size) and -Xms (for the initial size) which suggest that.
I got the feeling that Java applications don't handle memory very well. Some things I have noticed:
Even some very small sample demo applications load huge a...
I have set Private Memory limit of 200mb in IIS 7 for an application pool. The Private Working Set memory(Task Manager) for the application is always below 125mb but the number of page faults have increased a lot and application cache is getting cleared frequently after setting the limit.
I haven't set any limit on Virtual Memory. Can s...
I'm reading a flie with essentially upwards of ~500,000 lines separated out by | for the columns which I am parsing and trying to insert into the database through the CLI.. Is there a better way to read it in so I can use it?
Currently I'm inserting it as :
$fd = fopen ($txtFileName, "r");
while (!feof ($fd)) {
$buffer = f...
I have an AnimationManager class which cycles through UIImages to create a 14 frame animation. The application runs out of memory when the animations are played over and over. It was my understanding that I should not release UIImage. I do however, release the array containing the images.
What can I do to reduce the memory used by the ...
Hi,
I am writing a program to leak memory( main memory ) to test how the system behaves with low system memory and swap memory. We are using the following loop which runs periodically and leaks memory
main(int argc, char* argv[] )
{
int arg_mem = argv[1];
while(1)
{
u_int_ptr =(unsigned int*) malloc(arg...
Our server recently has been going down a lot and I was tasked to improve the memory usage of a set of classes that was identified to be the culprit.
I have code which initializes an instance of an object and goes like this:
boolean var1;
boolean var2;
.
.
.
boolean var100;
void setup() {
var1 = map.hasFlag("var1");
var2 = map.has...
Hello all,
I have a small question, when we set the memory_limit for PHP I understand that it will use that integer as the maximum memory allowed for a script to consume.
Does this mean if I set the maximum at 64MB and my script only needs 12MB that it will make use of the full 64MB just because its allowed?
I ask because I notice som...
Suppose I have a std::vector<Obj *> objs (for performance reasons I have pointers not actual Objs).
I populate it with obj.push_back(new Obj(...)); repeatedly.
After I am done, I have to delete the pushed-back elements. One way is to do this:
for (std::vector<Obj *>::iterator it = objs.begin(); it != objs.end(); ++it) {
delete *it...
Does it actually work on some compilers/machines but on others it causes heap corruptions and crashes?
Does anyone have any insight into what going on under the covers?
...
For an obfuscation program I am writing in Java, I need to find a way to get a value at a specific address. For example, in a program I opened in a hex editor, at the address 0000001F is the hex value "00". Furthermore, is it possible to write to a specific memory address? For example writing to 0000001F and changing it from "00" to for ...
Hi,
We have a weblogic 9.2 server with Java1.5.0.16 on RHEL5.3 that we deploy on it a web service and an Alfresco content management system.
We were running it fine for ~3 years on HP-UX i11.23 and a month ago we moved to Linux RH5.3 and from time to time (it happened 3 times) we noticed that the process is starting to use more and mor...
I'm using the gdb debugger to step through my code to verify my logic for sample inputs, but I'm getting this error whenever i'm trying to read the value of any variable/structure/STL object (using print). However, when I'm printing the contents of the address (which gdb allegedly cannot access), I'm reading back the value properly. Any ...
I have the following block giving me problems in the performance tool: Particularly it is saying STObject is leaking. I am not sure why?
for (NSDictionary *message in messages)
{
STObject *mySTObject = [[STObject alloc] init];
mySTObject.stID = [message valueForKey:@"id"];
[items addObject:mySTObject];
[mySTObject rele...
Hi,
The title says it all. Of course the texture will not be completely visible on the screen. And I can make it always draw just the visible part (With glTexCoord2f and then glVertex2f). (It is the big "level"-image, which I have to move around for a sliding camera). Notice this rendering has to be real-time in my game (game is written...
I've started seeing some apps that offer to read/write data to the internal phone memory (like Super KO Boxing 2, which offers to save a whopping 52MB to the phone memory).
I suppose this is because newer Android devices have a lot of internal storage, as opposed to my devices, which have very little.
I would like to support internal s...
Ok heres the situation. I have a View controller class that serves as the main view(MainView). It contains a subview that another view controller takes care of(ChangingView). Now, every four seconds, ChangingView needs to change its view. What I am currently doing goes something like this.
ChangingView = [[AnotherView alloc] initWithN...
I have experienced a strange problem in windows vista and above. When I use the IFileOpenDialog with a large stack, the amount of memory remaining after showing the dialog drops by about a gigabyte.
#include <windows.h>
#include <Shobjidl.h>
#include <iostream>
void memGrab(char *);
int main(int argc, char **argv){
char Message[128];...
Hai friends,
In my application am displaying a list of names and respectives pictures ? i am picking picture from galery through Drawble.getFromPath(). ? am displaying list , some i encountered with out of memory error ? please help me to sort out this error ?
regards ,
srinivas
...