Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 17:37:23 +0000



Post From: Vector 2 Levels works, but Instable

[2017-08-28 10:30:25]
User210074 - Posts: 63
I have a problem with 2-dimensional vector.
When I test the code on CODE::BLOCK.
I have no mistakes.
When I use it on Sierra chart.
it work.
But I have an error message in the Message Log "Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2017-08-28 11:48:31 *
"
I restart, i have the same message.

Question :
Do 2-dimensional vector work on SierraChart?
If yes, i don't know what 's happen !

/* ..... */
vector<vector<string>>Mli{};
int k{0},m{0};
for(int i=0;i<10;++i){
Mli.push_back(vector <string>());
for(int j=0;j<1;++j){
if(j == 0){
k+=1;
string l=to_string(k);
Mli[i].push_back(l);
}
}
}
m = Mli.size();
if(m>=1){
for(int i=0;i<m;++i){
string o = Mli[i][0];
sc.AddMessageToLog(o.c_str(), 1);
}
}

Date Time Of Last Edit: 2017-08-28 10:32:10