I have been using measurement computing universal library (CBW64.dll and CBW64.pas) for data acquisition code for years. The development environment I am using is Embarcadero RAD Studio (Delphi). The following calls have been working for years (up to and including RAD Studio XE10):
I am now compiling my code in RAD Studio XE11. Now when I execute my program, I get the error "Range check error" in the call cbWinBufFree ( MemHandle):
Note that I have also tried to declare MemHandle as the following types but get the same error:
Question
Erick Baziw
I have been using measurement computing universal library (CBW64.dll and CBW64.pas) for data acquisition code for years. The development environment I am using is Embarcadero RAD Studio (Delphi). The following calls have been working for years (up to and including RAD Studio XE10):
var
MemHandle : THandle;
Begin
MemHandle := cbWinBufAlloc ( LastIndex );
ULStat := cbWinBufFree ( MemHandle);
End;
I am now compiling my code in RAD Studio XE11. Now when I execute my program, I get the error "Range check error" in the call cbWinBufFree ( MemHandle):
Note that I have also tried to declare MemHandle as the following types but get the same error:
MemHandle : UInt64;
MemHandle : Longint;
MemHandle : Integer;
MemHandle : NativeUint;
I have attached the file CBW64.pas provided by Measurement Computing. In this file the following is declared:
function cbWinBufAlloc (NumPoints:Longint):NativeUInt;{Integer;} StdCall;
function cbWinBufFree (MemHandle:Integer):NativeUInt;{Integer;} StdCall;
Thanks, Erick
CBW64.pas
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now