And on a running instance (old mysql) I get this from time to time:
Here on data[ptr]:
I have so far been unable to connect to MySQL 8.0.23 at all (error 1045: "access denied for user ... ").
Figuring it out.
About the error in line (367, 37) - strange. You should put a breakpoint check there and look at the values of variables. I have this library working around the clock not the first year, requests every 30 seconds (not short, with data). And it has never crashed once. I wish I knew what query was crashing it.
По поводу ошибки в строке (367, 37) - странно. Поставить бы там проверку с брейкпойнтом, посмотреть на значения переменных. У меня эта библиотека работает круглосуточно не первый год, запросы каждые 30 секунд (не короткие, с данными). И ни разу не падала. Знать бы, какой запрос её сносит.
mySql is returning POINTER_INVALID when I do a query in the OnDeInit of an EA, but the same code works when I execute it in the OnInit function, does anyone know what it could be?
Vinicius Oliveira POINTER_INVALID when I do a query in the OnDeInit of an EA, but the same code works when I execute it in the OnInit function, does anyone know what it could be?
please run the code in the debugger and tell us in which function the error occurs
2022.02.19 14:24:31.882 CMySQLTransaction::PacketDataHandler: m_responses=1
2022.02.19 14:24:31.882 array out of range in 'MySQLTransaction.mqh' (502,11)
Here's more on the array size in the log. In general, somewhere it doesn't change correctly or m_responses is wrong....
2022.02.19 14:28:59.455 CMySQLTransaction::PacketDataHandler: m_responses=1
2022.02.19 14:28:59.455 CMySQLTransaction::PacketDataHandler: m_rbuf size=1
2022.02.19 14:28:59.455 array out of range in 'MySQLTransaction.mqh' (503,11)
I made the array expand manually to m_responses+1 if necessary.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
And on a running instance (old mysql) I get this from time to time:
Here on data[ptr]:
I have so far been unable to connect to MySQL 8.0.23 at all (error 1045: "access denied for user ... ").
Figuring it out.
About the error in line (367, 37) - strange. You should put a breakpoint check there and look at the values of variables. I have this library working around the clock not the first year, requests every 30 seconds (not short, with data). And it has never crashed once. I wish I knew what query was crashing it.
По поводу ошибки в строке (367, 37) - странно. Поставить бы там проверку с брейкпойнтом, посмотреть на значения переменных. У меня эта библиотека работает круглосуточно не первый год, запросы каждые 30 секунд (не короткие, с данными). И ни разу не падала. Знать бы, какой запрос её сносит.
mySql is returning POINTER_INVALID when I do a query in the OnDeInit of an EA, but the same code works when I execute it in the OnInit function, does anyone know what it could be?
please run the code in the debugger and tell us in which function the error occurs
Apparently the error may be occurring here. In the"bool CMySQLTransaction::Query(string q)" function, in the MySQLTransaction.mqh file
2022.02.19 13:22:44.346 array out of range in 'MySQLTransaction.mqh' (501,11)
Here's more on the array size in the log. In general, somewhere it doesn't change correctly or m_responses is wrong....
I made the array expand manually to m_responses+1 if necessary.