allocation
Finding memory allocation error
I\'m getting memory allocation errors (and a subsequent crash) on the following simplified code: std::wstring myKey = L\"str_not_actually_constant\";[详细]
2022-12-16 22:00 分类:问答Java object creation and memory size
I am tr开发者_运维技巧ying understand about the size that a Java object will be allocated with when created using a new operator.[详细]
2022-12-16 21:23 分类:问答Java unrequested memory allocation
The following piece of code observed under JConsole shows a constant increase of the heap size. The heap reach a maximum of 25mb and then the GC runs and decease the he开发者_开发知识库ap size to almo[详细]
2022-12-16 15:46 分类:问答Dynamic Allocation of buttons in C Builder 6?
I want 开发者_StackOverflow社区to make a game of TicTacToe. WhenI resize the window I want to appear more buttons on the interface. From a matrix of 3x3 to 4x4 etc up to 9x9, depending on how much I r[详细]
2022-12-15 20:28 分类:问答a library forces global overloads of new/delete on me!
I\'m maintaining a plugin (implemented as a dll) for a big closed source application. This has been working fine for years. However, with the latest update to it\'s SDK the vendor overloaded global op[详细]
2022-12-15 17:40 分类:问答Looking for resource management/allocation system
What I need is a system I can define simple objects on (say, a \"Server\" than can have an \"Operating System\" and \"Version\" fields, alongside other metadata (IP, MAC address, etc)).[详细]
2022-12-15 06:25 分类:问答How is memory allocated for a static multi-dimensional array?
All, This has been bugging me for a while now. In C\\C++( i guess java and .NET as well) we do not ha开发者_JAVA百科ve to specify the row index in a multi-dimensional array.[详细]
2022-12-13 02:02 分类:问答alloc/init and the setting of instance variables
It is my understanding that, in addition to allocating memory, alloc sets all instance variables (with the exception of the isa variable) to zero or to the equivalent type for zero, such as nil, NULL,[详细]
2022-12-12 22:50 分类:问答JVM and CLR allocation optimization
Do the JVM and .NET VM allocate objects on the stack when it is obvious to the runtime that a开发者_StackOverflow社区n objects lifetime is limited to a certain scope?The JVM does this.It can actually[详细]
2022-12-12 22:29 分类:问答Passing around fixed-size arrays in C++?
Basically I\'d like to do something like that: int[3] array_func() { return {1,1,1}; } int main(int argc,char * argv[])[详细]
2022-12-12 07:13 分类:问答