[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: got this code to copy ByteArrayToMemptr, now, how to copy from memptr to Byte[]?

  • Thread starter Thread starter Stefan Drissen
  • Start date Start date
Status
Not open for further replies.
S

Stefan Drissen

Guest
Just a small nuance on the MemptrToByteArray method. With 11.7 get-pointer-value will often return a 64 bit integer (see knowledgebase.progress.com/.../Windows-API-call-fails-with-error-13712-in-11-7-64-bit) . For some reason the get-pointer-value function is fooling System.IntPtr to think it is going to be 32-bit (at compile time) resulting in a too large for int32 error at run-time. Introducing an intermediate int64 to store the value of get-pointer-value resolves this.

Continue reading...
 
Status
Not open for further replies.
Back
Top