Thanks
You are correct, it is my delete[] statements that are causing the errors, but I don't know why because I am quite sure I implemented them correctly. All my Heighmap and GaussKernel structs can only be created using the constructor.
I have reprogrammed the way somethings work, but I am still getting the same problems.
here is the stack trace from Qt Creator
0 ntdll!RtlQueryEnvironmentVariable_U C:\Windows\system32\ntdll.dll 0
1 ntdll!RtlAreBitsClear C:\Windows\system32\ntdll.dll 0
2 ntdll!RtlAreBitsClear C:\Windows\system32\ntdll.dll 0
3 ntdll!RtlUnicodeStringToOemString C:\Windows\system32\ntdll.dll 0
4 ntdll!RtlpSetUserPreferredUILanguages C:\Windows\system32\ntdll.dll 0
5 ntdll!RtlTraceDatabaseValidate C:\Windows\system32\ntdll.dll 0
6 ntdll!RtlUnicodeStringToOemString C:\Windows\system32\ntdll.dll 0
7 msvcrt!malloc C:\Windows\system32\msvcrt.dll 0
8 operator new 0
9 operator new[] 0
10 HeightMap::HeightMap Types.cpp 29
11 TerrainAnalyser::analyseTerrain terrainanalyser.cpp 97
12 GUI::openFile GUI.cpp 160
13 GUI::qt_metacall moc_GUI.cpp 71
16 QAction::triggered moc_qaction.
cpp 236 17 QAction::activate qaction.
cpp 1160 18 QMenuPrivate::activateCausedStack qmenu.cpp 967
19 QMenuPrivate::activateAction qmenu.cpp 1060
20 QMenu::mouseReleaseEvent qmenu.
cpp 2254 ... <More>
0 ntdll!RtlQueryEnvironmentVariable_U C:\Windows\system32\ntdll.dll 0
1 ntdll!RtlAreBitsClear C:\Windows\system32\ntdll.dll 0
2 ntdll!RtlAreBitsClear C:\Windows\system32\ntdll.dll 0
3 ntdll!RtlUnicodeStringToOemString C:\Windows\system32\ntdll.dll 0
4 ntdll!RtlpSetUserPreferredUILanguages C:\Windows\system32\ntdll.dll 0
5 ntdll!RtlTraceDatabaseValidate C:\Windows\system32\ntdll.dll 0
6 ntdll!RtlUnicodeStringToOemString C:\Windows\system32\ntdll.dll 0
7 msvcrt!malloc C:\Windows\system32\msvcrt.dll 0
8 operator new 0
9 operator new[] 0
10 HeightMap::HeightMap Types.cpp 29
11 TerrainAnalyser::analyseTerrain terrainanalyser.cpp 97
12 GUI::openFile GUI.cpp 160
13 GUI::qt_metacall moc_GUI.cpp 71
14 QMetaObject::activate qobject.cpp 3104
15 QMetaObject::activate qobject.cpp 3198
16 QAction::triggered moc_qaction.cpp 236
17 QAction::activate qaction.cpp 1160
18 QMenuPrivate::activateCausedStack qmenu.cpp 967
19 QMenuPrivate::activateAction qmenu.cpp 1060
20 QMenu::mouseReleaseEvent qmenu.cpp 2254
... <More>
To copy to clipboard, switch view to plain text mode
Attatched is the debugger output. Debugger Output.pdf
If anyone would like to look at the code e-mail me and I will send the full code to you, I don't want to attach it because it is a current project.
Thanks
Bookmarks