You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the plz77_1.exe to compress the data of chr22.dna, the program runs a error:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
I debug the code and find out the error happend in the rangeMin.cpp:
line 39 to line 41:
parallel_for(intT i=0;i<depth;i++) {
table[i] = new intT[n];
}
when the error is occured, the depth is 21 and the n is 23035842.
I run the code:
int main()
{
int** table = new int*[21];
for (int i = 0; i < 21; i++) {
table[i] = new int[23035842];
}
return 0;
}
it's ok.
So I think this error is related to memory leak, but I checked the code and released the applied objects, the problem is still unresolved.
Can you help me solve this problem?
thx.
The text was updated successfully, but these errors were encountered:
When I run the plz77_1.exe to compress the data of chr22.dna, the program runs a error:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
I debug the code and find out the error happend in the rangeMin.cpp:
line 39 to line 41:
parallel_for(intT i=0;i<depth;i++) {
table[i] = new intT[n];
}
when the error is occured, the depth is 21 and the n is 23035842.
I run the code:
int main()
{
int** table = new int*[21];
for (int i = 0; i < 21; i++) {
table[i] = new int[23035842];
}
return 0;
}
it's ok.
So I think this error is related to memory leak, but I checked the code and released the applied objects, the problem is still unresolved.
Can you help me solve this problem?
thx.
The text was updated successfully, but these errors were encountered: