Top "Alloc" questions

What does it mean double free detected in tcache 2 while using mpz?

I use this program to store a mpz value but when I add a 0 ( 400000000000000000000000000000000000000 instead of 40000000000000000000000000000000000000 -> 38 0s instead …

c++ memory rsa gmp alloc
iOS error: No visible @interface for 'xxxx' declares the selector 'alloc'

Here is my TextValidator class: //TextValidator.h #import <Foundation/Foundation.h> @interface TextValidator : NSObject - (BOOL) isValidPassword:(NSString *)…

ios objective-c alloc
is it necessary to call pointer = NULL when initializing?

when I create a pointer to certain struct, do I have to set it to NULL, then alloc it then …

c pointers alloc
Lazy instantiation in Objective-C/ iPhone development

Quick question... Well I understand that all properties start out as nil in Objective-C and that sending a message to …

objective-c properties initialization lazy-initialization alloc
Is a malloc() needed before a realloc()?

Since I had read realloc will act as malloc if the size pointed is 0, I was using it without malloc(), …

c memory-management malloc alloc
What's the advantage of using std::allocator instead of new in C++?

I've just read about std::allocator. In my opinion, it is more complicated to use it instead of using new …

c++ heap alloc
what is difference between alloc and allocWithZone:?

From forum discussion , seem like that the big difference is performance factor, allocWithZone: will alloc memory from particular memory area, …

objective-c memory-management alloc
Objective-C asking for alloc on swift class

Some small steps to begin wrapping my head around Swift. I've basically ported an old class that simply finds the …

objective-c swift alloc
Automatic Reference Counting Issue: Assigning retained object to unsafe_unretained variable; object will be released after assignment

I'm getting this warning "Automatic Reference Counting Issue: Assigning retained object to unsafe_unretained variable; object will be released after …

objective-c object automatic-ref-counting alloc
why terminate called after throwing an instance of 'std::bad_alloc'?

Every 1 second, function works. my system the linux. Runs suddenly dies. -----global------- static int arrayNum[33000]; ------------------- function(){ unsigned short int** …

c++ qt memory alloc