Hi,
it's being a long time since i'm trying to find out the truth about static classes. my point is: value types are allocated in stack, reference types in heap, when using the new operator. but a nature of a static class is that you can't make an instance of it, and sure it's not a value type. so i have a question when and where does th...
Dual Search(8896,0xb014b000) malloc: *** error for object 0x5a1e0f0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Thanks!
...
I am running into a strange issue I've been able to track down somewhat but I still can't see the cause. Maybe someone here can shed some light?
I'm running on a PowerPC processor on top of VxWorks 5.5 developing in C++ with the PPCgnu604 toolchain.
I have a class like so:
class MyClass
{
public:
void run( void );
private:
...
I'm going to lay this out as simply as I can while still telling all pertinent details. I'll list site details below:
http:///www.bubblegenius.com (front page currently locked off)
You can access the site inside and see exactly what's happening by going to http://www.bubblegenius.com/soap.html.
A client of mine ran a Magento-run ecomme...
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...
Hi,
I have a class where I use this to initialize a void* pointer. But the problem is, when I pass an instance of that class by value, the pointer will not change to the new address on the stack. So, I thought to override the copy constructor to reassign the pointer with the new address of this. But I need variables to call the super-cl...
I've read about Small-Object Allocation in "Modern C++ Design". Andrei Alexandrescu argues that the general purpose operators (new and delete) perform badly for allocating small objects.
In my program there are lot of objects created and destroyed on the free store. These objects measure more than 8000 bytes.
What size is considered sm...
I wanted to load and display image(.jpg,.png) having large size e.g. 1800x1200 or 2000x1800 (width x height).
If I display such large size images (1800x1200 or 2000x1800) in UIImageView, it also consume lot of memory and application is getting crashed.
Also as per Apple's documentation (http://developer.apple.com/iphone/library/documenta...
Hi, I had that question before, tried as answered, but still it does not work.
Before I allocated with:
imageArray_danceright = [[NSArray alloc] initWithObjects:
I came adviced to do like bellow, but now it crash immediatly after second anim is called:
//init areas:
imageArray_stand = [NSArray arrayWithObjects:
[UIImage imageWit...
I posted another question similar. This is my old code as some ppl say it would be even better, but there i didnt found a solution to release the allocated memory.
imageArray_danceright = [[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"FrankieDanceRetime_0001.jpg"],
.. 40 images
[UIImage imageNamed:@"FrankieDanceRetime_00040.jp...
Hi,
I need to pass a double [][6] to a method. But I don't know how to create that two-dimensional array.
6 is a fixed size (or a "literal constant", if my terminology is right), which the method accepts. I was trying something like this, but without success...
double *data[6] = new double[6][myVariableSize];
So, the method really ...
I have an application that allocates memory with 'new' and frees them with 'delete' in some parts of the code.
The problem is that whenever it exceeds the memory limit of the system (let's say 2GB), Windows sends a Kill signal to the process.
I think it is not usual since it should use the swap space(I think in windows it is called virtu...
Is it somehow possible to use boost::object_pool<>::construct with non const references?
The following snippet doesn't compile (VS2010):
foo::foo(bar & b)
{
}
static boost::shared_ptr<foo> foo::create(bar & b)
{
return boost::shared_ptr<foo>(foo_pool.construct(b),
boost::bind(& boost::object_pool<foo>::destroy, & foo_pool, _1));...
OK, so I have my main.m program code, and mvds suggested I free the allocated memory I borrowed from my class when I created a new instance.
For some reason, when I attempt to free the memory using
[converter free];
It gives me a warning saying that converter may not respond to -free, and once I finish my program, it spits out a bun...
I am setting the frame property of a UIImageView at a frequency of about 30Hz. Instruments shows that QuartsCore is allocating (and releasing) 88 bytes at this frequency. The following code causes this issue.
CGPoint point = vectorToCircle(vec) ;
CGRect dotFrame = self.dot.frame ;
dotFrame.origin.y = (center.y - kDotHalfHeight) - point...
Hello,
I've tried several approaches to make a one-page native app using Phonegap, and am seeking some general advice on troubleshooting.
First approach:
It's basically a bunch of different pages and sub-pages loaded with jquery into containers that live on the index page. So, no page loads, just loading page fragments from pages in...
Hi,
I ran the memory allocation tool and found that the "overall bytes" starts at 3.0 MB and reaches more than 120 MB when I navigate through screens (consist of UIViewControllers, buttons ...etc). And also, the number of "living bytes" shows around 20~25MB and the application gets crash at that point. Here are some points about my app...
I am trying to learn assembly language and I need clarification on something. Please correct me if I am wrong on any of this since I don't know much about assembly.
All the tutorials I watch have the variables of assembly programs assigned to a memory address like 0x0000, and I can understand that you must manually assign memory addres...
I have a Java application running on Linux with Xmx set to 1200M
When I check the process in TOP, I see numbers like:
VIRT = 1412m
RES = 237m
SHR = 58m
Inside the Java application, I am printing the Runtime.getRuntime().totalMemory() every minute and the number there shows:
totalMemory() = 108M
Why such a big difference between ...
I have a system which cannot provide more than 1.5 Gb for Java process. Thus i need an exact way to specify java process settings, including all memory kinds inside java and possible fork.
One specific java process and system to illustrate my problem:
My current environment is java 1.6.0_18 under Ubuntu Linux 9.10.
I start large java...