Hi,
I'm using a UISplitViewController where when the Master VC is loaded (UITableViewController) and a table cell is pressed, it creates the Detail VC (UIViewController with two UIWebViews):
@implementation MasterVC
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UIViewController *de...
Hi All,
I have my website written using ASP.NET. If I let it, the website will hit about 2gb physical memory used within about 3-4 days which to me sounds really bad. At the moment, I have told IIS to restart the process when it hits 500mb just to keep it under wraps but I would like to try and track down the problem.
When creating a ...
Hi,
Can anybody explain why this tiny app's memory usage keeps increasing ?
static class Program
{
private static System.Timers.Timer _TestTimer;
[STAThread]
static void Main()
{
_TestTimer = new System.Timers.Timer();
_TestTimer.Interval = 30;
_TestTimer.Elapsed += new System.Timers.ElapsedEven...
We have an array that is oversized for alignment purposes, such that off by one errors are not caught by the usual mechanisms.
Is it possible to protect a small, arbitrary region (16 bytes at the beginning and end of an array) in Windows, such that it causes an access violation? Language is C++.
...
Coming from the Symbian world, I'm used to using the heap as much as possible to avoid running out of stack space, especially when handling descriptors. CBase derived classes were always dynamically allocated on the heap, since if they were not, their member variables would stay uninitialized. Does the same convention apply to QObject-de...
I know about mechanism about outlet connection during loading NIB, but I have no sure. So I'm asking some questions to ensure my knowledge. I assumed these things all true, but It's hard to find mentioning about these on reference documentation. Please point wrong and right things.
I have an IBOutlet defined like this: (Of course it's n...
Hi All,
As some may be aware, I recently posted about high memory usage on my website and I have an idea that my thumbnailer may have something to do with this as I am not actively disposing of the instance when it has been used due to my misunderstanding how it works.
I am now looking at my code for the thumbnailer and would like som...
First let me start off by saying I do not believe I am leaking, but I could be wrong. My issue is that at after my app is done loading I have about 10 - 20 mb of Live bytes according to object alloc, which I am fine with. However, according to activity monitor my process allocation is about 70 - 80 mb, which needless to say is a bit high...
In my code, I use a singleton object as a central point in my app to load and cache images the app frequently needs, so I don't have to do resource-intensive memory allocation each time I load an image.
But there are times during the execution of my app where memory usage gets intense and I would like to release the cached image data. C...
Hi guys,
I've been working at my university this summer in an image/video lab. Just recently, my professor gave me a program written by a grad student who just left the program to "fix up", because it was "giving some errors."
The project was written in C++ (seems to be a recurring bad sign in student code). I opened the project in VS0...
On a number of view controllers in my app, it seems to get overreleased such that when I pop the view controller (i.e. the user hits "back"), I get a crash. I am using fairly standard code to declare and load the UIViewController:
MyViewController *myVC = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil];
NSM...
I am allocating an NSArray in viewDidLoad (firstly is that alright to do, like is it good pratice?) but where do I release it? In ViewDidUnload, dealloc or didRecieveMemoryWarning?
(also should I message it to release, or set it to nil, or empty the array or a combination?)
...
I have a java applet that loads up a scroll view that you can add several thousand views to, everything works fine. If I close that browser window and open a new window and view my applet again and start adding views it eventually runs out of memory. It seems like garbage collection didn't occur when I closed the window before:
a: why...
I'd like to be able to detect how much graphics memory is available. I've written a C++ project that uses DirectShow.
Some ancient gfx cards can't do video properly and fall back to four colour mode. If I try to allocate more than one video window, the program just crashes on these machines without warning.
This is less than elegan...
From Apple documentation about Memory Management :
The only places you shouldn’t use accessor methods to set an instance variable are in init methods and dealloc. To initialize a counter object with a number object representing zero, you might implement an init method as follows:
To allow a counter to be initialized with a count...
We are experiencing Memory issues every time we update the dll's using SVN. The IIS process(w3wp.exe) takes up more than 1GB of memory which is usually 300 - 400 Mb under normal conditions. So every time we update dll's we had to recycle the application pool. Is it because the old dlls are still cached even after updating them? Do we nee...
I am not sure how the user defined class objects are garbage collected. Do I need to implement IDisposable interface on every class and call the dispose() method on it to free the memory?
...
Hi all,
I am trying to adapt the underlying structure of plotting code (matplotlib) that is updated on a timer to go from using Python lists for the plot data to using numpy arrays. I want to be able to lower the time step for the plot as much as possible, and since the data may get up into the thousands of points, I start to lose valua...
So I decided to dwelve a bit within the pesty C++.
When I call the delete function on a pointer to a simple class that I created I'm greeted by a Debug Assertion Failure -Expression:_BLOCK_TYPE_IS_VALID(pHead->nBlockUse). I assume this is because I've handled the string manipulation wrong and thus causing memory corruption.
I created ...
Hi,
What does the address in a pointer refer to, real address location in main memory or virtual address. Can it be configured.
And if it refers to virtual address , does Memory manager needs to convert this address to real address everytime it is accessed
...