Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: insert picture in listbox Pin
Nick Parker19-Oct-04 15:59
protectorNick Parker19-Oct-04 15:59 
GeneralCompare lines in two large txt files Pin
sverre.andersen19-Oct-04 10:39
sverre.andersen19-Oct-04 10:39 
GeneralRe: Compare lines in two large txt files Pin
Nick Parker19-Oct-04 13:16
protectorNick Parker19-Oct-04 13:16 
GeneralQuestion about Interop with a DLL written in C++ Pin
kmansari19-Oct-04 10:23
kmansari19-Oct-04 10:23 
GeneralRe: Question about Interop with a DLL written in C++ Pin
Heath Stewart19-Oct-04 16:02
protectorHeath Stewart19-Oct-04 16:02 
GeneralRe: Question about Interop with a DLL written in C++ Pin
kmansari20-Oct-04 10:02
kmansari20-Oct-04 10:02 
GeneralRe: Question about Interop with a DLL written in C++ Pin
kmansari20-Oct-04 10:24
kmansari20-Oct-04 10:24 
GeneralRe: Question about Interop with a DLL written in C++ Pin
Heath Stewart20-Oct-04 13:37
protectorHeath Stewart20-Oct-04 13:37 
kmansari wrote:
I guess declaring it the wrong way might have caused the .NET CLR to construct a screwed up call stack.

Keep in mind that the term unmanaged means that the CLR does not managed the memory. When you call into unmanaged code, the CLR has no way of tracking memory. Just FYI. Smile | :)

kmansari wrote:
I still have the GCHandle question for you though. Am I really required to pin down memory that was allocated in the unmanaged world?

No, but when alloc'ing it in the managed world and passing it to unmanaged code you do. Depending on what calls you make, though - like Marshal.PtrToStructure - you may need to pin the object because once you marshal the struct the GC tracks it and may move it. Chances are that won't happen - especially with value types which are declared on the stack - but it just something to keep in mind for future development.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
Generalmessaging in C# Pin
ppp00119-Oct-04 10:01
ppp00119-Oct-04 10:01 
GeneralRe: messaging in C# Pin
Heath Stewart19-Oct-04 15:46
protectorHeath Stewart19-Oct-04 15:46 
GeneralThreading -- Performance Pin
petst19-Oct-04 9:42
petst19-Oct-04 9:42 
GeneralRe: Threading -- Performance Pin
Salil Khedkar19-Oct-04 20:47
Salil Khedkar19-Oct-04 20:47 
GeneralRe: Threading -- Performance Pin
petst20-Oct-04 4:28
petst20-Oct-04 4:28 
GeneralSpecifying number of digits after decimal in a fixed-point formatted string Pin
DTWC_Lawrence19-Oct-04 9:40
DTWC_Lawrence19-Oct-04 9:40 
GeneralRe: Specifying number of digits after decimal in a fixed-point formatted string Pin
Alex A. Miller19-Oct-04 9:57
Alex A. Miller19-Oct-04 9:57 
GeneralRe: Specifying number of digits after decimal in a fixed-point formatted string Pin
DTWC_Lawrence19-Oct-04 10:02
DTWC_Lawrence19-Oct-04 10:02 
GeneralRe: Specifying number of digits after decimal in a fixed-point formatted string Pin
Salil Khedkar19-Oct-04 21:17
Salil Khedkar19-Oct-04 21:17 
GeneralShrinking Toolbar images Pin
LannieK19-Oct-04 9:24
LannieK19-Oct-04 9:24 
GeneralRe: Shrinking Toolbar images Pin
Heath Stewart19-Oct-04 11:21
protectorHeath Stewart19-Oct-04 11:21 
GeneralRe: Shrinking Toolbar images Pin
LannieK20-Oct-04 2:23
LannieK20-Oct-04 2:23 
GeneralRe: Shrinking Toolbar images Pin
Heath Stewart20-Oct-04 5:20
protectorHeath Stewart20-Oct-04 5:20 
GeneralRe: Shrinking Toolbar images Pin
LannieK20-Oct-04 10:03
LannieK20-Oct-04 10:03 
General32 bit integer from sbyte array Pin
BrcKcc19-Oct-04 9:03
BrcKcc19-Oct-04 9:03 
GeneralRe: 32 bit integer from sbyte array Pin
Dies19-Oct-04 9:38
Dies19-Oct-04 9:38 
GeneralRe: 32 bit integer from sbyte array Pin
Christian Graus19-Oct-04 9:41
protectorChristian Graus19-Oct-04 9:41 

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.