Main Site Documentation

Out of Memory


#1

Im trying to GetBitmap() on a bitmap resource that is about 900kb. Everytime I try I get “OutOfMemory” exception. What I dont get is that when i run Debug.GC(true) it shows that I ahve 13mb of avail ram. Any help would be appreciated.


#2

Try running the same code in release w/o the debugger attached.

Debugger = Evil (as far as memory goes)


#3

That didnt work either. Any other suggestions?

Also 16mb of RAM on the cobra couldnt handle debugging and a 1mb picture?


#4

Large images sit on a separate heap, read this http://wiki.tinyclr.com/index.php?title=Custom_Heap


#5

Is the custom heap used in a called RLP?


#6

Right, the custom heap. Forgot about that; blame it on the fever. ???


#7

RLP and custom heap are totally different things and not related.


#8

I know that, but do RLP procedures have access to all the available memory or is it boxed in like the clr?


#9

Yes, please see RLP extension for memory allocation