Click here to Skip to main content
16,016,249 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Win APIs different in debug/release (.NET?) Pin
Dave Kreskowiak18-Jun-06 8:02
mveDave Kreskowiak18-Jun-06 8:02 
GeneralRe: Win APIs different in debug/release (.NET?) Pin
rberman18-Jun-06 10:30
rberman18-Jun-06 10:30 
GeneralRe: Win APIs different in debug/release (.NET?) [modified] Pin
Dave Kreskowiak19-Jun-06 1:25
mveDave Kreskowiak19-Jun-06 1:25 
GeneralRe: Win APIs different in debug/release (.NET?) Pin
rberman19-Jun-06 4:29
rberman19-Jun-06 4:29 
GeneralRe: Win APIs different in debug/release (.NET?) Pin
Dave Kreskowiak19-Jun-06 5:08
mveDave Kreskowiak19-Jun-06 5:08 
GeneralRe: Win APIs different in debug/release (.NET?) Pin
rberman19-Jun-06 5:32
rberman19-Jun-06 5:32 
GeneralRe: Win APIs different in debug/release (.NET?) Pin
Dave Kreskowiak19-Jun-06 12:44
mveDave Kreskowiak19-Jun-06 12:44 
GeneralRe: Win APIs different in debug/release (.NET?) Pin
rberman19-Jun-06 6:30
rberman19-Jun-06 6:30 
Well.... I think they are incorrect to have IntPtr as the return type -- a handle is NOT a pointer -- it is a system assigned integer used to identify an object. From the application perspective, it IS an integer, and in fact that is the way the API is used in any C program. The only restriction is on whether the handle can be inherited by another task (which requires a security descriptor attached when the handle is created).

Garbage collection should have no impact on handles therefore -- they are a simple identifier, not an address that might be moved in garbage collection.

So now I'm curious why they treat it this way -- is there something else that .NET does to system-assigned handles that might make them susceptible to damage?

GeneralRe: Win APIs different in debug/release (.NET?) Pin
Dave Kreskowiak19-Jun-06 12:42
mveDave Kreskowiak19-Jun-06 12:42 
GeneralRe: Win APIs different in debug/release (.NET?) Pin
rberman19-Jun-06 7:00
rberman19-Jun-06 7:00 
GeneralRe: Win APIs different in debug/release (.NET?) Pin
Dave Kreskowiak19-Jun-06 12:47
mveDave Kreskowiak19-Jun-06 12:47 
QuestionSource code for zedgraph bar chart (for 5 Bars needed) [modified] Pin
eric123916-Jun-06 23:24
eric123916-Jun-06 23:24 
QuestionAddressOf CopyProgressRoutine Pin
maple_kisses16-Jun-06 23:13
maple_kisses16-Jun-06 23:13 
AnswerRe: AddressOf CopyProgressRoutine Pin
Dave Kreskowiak17-Jun-06 16:45
mveDave Kreskowiak17-Jun-06 16:45 
Questionplease hepl me Pin
avinashprabhu.t.p16-Jun-06 20:13
avinashprabhu.t.p16-Jun-06 20:13 
AnswerRe: please hepl me Pin
Dave Kreskowiak17-Jun-06 16:46
mveDave Kreskowiak17-Jun-06 16:46 
QuestionInternet disabling/enabling Pin
elms16-Jun-06 19:46
elms16-Jun-06 19:46 
AnswerRe: Internet disabling/enabling Pin
Dave Kreskowiak17-Jun-06 16:50
mveDave Kreskowiak17-Jun-06 16:50 
GeneralRe: Internet disabling/enabling Pin
elms28-Jun-06 9:34
elms28-Jun-06 9:34 
GeneralRe: Internet disabling/enabling Pin
Dave Kreskowiak29-Jun-06 1:23
mveDave Kreskowiak29-Jun-06 1:23 
QuestionDir() function Pin
No-e16-Jun-06 8:49
No-e16-Jun-06 8:49 
AnswerRe: Dir() function Pin
Mekong River17-Jun-06 16:04
Mekong River17-Jun-06 16:04 
GeneralRe: Dir() function Pin
No-e19-Jun-06 2:40
No-e19-Jun-06 2:40 
GeneralRe: Dir() function Pin
Mekong River19-Jun-06 3:38
Mekong River19-Jun-06 3:38 
GeneralRe: Dir() function Pin
No-e19-Jun-06 3:51
No-e19-Jun-06 3:51 

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.