リモート Linux サーバーでプログラムをコンパイルしています。プログラムがコンパイルされました。しかし、実行すると、プログラムが突然終了します。そこで、DDT を使用してプログラムをデバッグしました。次のエラーが吐き出されます。
Process 0:
Memory error detected in ClassName::function (filename.cpp:6462).
Thread 1 attempted to dereference a null pointer or execute an SSE instruction with an
incorrectly aligned memory address (the latter may sometimes occur spuriously if guard
pages are enabled)
Tip: Use the stack list and the local variables to explore your program's current
state and identify the source of the error.
このエラーの意味を正確に教えてください。
プログラムが停止する行は次のようになります。
SumUtility = ParaEst[0] + hhincome * ParaEst[71] + IsBlack * ParaEst[61] + IsBachAss * (ParaEst[55]);
スイッチケースに入っています。
これらは変数タイプです
vector<double> ParaEst;
double hhincome;
int IsBlack, Is BachAss;
助けてくれてありがとう!