Hi!
The short question is: what can be the problem?
The overall memory usage of my program (shown by task manager) is almost the same all the time (near 40 minutes) it's running, and I have near 2G more free memory.
Running on win2003r2.
Memory allocation/freeing is high enough - I need to interact with other software, preparing dat...
Looking for resources having objective technical details about application pools and .NET memory management, for the purpose of configuring many apps.
Many suggestions exist but I am specifically looking for reasons to back up any suggestions.
...
Here is what I am working with:
char* qdat[][NUMTBLCOLS];
char** tdat[];
char* ptr_web_data;
// Loop thru each table row of the query result set
for(row_index = 0; row_index < number_rows; row_index++)
{
// Loop thru each column of the query result set and extract the data
for(col_index = 0; col_index < numb...
Since C# uses Garbage Collection. When is it necessary to use .Dispose to free the memory?
I realize there are a few situations so I'll try to list the ones I can think of.
If I close a Form that contains GUI type object, are those objects dereferenced and therefore will be collected?
If I create a local object using new should I .Di...
Hi,
I have some big problem with an NSMutableArray I'm filling with objects in a database. I'm using [appDelegate.myArray addObject:myObject], then somehow the object gets crushed in the memory, I don't know why, I didn't release anything...
Thanks for your answers (and sorry for my poor english xD)
...
Hello all.
I'm trying to understand memory management stuff in Objective-C.
If I see the memory usage listed by Activity Monitor, it looks like memory is not being freed (I mean column rsize). But in "Object Allocations" everything looks fine.
Here is my simple code:
#import <Foundation/Foundation.h>
int main (int argc, const char * a...
I have CString cs on C++ side and IntPtr ip on C# side which contains value of cs through marshaling mechanism.
Then, I simply get needed String as Marshal.PtrToStringAnsi(ip) and everything works fine, but I am wondering should I and if should, how can I delete unmanaged memory occupied by ip, i.e. cs?
...
The official documentation tells me I've to do these 3 things in order to manage the my memory for "nib objects" correctly.
@property (nonatomic, retain) IBOutlet UIUserInterfaceElementClass *anOutlet;
"You should then either synthesize the corresponding accessor methods, or implement them according to the declaration, and (in iPho...
Hey all, putting the finishing touches on a project of mine so I figured I would run through it and see if and where I had any memory leaks. Found and fixed most of them but there are a couple of things regarding the memory leaks and object alloc that I am confused about.
1) There are 2 memory leaks that do not show me as responsible. ...
As far as I know, ADS v.10 tries to keep result of query in memory until it is a quite huge. The same should be true for the __output table and for temporary tables. When the result becoming large, swapping stated.
The question is what memory limit is set for a query, a worker, whatever? Could this limit be configured?
Thanks.
...
Hello,
My code started to behave at least strange. I have a view controller NewPostUIViewController, from within which I display modally SettingsUIViewController which contains a table view. In the cell of the table view I have text fields. For each of the text fields I have text fields delegates.
In the - (BOOL)textFieldShouldBeginEdit...
Instead of
int *i = new int;
...
delete i;
could I just do this?
int i;
...
delete &i;
...
So, I'm wanting to get a better grasp on how string literals in C++ work. I'm mostly concerned with situations where you're assigning the address of a string literal to a pointer, and passing it around. For example:
char* advice = "Don't stick your hands in the toaster.";
Now lets say I just pass this string around by copying pointer...
I get the following exception when I try to "find and replace" in a Word 2007 working on Windows Vista or Windows 7.
System.AccessViolationException:
Attempted to read or write protected
memory. This is often an indication
that other memory is corrupt. at
Microsoft.Office.Interop.Word.Find.Execute(Object&
FindText, Objec...
Is it an error to call dealloc on a UIViewController from a background thread? It seems that UITextView (can?) eventually call _WebTryThreadLock which results in:
bool _WebTryThreadLock(bool): Tried to obtain the web lock from a thread
other than the main thread or the web thread. This may be a result of calling
to UIKit from a s...
When working sometimes ago on an embedded system with a simple MMU, I used to program dynamically this MMU to detect memory corruptions.
For instance, at some moment at runtime, the foo variable was overwritten with some unexpected data (probably by a dangling pointer or whatever). So I added the additional debugging code :
at init, t...
I am implementing a dynamic programming algorithm for the knapsack problem in Java. I declare the array and then initialize its size to be [number of objects][capacity of knapsack].
When my number of objects or my capacity gets too large, I get a memory error because I run out of space on the heap. My questions is: If I delete rows...
Can I use free for const char*? Will this cause any problems?
...
In almost all of the books I read and examples I go through I see pointers initialized this way. Say that I have a class variable NSString *myString that I want to initialize. I will almost always see that done this way:
-(id)init {
if (self = [super init]) {
NSString *tempString = [[NSString alloc] init];
self.myS...
I have been banging my head against the wall for a couple days and need some help. I have a feeling that I am doing something really silly here, but I cannot find the issue. This is the controller for a table view. I put the SQL in line to simplify it as part of the troubleshooting of this error. Normally, it would be in an accessor ...