allocation
[C]Dynamic allocation memory of structure, related to GTK
I have following structure: typedef struct { GtkWidget* PoziomaLinijka; GtkWidget* PionowaLinijka; GtkWi开发者_如何学Pythondget* Label1;[详细]
2023-02-03 02:49 分类:问答In what cases should I use memcpy over standard operators in C++?
When can I get better performance using memcpy or how do I benefit from usi开发者_如何学运维ng it?[详细]
2023-02-01 23:38 分类:问答c++ static-only class allocation
I know how to prevent heap allocation of a class (make new and new[] private). I know how 开发者_开发知识库to prevent stack and static allocations (make destructor private).[详细]
2023-01-29 22:10 分类:问答C nodes - how to not overwrite the allocated memory space but create new one (homework issue)
Company struct is defined as follows: typedef struct company { char* company_name; int employee_counter;[详细]
2023-01-29 21:20 分类:问答How to persist NSColor? There is no alloc for it such as e.g. UIColor alloc
I am trying to port working iPhone code to the Mac (iOS to OSX - I believe?) The working iPhone version is[详细]
2023-01-27 06:10 分类:问答using alloc and init
We know about the complete pattern of alloc/init that alloc and init must be combined. NSObject *myObj = [[NSObject alloc] init];[详细]
2023-01-26 18:33 分类:问答(Image Resizing) Exhausting memory every time, even when an image instance is not created
I am trying batch resize a bunch of images (~220). I am getting: (everytime) Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 19520 bytes) in C:\\xampp\\htdocs\\jason\\[详细]
2023-01-23 04:06 分类:问答Manipulating pointers using C
While working with pointers in C, I have been experiencing a very incosistent result, I am working with a token which is a byte string which i need to make a directory path.[详细]
2023-01-23 03:58 分类:问答Matrix: Memory allocation question
I\'m doing a program that reads from a text file in order to determine the size of the matrix (rows and cols) and respective content of the matrix.[详细]
2023-01-23 00:46 分类:问答C Memory Overflow (v2)
EDIT: Updated code with new Pastebin link but it\'s still stopping at the info->citizens[x]->name while loop. Added realloc to loops and tidie开发者_开发知识库d up the code. Any more comments would be[详细]
2023-01-22 09:04 分类:问答