Top "New-operator" questions

new is a language construct that dynamically allocates memory from free store and initialises the memory using the constructor.

Bad allocation exceptions in C++

In a school project of mine, I was requested to create a program without using STL In the program, I …

c++ exception mingw new-operator allocation
How to Edit or Add a New Row in jqGrid

My jqGrid that does a great job of pulling data from my database, but I'm having trouble understanding how the …

jqgrid new-operator row add
Differences between new Integer(123), Integer.valueOf(123) and just 123

Recenlty I saw code (Java) like this: myMethod(new Integer(123)); I am currently refactoring some code, and there is a …

java integer new-operator value-of
Java: newInstance of class that has no default constructor

I'm trying to build an automatic testing framework (based on jUnit, but that's no important) for my students' homework. They …

java reflection constructor new-operator instance
What is difference between instantiating an object using new vs. without

In C++, Aside from dynamic memory allocation, is there a functional difference between the following two lines of code: Time …

c++ constructor new-operator
What's the differences between VirtualAlloc and HeapAlloc?

There are lots of method to allocate memory in Windows environment, such as VirtualAlloc, HeapAlloc, malloc, new. Thus, what's the …

winapi memory heap new-operator
How to allocate thread local storage?

I have a variable in my function that is static, but I would like it to be static on a …

c++ linux multithreading new-operator thread-local-storage
C++ Object without new

this is a really simple question but I havn't done c++ properly for years and so I'm a little baffled …

c++ new-operator
Can you inherit a sub new (Constructor) with parameters in VB?

In the code below I receive the compile error Error Too many arguments to 'Public Sub New()' on the …

vb.net inheritance constructor new-operator
How do I override, not hide, a member variable (field) in a C# subclass?

I want this to tell me the Name of both ItemA and ItemB. It should tell me "Subitem\nSubitem", but …

c# variables new-operator overriding