Hello Everyone,
I am doing one project in which I define a data types like below
typedef QVector<double> QFilterDataMap1D;
typedef QMap<double, QFilterDataMap1D> QFilterDataMap2D;
typedef QVector<double> QFilterDataMap1D;
typedef QMap<double, QFilterDataMap1D> QFilterDataMap2D;
To copy to clipboard, switch view to plain text mode
Then there is one class with the name of mono_data in which i have define this variable
QFilterMap2D valid_filters;
QFilterMap2D valid_filters;
To copy to clipboard, switch view to plain text mode
mono_data Scan_data // Class
mono_data Scan_data // Class
To copy to clipboard, switch view to plain text mode
Now i am reading one variable from a .mat file and trying to save it in to above "valid_filters" QMap.
for(int i=0;i<1;i++)
{
for(int j=0;j<1;j++)
{
Scan_Data.valid_filters[i][j]=valid_filters[i][j];
printf("\nValid_filters=%f",Scan_Data.valid_filters[i][j]);
}
}
for(int i=0;i<1;i++)
{
for(int j=0;j<1;j++)
{
Scan_Data.valid_filters[i][j]=valid_filters[i][j];
printf("\nValid_filters=%f",Scan_Data.valid_filters[i][j]);
}
}
To copy to clipboard, switch view to plain text mode
The transferring is done successfully but then it gives run-time error
Windows has triggered a breakpoint in SpectralDataCollector.exe.
This may be due to a corruption of the heap, and indicates a bug in SpectralDataCollector.exe or any of the DLLs it has loaded.
The output window may have more diagnostic information
Can anyone help in solving this problem. It will be of great help to me.
Thanks
Bookmarks