Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Assigning an icon to Windows Application Pin
Pr@teek B@h!10-Dec-08 5:34
Pr@teek B@h!10-Dec-08 5:34 
GeneralRe: Assigning an icon to Windows Application Pin
Luc Pattyn10-Dec-08 6:21
sitebuilderLuc Pattyn10-Dec-08 6:21 
GeneralRe: Assigning an icon to Windows Application Pin
Pr@teek B@h!10-Dec-08 7:37
Pr@teek B@h!10-Dec-08 7:37 
Questioncombo box Pin
kirandilip10-Dec-08 4:14
kirandilip10-Dec-08 4:14 
AnswerRe: combo box Pin
EliottA10-Dec-08 4:25
EliottA10-Dec-08 4:25 
AnswerRe: combo box Pin
Priya Prk10-Dec-08 8:50
Priya Prk10-Dec-08 8:50 
QuestionFrom ILGenerator and emit to fixed? [modified + solution] Pin
Ravadre10-Dec-08 4:12
Ravadre10-Dec-08 4:12 
GeneralRe: From ILGenerator and emit to fixed? Pin
Luc Pattyn10-Dec-08 5:07
sitebuilderLuc Pattyn10-Dec-08 5:07 
Hi,

could it be the "int32& pinned p" line is actually a mistake in the disassembly process, and
"int32* pinned p" is what is meant from the start? What does the disassembly show for your own code?

IMO you can force the GC to move things using a scenario like this one:
- create a class A that takes a lot of memory, say 50KB, but well below the "huge object" threshold (which is around 75KB IIRC).
- create a second class B that takes slightly more memory.
- instantiate a lot of objects A, keeping their references somewhere, say in a List, until allocating a few more would make you run out of memory.
- remove half (i.e.every second) of those objects
- now start instantiating the same number of objects from class B.

Such scenario is bound to call the GC, which will have to compact (i.e. move most of the A objects) to fill the order. You can fix your class A objects, or alternatively you can replace class A by an array of appropriate size.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


GeneralRe: From ILGenerator and emit to fixed? Pin
Ravadre10-Dec-08 5:49
Ravadre10-Dec-08 5:49 
AnswerRe: From ILGenerator and emit to fixed? Pin
Simon P Stevens10-Dec-08 5:11
Simon P Stevens10-Dec-08 5:11 
GeneralRe: From ILGenerator and emit to fixed? Pin
Ravadre10-Dec-08 5:47
Ravadre10-Dec-08 5:47 
GeneralRe: From ILGenerator and emit to fixed? Pin
Simon P Stevens10-Dec-08 5:55
Simon P Stevens10-Dec-08 5:55 
GeneralRe: From ILGenerator and emit to fixed? Pin
Ravadre10-Dec-08 6:01
Ravadre10-Dec-08 6:01 
QuestionWidows helper and CHM Pin
half-life10-Dec-08 4:01
half-life10-Dec-08 4:01 
AnswerRe: Widows helper and CHM Pin
EliottA10-Dec-08 4:28
EliottA10-Dec-08 4:28 
GeneralRe: Widows helper and CHM Pin
half-life10-Dec-08 6:55
half-life10-Dec-08 6:55 
GeneralRe: Widows helper and CHM Pin
EliottA10-Dec-08 6:57
EliottA10-Dec-08 6:57 
QuestionFormat of decimal numbers [modified] Pin
Diving Flo10-Dec-08 2:00
Diving Flo10-Dec-08 2:00 
AnswerRe: Format of decimal numbers Pin
Mirko198010-Dec-08 2:24
Mirko198010-Dec-08 2:24 
GeneralRe: Format of decimal numbers Pin
Diving Flo10-Dec-08 2:35
Diving Flo10-Dec-08 2:35 
Questionany API to make flash file conversion? Pin
George_George10-Dec-08 1:52
George_George10-Dec-08 1:52 
AnswerRe: any API to make flash file conversion? Pin
Lev Danielyan10-Dec-08 2:20
Lev Danielyan10-Dec-08 2:20 
GeneralRe: any API to make flash file conversion? Pin
George_George10-Dec-08 2:23
George_George10-Dec-08 2:23 
GeneralRe: any API to make flash file conversion? Pin
Lev Danielyan10-Dec-08 2:28
Lev Danielyan10-Dec-08 2:28 
GeneralRe: any API to make flash file conversion? Pin
George_George10-Dec-08 2:38
George_George10-Dec-08 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.