Hi guys.
I need the advice from someone who knows very well java and the memory issues.
I have a large file (something like 1.5GB) and I need to cut this file in many(100 small files for example) smaller files.
I Know generally how to do it (using a BufferedReader), but I would like to know if you have any advice regarding the memory, o...
I’m trying to decide the best way to load data into my app, it’s basically a book, but I want to have control of the chapter line number and chapter name ( so I can add comments and notes under relevant lines) etc. Both options allow me to do this. There’s going to be about 25 large-ish chapters.
What would be the best overall in term...
Hey,
I am searching for a way to be able to handle overloading the RAM and CPU using a high memory program... I would like to process a LARGE amount of data contained in files. I then read the files and process the data therein. The problem is there are many nested for loops and a root XML file is being created from all the data proces...
I can't say I really understand the memory handling in Objective-C so I have a couple of questions concerning that.
Do I have to remove the objects "url" and "urlRequest" in the box below or does "urlConnection" take on the responsibility for doing that?
NSURL* url = [NSURL URLWithString:url];
NSURLRequest* urlRequest = [[NSURLRequest...
vector<vector<string> > test for example.
g++, you can do
test.reserve(10);
test[0] = othervector;
test[9] = othervector;
It doesn't crash. Theory says you shouldn't do it like that because you are assigning a vector to a chunk of memory that believes it is a vector.
But it works just like the next one:
#include <string>
#include <...
If I allocate memory in one thread in C++ (either new or malloc) can I de-allocate it in another, or must both occur in the same thread? Ideally, I'd like to avoid this in the first place, but I'm curious to know is it legal, illegal or implementation dependent.
Edit: The compilers I'm currently using include VS2003, VS2008 and Embedd...
I'm trying to fix my code to enable Perl to recover unneeded data by weakening references and breaking cycles.
I recently asked a question on How to access Perl ref counts and the answer has been working well for me.
For some of my objects, the reference count is > 1 and I don't know why.
Is there a way for me to add a callback or som...
I'm pretty new to iPhone Development and running into troubles with memory management.
I built a Multiview Application with this structure:
Main Menu - Preferences - Subview with UIPicker Item.
The navigation is done with a Navigation Controller (Push/Pop view to/from stack).
Everything works fine. But if I'm switching about 20 times...
Hi
I have been doing spring cleaning in my app. I noticed something strange, that, when I tried to correct it, completely crashes my app.
There are two "paths" in my app; either you are in the "A" part of it or you are in the "B" part. From the "A" part you can go to the "B" part and the other way around.
I designed it so that the app ...
Hi
Something is puzzling me, after going through my app with instruments, it is a UINavigationBased App, it noticed this.
Each time a tableView cell is tapped and I do this:
GenericTableViewController *someViewController = [[Generic TableViewController alloc] init];
[self.navigationController pushViewController:som...
Additional thanks extend to Daniel Newby for answering my memory usage question (and Martin York for explaining it a bit more). It is definitely the answer I was looking for, but more of my other questions were answered by others.
Thanks everyone
for clearing up all of my concerns. Very pleased to see things running how I expect them t...
I am a big fan of the _malloca but I can't use it with classes. Is there a stack based dynamic allocation method for classes.
Is this a bad idea, another vestige of c which should ideologically be opposed or just continue to use it for limited purposes.
...
Sorry for the dumb question, but I'm working with Qt and C++ for the first time, and working through the tutorial and some samples.
One thing that was mentioned was that Qt stuff doesn't need to be explicitly deleted. So, main question, does this also apply to collections of Qt stuff? Like say I want a dynamic number of MyWidgets, so I ...
I have an instance variable defined and synthesized as a property like so:
@interface CardFrontView : GenericCardView {
UIImage *_letterImage;
}
@property (nonatomic, retain) UIImage *letterImage;
@end
@implementation CardFrontView
@synthesize letterImage = _letterImage;
...
I set the letterImage property in -init:
- (id)initW...
Hi,
currently I'm struggling with this problem:
I got a UITableViewController that displays a tableView with different custom cells.
One custom cell displays a number (by a label). If you click on this cell, the navigationController moves to a UIPicker where the user can select the number to be displayes.
If the user moves back, the ce...
Hello Everyone,
Is there a way in Windows/Linux or any other operating system to know at instruction-level, if a memory access generated a Page Fault? The code I'm imagining about would look something like this:
Buffer *buffer = new Buffer();
...Do something with the buffer...
if(thisProcess.generatedPageFault)...
Hi,
I recently inherited an iPhone app. The original developer did not understand memory management and well the app works in simlulator but not in on old iPhone (lots of crashses). Do you have any thoughts on the process by which I can save the app?
Can I utilize or create any unittest to find memory leaks and make the process 'scien...
Hello everyone.
I've searched for some time already so I ask my question.
I want to display data in a UITableView. each content of each cell of this tableview is set in an object specially created for this purpose (cellPlainObject).
a cellPlainObject contains many strings, images and so on ...
theses cellPlainObject are storred in a N...
I currently have a 32-bit .Net application (on x86 Windows) which require lots of memory. Recently it started throwing System.OutOfMemoryException's.
So, I am planning to move it to a x64 platform as 64-bit process. So will this help with the out of memory exceptions. I was reading this article from MSDN
Memory limits for Windows
So, ...
debugTestLabel.text = [[NSString alloc] initWithFormat:@"%g, %g", @"Testing String", @"I am another"];
I alloc the String and immediately assign to the text, but I don't know whether the string can auto release or not.
...