Ok, This question is not exactly a programming question but this is what can really make programming more practical and easy to implement.
This question is coming out beacuase each-time I write int c=10; or MyClass objMyClass=new MyClass(); I want to see where in the memory the value has been created (Though We can see the address as a...
I wrote an app compiled against ios 3 that would easily allocate up to 100 mb of memory for image processing purposes. However, when that same app was compiled against the ios 4 sdk, I found that it crashed when many apps were open in the background. When I kill the background apps, the application then runs fine. I reduced the memory us...
I would like to know how much free memory there is on my device before allocating buffers. Is this possible? I know there's CL_DEVICE_GLOBAL_MEM_SIZE for total memory, and CL_DEVICE_MAX_MEM_ALLOC_SIZE for max size of a single object, but I would like to know the current memory state.
As it stands I'm probably going to have to use OpenGL...
Hi,
I used the solution here http://stackoverflow.com/questions/2863626/using-cgcontext-to-display-a-sprite-sheet-iphone to create an animated spritesheet class (A child of UIImageView) that takes in a huge (200+) frame spritesheet and animates it using a firing NSTimer.
I was wondering if anyone had any ideas how to control the result...
Hi All,
I'm getting out of memory exceptions from the following function when RowCollection is 50000+ and thus i need to make it more memory efficient. The function is simply needs to construct a comma separated string of the row indexes stored in RowCollection. Can anyone spot any obvious memory hungry operations in the following?
N....
Hi, I have an typo3 syte. And after a hack there is somenthing strange. The site is moved on a new server. But when I start the site, then anythig loops or does somethings, that my 4GB ram is used to 100% in 30 seconds. Does anyone has an indea where to look, or how to see where the problem is? Is there any software where I can install t...
if I have a property such as
@property (nonatomic, retain) NSArray *myArray;
and then I set it as follows
[self setMyArray:[[NSArray alloc]init]];
do I have a retain count of 2?
When I release it in my dealloc method will there still be a retain count of 1?
...
Hi Guys,
I have a Freescale's i.MX515EVK, an ARM Cortex-A8/Ubuntu platform with me, unfortunately the Linux kernel on the board is not supporting some of the well known profilers such as Oprofiler or Zoom Profiler(Zoom supports ARM processors, but it internally, uses Oprofiler driver) which give very detailed reports about the cache uti...
I'm currently creating a windows service that will do some update on the database and send email on a timely manner. My issue is that as i run the service, the memory usage increases by 8kb (starts by 18,000kb+) and I'm not sure if it is normal as it would increase after some months/years. I removed any calls from database as well as sen...
Hello, I use BackGroundWorker and ProgressBar.
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
BackgroundWorker worker = sender as BackgroundWorker;
e.Result = MyMethod((int)e.Argument, worker, e);
}
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
progr...
What is the most effective (performance-wise) and clean way to perform the transformation of taking up to 500 XML files, sized up to 50 Mb each and making a single String out of them. All files are XML and need to keep the formatting etc.
I'm currently doing the reading using XMLEventReader , and then XMLEventWriter,reading one event at...
I have created WCF application which is running on Windows Service. It was installed using Windows Installer. I have followed procedure mentioned in following article for same.
http://msdn.microsoft.com/en-us/library/bb332338.aspx#msdnwcfhc_topic4
Most WCF properties are kept as default for net.tcp protocol, per call instance and so on...
I have an optimization problem I want to solve. You have some kind of data-structure:
data Foo =
{ fooA :: Int
, fooB :: Int
, fooC :: Int
, fooD :: Int
, fooE :: Int
}
and a rating function:
rateFoo :: myFoo -> Int
I have to optimize the result of rateFoo by changing the values in the struct. In this specific case, I dec...
in my ASP.NET application, I am creating a new class to handle errors in my application and send them to a webservice which will save it in a table.Is there anything wrong in having a Property of type System.Exception class, in my new class ? Currently i have properties like "MethodName","ClassName","InnerException","StackTrace".When an ...
I'm writing some grading software with GWT. I want to handle, you know, a list of students, a list of assignments, and scores for students x assignments. Maybe up to 40x100 assignments, each with a name, a date, a score, etc. And then I'd like to have multiple courses. So, x7.
All of a sudden this is looking like over a megabyte of ...
I'm used to debug my code using ghci. Often, something like this happens (not so obvious, of course):
ghci> let f@(_:x) = 0:1:zipWith(+)f x
ghci> length f
Then, nothing happens for some time, and if I don't react fast enough, ghci has eaten maybe 2 GB of RAM, causing my system to freeze. If it's too late, the only way to solve this pr...
I would like to restart Windows Service after memory consumption of it reaches certain limit.
Scenario:
I have WCF Service hosted on Windows Service. WCF service keeps on increasing in memory consumption after every call without releasing significantly as seen from Task Manager. It results in OutOfMemory exception.
I would like to res...
My question is about memory use and objects in actionscript 2. If I have a class definition:
class test1{
public function one(){trace("Hello");}
public function two(){trace("World");}
}
And a second class definition:
class test2{
static public function one(){trace("Hello");}
static public function two(){trace("Worl...
Comining from my question [1] where I was explained how to derive 8078 bytes of data per page in MS SQL Server.
If to calculate the number of bytes per page used for data (without overhead) storage of only one row with one column of non-indexed fixed size type record
(according to [1], i.e. [2]),
then I come to 8087 bytes (per page)...
In C# if i use the following code
Dictionary<int,object> dictionary = new Dictionary<int, object>();
dictionary.Add(1,null);
dictionary.Add(2,new object());
dictionary[2] = null;
How much memory is being allocated?
does each object reference in the dictionary (dictionary[1], dictionary[2]) takes a pointer size (32 or 64 bit) on the he...