I wrote the application on qt on windows 7, transferred Windows 10, compiled it, launched it and on every second cycle of the passage through the vector, for example in these two
for(int i=0;i<=for_step_x.size();i++)//here { scalar_product=l_oz*l_st[i]+m_oz*m_st[i]+n_oz*n_st[i]; angle_arccos.push_back(acos(scalar_product)); } for(int i=0;i<=angle_arccos.size();i++)//here { if((angle_arccos[i]*180/pi)<view_angle) { result_alpha.push_back(for_step_x[i]); result_beta.push_back(for_step_y[i]); an error comes out
ASSERT failure in QVector<T>::operator[]: "index out of range", file C:\Qt\5.6\mingw49_32\include/QtCore/qvector.h, line 427 on Windows 7, respectively, this was not observed, what is the reason I do not understand. It is treated with crutches like
for(int i=0;i<for_step_x.size()-1;i++)// для звездной величины { or in other cases, simply removing = from <=
just like that on this code
QString filename = QFileDialog::getSaveFileName(this, tr("Save jpg"), ".", tr("jpg files (*.jpg)")); Ie when the file dialog is called and I choose the place and the name of the file to save to the output of the application such things get out
shell\comdlg32\fileopensave.cpp(9456)\COMDLG32.DLL!76D90750: (caller: 76D83458) ReturnHr[PreRelease](1) tid(13ec) 80070490 Элемент не найден. CallContext:[\PickerModalLoop\InitDialog\FileDialogInitEnterpriseData] shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(243)\thumbcache.dll!5B9ADFD9: (caller: 5B9AE191) ReturnHr[PreRelease](1) tid(13ec) 80004005 Неопознанная ошибка shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(153)\thumbcache.dll!5B9C6270: (caller: 7653FEE9) ReturnHr[PreRelease](2) tid(13ec) 80004005 Неопознанная ошибка shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(243)\thumbcache.dll!5B9ADFD9: (caller: 5B9AE191) ReturnHr[PreRelease](3) tid(13ec) 80004005 Неопознанная ошибка shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(153)\thumbcache.dll!5B9C6270: (caller: 7653FEE9) ReturnHr[PreRelease](4) tid(13ec) 80004005 Неопознанная ошибка shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(153)\thumbcache.dll!5B9C6270: (caller: 7653FEE9) ReturnHr[PreRelease](5) tid(13ec) 80004005 Неопознанная ошибка shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(153)\thumbcache.dll!5B9C6270: (caller: 7653FEE9) ReturnHr[PreRelease](6) tid(13ec) 80004005 Неопознанная ошибка shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(153)\thumbcache.dll!5B9C6270: (caller: 7653FEE9) ReturnHr[PreRelease](7) tid(13ec) 80030002 Не удается найти %1. shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(243)\thumbcache.dll!5B9ADFD9: (caller: 5B9AE191) ReturnHr[PreRelease](9) tid(13ec) 80004005 Неопознанная ошибка shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(243)\thumbcache.dll!5B9ADFD9: (caller: 5B9AE191) ReturnHr[PreRelease](8) tid(2758) 8004B203 shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(243)\thumbcache.dll!5B9ADFD9: (caller: 5B9AE191) ReturnHr[PreRelease](10) tid(2758) 8004B203 shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(243)\thumbcache.dll!5B9ADFD9: (caller: 5B9AE191) ReturnHr[PreRelease](11) tid(2758) 8004B203 shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(243)\thumbcache.dll!5B9ADFD9: (caller: 5B9AE191) ReturnHr[PreRelease](12) tid(13ec) 80004005 Неопознанная ошибка shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(243)\thumbcache.dll!5B9ADFD9: (caller: 5B9AE191) ReturnHr[PreRelease](13) tid(2284) 8004B200 CallContext:[\PerformFullExtract] shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(243)\thumbcache.dll!5B9ADFD9: (caller: 5B9AE191) ReturnHr[PreRelease](14) tid(2284) 8004B200 CallContext:[\PerformFullExtract] shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(243)\thumbcache.dll!5B9ADFD9: (caller: 5B9AE191) ReturnHr[PreRelease](15) tid(2334) 8004B200 CallContext:[\PerformFullExtract] shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(243)\thumbcache.dll!5B9ADFD9: (caller: 5B9AE191) ReturnHr[PreRelease](16) tid(2334) 8004B200 what could be the problem? compilers like the same