Use recently MT5 version, I got a runtime error in my code call to ArrayResize(class, xx), in the past it runs all ok.
Just to show the error, I use a demo script for example, the same error occur in my indicator.
Run testScript.mq5 to reshow the error.
these codes is modified from Sergan's cbot inidicators, his codes is access cbot txt file directly, and I modified it to use mysql to store the data.
the library dll : "mysql_wrapper.dll" depend on the mysql dll: libmySQL.dll, which should place to the path of terminal.exe, or in the %path% env var path.
All files (mysql.mqh mysql_wrapper.dll etc) were taken from archive above(runtime_error.rar (623.16 KB)). Here is my test indicator.