¡@

Home 

c# Programming Glossary: allocating

Garbage Collection not happening even when needed

http://stackoverflow.com/questions/10016541/garbage-collection-not-happening-even-when-needed

fit in the available free space. 1 Somewhat commonly when allocating a chunk of memory would cause an OutOfMemoryException a full..

Read content of RAR files using C#

http://stackoverflow.com/questions/1025863/read-content-of-rar-files-using-c-sharp

Initialize a Jagged Array the LINQ Way

http://stackoverflow.com/questions/1099731/initialize-a-jagged-array-the-linq-way

colCount and assigning references to that intsead of allocating a new array for each row. Is there a way to do this without..

Force garbage collection of arrays, C#

http://stackoverflow.com/questions/1104352/force-garbage-collection-of-arrays-c-sharp

quickly enough and leaves the old arrays allocated before allocating the new ones which causes the OOM whereas if they where freed..

Best practices: throwing exceptions from properties

http://stackoverflow.com/questions/1488472/best-practices-throwing-exceptions-from-properties

easily be calling code that does. Even the simple act of allocating a new object like a string could result in exceptions. You should..

Do you use curly braces for additional scoping? [closed]

http://stackoverflow.com/questions/249009/do-you-use-curly-braces-for-additional-scoping

if you want to use the same variable name and save on deallocating and allocating I think some compilers can optimise on this Or.. to use the same variable name and save on deallocating and allocating I think some compilers can optimise on this Or is it better..

allocating “unmanaged” memory in c#

http://stackoverflow.com/questions/2648560/allocating-unmanaged-memory-in-c-sharp

&ldquo unmanaged&rdquo memory in c# I'm writting a program..

Why can't I define a default constructor for a struct in .NET?

http://stackoverflow.com/questions/333829/why-cant-i-define-a-default-constructor-for-a-struct-in-net

1000 The CLR is able to do this very efficiently just by allocating the appropriate memory and zeroing it all out. If it had to..

StringBuilder for string concatenation throws OutOfMemoryException

http://stackoverflow.com/questions/363680/stringbuilder-for-string-concatenation-throws-outofmemoryexception

while a StringBuilder has a different algorithmn for allocating memory. It's more aggressive and will likely allocate more memory..

Use native HBitmap in C# while preserving alpha channel/transparency

http://stackoverflow.com/questions/4627376/use-native-hbitmap-in-c-sharp-while-preserving-alpha-channel-transparency

of the MSDN Library says The caller is responsible for allocating and freeing the block of memory specified by the scan0 parameter..

Get ListView items from other windows

http://stackoverflow.com/questions/4857602/get-listview-items-from-other-windows

containing the ListView control. You do that by allocating a block of memory in the target process that is large enough..

How do you explain C++ pointers to a C#/Java developer?

http://stackoverflow.com/questions/5174725/how-do-you-explain-c-pointers-to-a-c-java-developer

collection built in. C objects. C has three ways of allocating objects Static Storage Duration objects. These are created at..

Is C# really slower than say C++?

http://stackoverflow.com/questions/5326269/is-c-sharp-really-slower-than-say-c

terms of overall speed. Attempting to compare the speed of allocating and or freeing memory by itself is pretty nearly guaranteed..

How to get IntPtr from byte[] in C#

http://stackoverflow.com/questions/537573/how-to-get-intptr-from-byte-in-c-sharp

use Marshal.PtrToStructure but that would still require allocating unmanaged memory. Edit Also as Tyalis pointed out you can also..

In C#, why is String a reference type that behaves like a value type?

http://stackoverflow.com/questions/636932/in-c-why-is-string-a-reference-type-that-behaves-like-a-value-type

of the CLR as of yet stored on the stack. Stack allocating strings would break all sorts of things the stack is only 1MB..

How to parse a text file in C# and be io bound?

http://stackoverflow.com/questions/7153315/how-to-parse-a-text-file-in-c-sharp-and-be-io-bound

magnitude adding about 30ms over just counting lines while allocating only a single buffer on the heap. WARNING You need to realize..

Is there a performance hit for creating Extension methods that operate off the object type?

http://stackoverflow.com/questions/7652118/is-there-a-performance-hit-for-creating-extension-methods-that-operate-off-the-o

type will be boxed. That creates a performance penalty of allocating the box and doing the copy plus of course later having to garbage..

Explicitly freeing memory in c#

http://stackoverflow.com/questions/823661/explicitly-freeing-memory-in-c-sharp

the OS. The CLR manages memory at the OS level and since allocating and freeing memory isn't free there's no reason to free each..

What is the return type of a constructor in C#?

http://stackoverflow.com/questions/8893959/what-is-the-return-type-of-a-constructor-in-c

the instance. It is the new operator who is responsible of allocating memory passing a reference of the newly allocated object to..

How to recursively list all the files in a directory in C#?

http://stackoverflow.com/questions/929276/how-to-recursively-list-all-the-files-in-a-directory-in-c