[line]
String or LPSTR LPSTR or char* String
While strings may be passed to and from TradeStation-compatible DLL’s, no
attempt should be made, inside a TradeStation-compatible DLL, to change the length
of a string that is an EasyLanguage variable. However, the characters of such
strings may be sorted or otherwise reorganized, as long as the overall string length
remains unchanged by the DLL.
[line]
Many of the calls via the NTDirect.dll made from the NT defined EasyLanguage functions do exactly that - they modify string length.
Using the NT interface and doing this caused some sort of corruption of the Easy Language environment for me.
What did it do?
My TS strategy would submit orders to NT from windows where there where no strategies of any kind existed. I had orders being sent to NT from my $tick charts, stock charts and any open chart window I had. It seemed to random.
I would have to restart Trade Station to re-initialize Easy Language.
If you are attempting to use the NTDirect.dll calling it from Easy Language, you can only make calls that do not change any string lengths.
If you don't thenEasy Language will be corrupted and start to behave strangely.
en
Comment