Errors, bugs, questions - page 3010

 
Andrey Khatimlianskii:

Right-click - Open. Calling this command resets the log to disk.

Doesn't help.

 
fxsaber:

It's not working.

Maybe you need to wait? If there's a lot of GB, it may take a long time to write.

 
fxsaber:

Doesn't help.

Doesthe log viewer show all the logs? Or does it not?

Log Viewer only works with the drive

 
Slava:

Doesthe logbook viewer show all the logs? Or does it not?

The log viewer only works with the drive


This tip helped.

Forum on trading, automated trading systems and strategy testing

Bugs, bugs, questions

Andrey Khatimlianskii, 2021.05.06 21:42

Right click - Open. When I call this command, the log is dumped to the disk.


Confused directories, when checking. Sorry for the false alarm.

 
Error during execution:
void OnStart()
{
    char ch[];
    StringToCharArray( "ABCDEF", ch, 0, 3 );
    Print(GetLastError());
}

Result: 4007

Expected: 0

 
A100:
Error during execution:

Result: 4007

Expected result: 0.

The help doesn't say that the function returns an error code. Only the number of copied elements. Probably for this reason it doesn't write anything in the last error code?

If you reset the code before calling it?

 
Artyom Trishkin:

The help does not say that the function returns an error code. Only the number of copied elements. Probably for this reason it doesn't write anything to the last error code?

If you reset the code before calling it?

How can it not, when it does - Result: 4007

Why should it reset if the example is already the simplest one. But in any case, adding ResetLastError does not affect the result

 
A100:

How it doesn't record when it does - Result: 4007

Why reset when the example is already the simplest. But in any case, adding ResetLastError does not affect the result.

And why do you specify three characters in the function parameter when there are eight characters in the string?

char ch[];
StringToCharArray( "ABCDEF", ch, 0, 8 );
Print(GetLastError()); //0

Or -1 to the end of the string, with a terminal zero

char ch[];
StringToCharArray( "ABCDEF", ch, 0, -1 );
Print(GetLastError()); //0
 
Roman:

Why do you specify three characters in the function parameter when there are eight characters in the string?

or -1 to the end of the string, with a terminal zero.

Because the 4th parameter

int     count=-1             // количество символов

I need to copy the first 3 characters. If I had to copy the whole string (7 characters including the terminal 0), I would specify -1. And if it cannot be copied partially, then why do I need this parameter at all?

 
A100:

How does it not write when it writes - Result: 4007

err you seem to be the first one who needs to copy not the whole line ) otherwise I can't explain the error