64-bit compliance


Related issues: 7906; 8497.
My solution:
private const short INVALID_HANDLE_VALUE = -1;
private static IntPtr INVALID_HANDLE_VALUE = (IntPtr)(-1); // compiler does not allow making this const :(
Plus you have to remove all IntPtr->int casts (compiler shall show these).
Closed Jul 12, 2012 at 10:39 PM by RobertWachtel
Already fixed three years ago. See http://rapi.codeplex.com/workitem/4469


AHDPOH wrote Jul 23, 2012 at 9:05 PM

I see it committed in 68584 on the day this issue is closed, not three years ago.
However, issue 4469 is related; I was not able to find it so I opened another one.

RobertWachtel wrote Jul 24, 2012 at 5:44 AM

So just for you: http://rapi.codeplex.com/SourceControl/changeset/27098

Commit #27098 for issue #4469 - committed on Sep 23, 2009

AHDPOH wrote Jul 24, 2012 at 4:28 PM

OK, I might have had an older checkout before (there's no way to trace it back as it comes as a plain ZIP off codeplex :( and the person who got it did not record the rev# retrieved).
Anyway, if it was fixed, why is that 68584 commit?

RobertWachtel wrote Jul 24, 2012 at 9:28 PM

Commit #68584: http://rapi.codeplex.com/SourceControl/changeset/68584

It's because of "clean code". It's better readable and the .ToInt64 conversion is preferred over the cast to IntPtr.

wrote Feb 21, 2013 at 11:57 PM

wrote May 16, 2013 at 11:42 AM