Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

OT: FlexMotion and Delphi 7.0

Hi,
this is the first time that I am using NI products.
I've got a problem whit library FlexMotion and Borland Delphi 7.0.
Basicly it works, but when i leave a delphi function (not a function from the flex library) the
program will be crashed.
It's possible doesn't work the flexmotion32.dll with delphi ?

Thanks,
Udo
0 Kudos
Message 1 of 3
(3,278 Views)
Udo,

the flexmotion32.dll is a standard DLL that can be called from every IDE that is capable of calling DLLs. I haven't heard about any special problems calling this DLL from Delphi.
Your problem could be related to wrong datatypes used for the calls to the DLL. Sometimes this doesn't result in an immediate crash but it corrupts the application's memory which causes a crash somewhere later in the program. Please check if your function calls are parametrized correctly.

Best regards,

Jochen
National Instruments Germany
0 Kudos
Message 2 of 3
(3,274 Views)
thanks, it works...

i called the external funktions from the flexmotion32.dll with the 'cdecl' statement.
this was wrong. 'stdcal' works correctly....
0 Kudos
Message 3 of 3
(3,265 Views)