Форум программистов, компьютерный форум CyberForum.ru

С++ течет при наследовании - C++

Восстановить пароль Регистрация
Другие темы раздела
C++ Реализация игры Уголки http://www.cyberforum.ru/cpp-beginners/thread771684.html
Задали написать игру Уголки с классами, код выдает ошибки #include <iostream> #include <windows.h> using namespace std; class board; class figura { int x,y; public: int player;
C++ как передать в функцию двухмерный динамический массив по ссылке как передать в функцию двухмерный динамический массив по ссылке? http://www.cyberforum.ru/cpp-beginners/thread771653.html
C++ Вывести на экран таблицу истинности
Для !(A && B) вывести на экран таблицу истинности с использованием функции string Res(bool, bool). Таблица должна выводится в главной функции main()
C++ Поменять местами минимальный элемент матрицы Р (9×11) и элемент, значение которого совпадает с заданным X
Поменять местами минимальный элемент матрицы Р (9×11) и элемент, значение которого совпадает с заданным X. Если указанный элемент в матрице отсутствует, вывести сообщение об этом
C++ Необходимо найти ноль функции на отрезке http://www.cyberforum.ru/cpp-beginners/thread771607.html
Дана непрерывная функция. Необходимо найти ее ноль на отрезке с точностью*E*методом*половинного*деления. В программе также ввести режим работы, используя конструкцию switch-case (один из возможных вариантов – идентификация режима по номеру, в качестве альтернативного режима работы программы предлагается вывод на экран информации*об*авторе). Входные*данные:*Mode,*L,*R,*E....
C++ Поправить формулу(часть кода) Добрый день. Имеется данная формула: На C++ надо составить формулу в OpenMp. #include "stdafx.h" #include <conio.h> enum{NUM_ITER=1000000, NUM_THREAD=4}; int _tmain(int argc, _TCHAR* argv) { double q=-1; double x=1; подробнее

Показать сообщение отдельно
vbloodv
 Аватар для vbloodv
22 / 22 / 0
Регистрация: 15.12.2012
Сообщений: 314
25.01.2013, 23:09  [ТС]     С++ течет при наследовании
Кликните здесь для просмотра всего текста
Assembler
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
'Phenomen.exe': Loaded 'E:\Source\VisualStudio2008\Project\Phenomen\Phenomen\Release\Phenomen.exe', Symbols loaded.
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'Phenomen.exe': Loaded 'C:\Program Files\AVAST Software\Avast\snxhk.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'Phenomen.exe': Loaded 'E:\Source\VisualStudio2008\Project\Phenomen\Phenomen\Release\hge.dll', Binary was not built with debug information.
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\d3d8.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\version.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\d3d8thk.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll'
'Phenomen.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb\msvcp90d.dll', Symbols loaded.
'Phenomen.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb\msvcr90d.dll', Symbols loaded.
'Phenomen.exe': Loaded 'C:\Program Files (x86)\Visual Leak Detector\bin\Win32\vld_x86.dll'
'Phenomen.exe': Loaded 'C:\Program Files (x86)\Visual Leak Detector\bin\Win32\dbghelp.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
Visual Leak Detector Version 2.2.3 installed.
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\atiu9pag.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\atiumdag.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\atiumdva.dll'
The thread 'Win32 Thread' (0x1618) has exited with code 0 (0x0).
'Phenomen.exe': Unloaded 'C:\Windows\SysWOW64\atiumdva.dll'
'Phenomen.exe': Unloaded 'C:\Windows\SysWOW64\atiumdag.dll'
'Phenomen.exe': Unloaded 'C:\Windows\SysWOW64\atiu9pag.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\atiu9pag.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\atiumdag.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\atiumdva.dll'
'Phenomen.exe': Loaded 'E:\Source\VisualStudio2008\Project\Phenomen\Phenomen\Release\bass.dll', Binary was not built with debug information.
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\msacm32.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\dsound.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\powrprof.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\MMDevAPI.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\propsys.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\AudioSes.dll'
'Phenomen.exe': Loaded 'C:\Program Files (x86)\G9G11_ScreenCapture\dll\DLL_PenSuit.dll'
The thread 'Win32 Thread' (0xbac) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x16f8) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1568) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1344) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1478) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1088) has exited with code 0 (0x0).
'Phenomen.exe': Unloaded 'E:\Source\VisualStudio2008\Project\Phenomen\Phenomen\Release\bass.dll'
'Phenomen.exe': Unloaded 'C:\Windows\SysWOW64\msacm32.dll'
'Phenomen.exe': Unloaded 'C:\Windows\SysWOW64\atiumdva.dll'
'Phenomen.exe': Unloaded 'C:\Windows\SysWOW64\atiumdag.dll'
'Phenomen.exe': Unloaded 'C:\Windows\SysWOW64\atiu9pag.dll'
The thread 'Win32 Thread' (0x1680) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1420) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xf34) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x960) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x17e8) has exited with code 0 (0x0).
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll'
'Phenomen.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll'
WARNING: Visual Leak Detector detected memory leaks!
---------- Block 6 at 0x00216D08: 2128 bytes ----------
  Call Stack:
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_map.cpp (14): Phenomen.exe!Map::Create + 0xA bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\phenomen.cpp (25): Phenomen.exe!WinMain
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): Phenomen.exe!__tmainCRTStartup + 0x35 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): Phenomen.exe!WinMainCRTStartup
    0x75BE3677 (File and line number not available): KERNEL32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77BA9D72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77BA9D45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    09 00 00 00    50 58 35 00    CD CD CD CD    CD CD CD CD     ....PX5. ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    00 00 00 00     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    98 75 21 00     ........ .....u!.
    00 00 00 00    48 58 35 00    00 00 00 00    CD CD CD CD     ....HX5. ........
    75 6E 69 64    65 6E 74 69    66 69 65 64    00 CD CD CD     unidenti fied....
    0C 00 00 00    0F 00 00 00    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    00 00 48 42    CD CD CD CD    CD CD CD CD    CD CD CD CD     ..HB.... ........
    CD CD CD CD    00 00 00 00    CD CD CD CD    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    01 CD CD CD    00 00 00 3F     ........ .......?
    50 58 35 00    CD CD CD CD    CD CD CD CD    CD CD CD CD     PX5..... ........
 
 
---------- Block 7 at 0x00217598: 16 bytes ----------
  Call Stack:
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (43): Phenomen.exe!std::_Allocate<std::_List_nod<point2d,std::allocator<point2d> >::_Node> + 0xC bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (145): Phenomen.exe!std::allocator<std::_List_nod<point2d,std::allocator<point2d> >::_Node>::allocate + 0xB bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (1172): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::_Buynode + 0xD bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (436): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::list<point2d,std::allocator<point2d> > + 0x67 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_cup.h (19): Phenomen.exe!Cup::Cup + 0xA4 bytes
    0x0034C8A2 (File and line number not available): Phenomen.exe!`eh vector vbase constructor iterator' + 0x62 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_map.cpp (14): Phenomen.exe!Map::Create + 0x4F bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\phenomen.cpp (25): Phenomen.exe!WinMain
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): Phenomen.exe!__tmainCRTStartup + 0x35 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): Phenomen.exe!WinMainCRTStartup
    0x75BE3677 (File and line number not available): KERNEL32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77BA9D72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77BA9D45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    98 75 21 00    98 75 21 00    CD CD CD CD    CD CD CD CD     .u!..u!. ........
 
 
---------- Block 8 at 0x002175E8: 16 bytes ----------
  Call Stack:
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (43): Phenomen.exe!std::_Allocate<std::_List_nod<point2d,std::allocator<point2d> >::_Node> + 0xC bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (145): Phenomen.exe!std::allocator<std::_List_nod<point2d,std::allocator<point2d> >::_Node>::allocate + 0xB bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (1172): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::_Buynode + 0xD bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (436): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::list<point2d,std::allocator<point2d> > + 0x67 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_cup.h (19): Phenomen.exe!Cup::Cup + 0xA4 bytes
    0x0034C8A2 (File and line number not available): Phenomen.exe!`eh vector vbase constructor iterator' + 0x62 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_map.cpp (14): Phenomen.exe!Map::Create + 0x4F bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\phenomen.cpp (25): Phenomen.exe!WinMain
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): Phenomen.exe!__tmainCRTStartup + 0x35 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): Phenomen.exe!WinMainCRTStartup
    0x75BE3677 (File and line number not available): KERNEL32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77BA9D72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77BA9D45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    E8 75 21 00    E8 75 21 00    CD CD CD CD    CD CD CD CD     .u!..u!. ........
 
 
---------- Block 9 at 0x00217638: 16 bytes ----------
  Call Stack:
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (43): Phenomen.exe!std::_Allocate<std::_List_nod<point2d,std::allocator<point2d> >::_Node> + 0xC bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (145): Phenomen.exe!std::allocator<std::_List_nod<point2d,std::allocator<point2d> >::_Node>::allocate + 0xB bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (1172): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::_Buynode + 0xD bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (436): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::list<point2d,std::allocator<point2d> > + 0x67 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_cup.h (19): Phenomen.exe!Cup::Cup + 0xA4 bytes
    0x0034C8A2 (File and line number not available): Phenomen.exe!`eh vector vbase constructor iterator' + 0x62 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_map.cpp (14): Phenomen.exe!Map::Create + 0x4F bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\phenomen.cpp (25): Phenomen.exe!WinMain
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): Phenomen.exe!__tmainCRTStartup + 0x35 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): Phenomen.exe!WinMainCRTStartup
    0x75BE3677 (File and line number not available): KERNEL32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77BA9D72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77BA9D45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    38 76 21 00    38 76 21 00    CD CD CD CD    CD CD CD CD     8v!.8v!. ........
 
 
---------- Block 10 at 0x00217688: 16 bytes ----------
  Call Stack:
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (43): Phenomen.exe!std::_Allocate<std::_List_nod<point2d,std::allocator<point2d> >::_Node> + 0xC bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (145): Phenomen.exe!std::allocator<std::_List_nod<point2d,std::allocator<point2d> >::_Node>::allocate + 0xB bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (1172): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::_Buynode + 0xD bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (436): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::list<point2d,std::allocator<point2d> > + 0x67 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_cup.h (19): Phenomen.exe!Cup::Cup + 0xA4 bytes
    0x0034C8A2 (File and line number not available): Phenomen.exe!`eh vector vbase constructor iterator' + 0x62 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_map.cpp (14): Phenomen.exe!Map::Create + 0x4F bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\phenomen.cpp (25): Phenomen.exe!WinMain
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): Phenomen.exe!__tmainCRTStartup + 0x35 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): Phenomen.exe!WinMainCRTStartup
    0x75BE3677 (File and line number not available): KERNEL32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77BA9D72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77BA9D45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    88 76 21 00    88 76 21 00    CD CD CD CD    CD CD CD CD     .v!..v!. ........
 
 
---------- Block 11 at 0x002176D8: 16 bytes ----------
  Call Stack:
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (43): Phenomen.exe!std::_Allocate<std::_List_nod<point2d,std::allocator<point2d> >::_Node> + 0xC bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (145): Phenomen.exe!std::allocator<std::_List_nod<point2d,std::allocator<point2d> >::_Node>::allocate + 0xB bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (1172): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::_Buynode + 0xD bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (436): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::list<point2d,std::allocator<point2d> > + 0x67 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_cup.h (19): Phenomen.exe!Cup::Cup + 0xA4 bytes
    0x0034C8A2 (File and line number not available): Phenomen.exe!`eh vector vbase constructor iterator' + 0x62 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_map.cpp (14): Phenomen.exe!Map::Create + 0x4F bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\phenomen.cpp (25): Phenomen.exe!WinMain
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): Phenomen.exe!__tmainCRTStartup + 0x35 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): Phenomen.exe!WinMainCRTStartup
    0x75BE3677 (File and line number not available): KERNEL32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77BA9D72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77BA9D45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    D8 76 21 00    D8 76 21 00    CD CD CD CD    CD CD CD CD     .v!..v!. ........
 
 
---------- Block 12 at 0x00217728: 16 bytes ----------
  Call Stack:
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (43): Phenomen.exe!std::_Allocate<std::_List_nod<point2d,std::allocator<point2d> >::_Node> + 0xC bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (145): Phenomen.exe!std::allocator<std::_List_nod<point2d,std::allocator<point2d> >::_Node>::allocate + 0xB bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (1172): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::_Buynode + 0xD bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (436): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::list<point2d,std::allocator<point2d> > + 0x67 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_cup.h (19): Phenomen.exe!Cup::Cup + 0xA4 bytes
    0x0034C8A2 (File and line number not available): Phenomen.exe!`eh vector vbase constructor iterator' + 0x62 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_map.cpp (14): Phenomen.exe!Map::Create + 0x4F bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\phenomen.cpp (25): Phenomen.exe!WinMain
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): Phenomen.exe!__tmainCRTStartup + 0x35 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): Phenomen.exe!WinMainCRTStartup
    0x75BE3677 (File and line number not available): KERNEL32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77BA9D72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77BA9D45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    28 77 21 00    28 77 21 00    CD CD CD CD    CD CD CD CD     (w!.(w!. ........
 
 
---------- Block 13 at 0x00217778: 16 bytes ----------
  Call Stack:
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (43): Phenomen.exe!std::_Allocate<std::_List_nod<point2d,std::allocator<point2d> >::_Node> + 0xC bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (145): Phenomen.exe!std::allocator<std::_List_nod<point2d,std::allocator<point2d> >::_Node>::allocate + 0xB bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (1172): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::_Buynode + 0xD bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (436): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::list<point2d,std::allocator<point2d> > + 0x67 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_cup.h (19): Phenomen.exe!Cup::Cup + 0xA4 bytes
    0x0034C8A2 (File and line number not available): Phenomen.exe!`eh vector vbase constructor iterator' + 0x62 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_map.cpp (14): Phenomen.exe!Map::Create + 0x4F bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\phenomen.cpp (25): Phenomen.exe!WinMain
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): Phenomen.exe!__tmainCRTStartup + 0x35 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): Phenomen.exe!WinMainCRTStartup
    0x75BE3677 (File and line number not available): KERNEL32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77BA9D72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77BA9D45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    78 77 21 00    78 77 21 00    CD CD CD CD    CD CD CD CD     xw!.xw!. ........
 
 
---------- Block 14 at 0x002177C8: 16 bytes ----------
  Call Stack:
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (43): Phenomen.exe!std::_Allocate<std::_List_nod<point2d,std::allocator<point2d> >::_Node> + 0xC bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (145): Phenomen.exe!std::allocator<std::_List_nod<point2d,std::allocator<point2d> >::_Node>::allocate + 0xB bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (1172): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::_Buynode + 0xD bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (436): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::list<point2d,std::allocator<point2d> > + 0x67 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_cup.h (19): Phenomen.exe!Cup::Cup + 0xA4 bytes
    0x0034C8A2 (File and line number not available): Phenomen.exe!`eh vector vbase constructor iterator' + 0x62 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_map.cpp (14): Phenomen.exe!Map::Create + 0x4F bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\phenomen.cpp (25): Phenomen.exe!WinMain
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): Phenomen.exe!__tmainCRTStartup + 0x35 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): Phenomen.exe!WinMainCRTStartup
    0x75BE3677 (File and line number not available): KERNEL32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77BA9D72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77BA9D45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    C8 77 21 00    C8 77 21 00    CD CD CD CD    CD CD CD CD     .w!..w!. ........
 
 
---------- Block 15 at 0x00217818: 16 bytes ----------
  Call Stack:
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (43): Phenomen.exe!std::_Allocate<std::_List_nod<point2d,std::allocator<point2d> >::_Node> + 0xC bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory (145): Phenomen.exe!std::allocator<std::_List_nod<point2d,std::allocator<point2d> >::_Node>::allocate + 0xB bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (1172): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::_Buynode + 0xD bytes
    c:\program files (x86)\microsoft visual studio 9.0\vc\include\list (436): Phenomen.exe!std::list<point2d,std::allocator<point2d> >::list<point2d,std::allocator<point2d> > + 0x67 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_cup.h (19): Phenomen.exe!Cup::Cup + 0xA4 bytes
    0x0034C8A2 (File and line number not available): Phenomen.exe!`eh vector vbase constructor iterator' + 0x62 bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\c_map.cpp (14): Phenomen.exe!Map::Create + 0x4F bytes
    e:\source\visualstudio2008\project\phenomen\phenomen\source\phenomen.cpp (25): Phenomen.exe!WinMain
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): Phenomen.exe!__tmainCRTStartup + 0x35 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): Phenomen.exe!WinMainCRTStartup
    0x75BE3677 (File and line number not available): KERNEL32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77BA9D72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77BA9D45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    18 78 21 00    18 78 21 00    CD CD CD CD    CD CD CD CD     .x!..x!. ........
 
 
Visual Leak Detector detected 10 memory leaks (2632 bytes).
Largest number used: 3116 bytes.
Total allocations: 3636 bytes.
Visual Leak Detector is now exiting.
The program '[1400] Phenomen.exe: Native' has exited with code 0 (0x0).


БЛИЖЕ К ДЕЛУ !
Вот явный пример одной из моих утечек. Как видно из вершины текста утечка памяти не удален объект list и вектор:
C++
1
2
3
4
5
6
7
8
9
10
    point2d pointWay; //  typedef
    std::list<point2d> Way;
/*
struct point2d // extern короче
{
  float x, y;
  point2d(): x(x), y(y) {}
  point2d(float x, float y): x(x), y(y) {}
};
typedef std::vector<point2d> Poly,Border;*/
Как корректно удалить такой объект на
C++
1
 Way.~list(); // Компилятор относиться нормально, при попадании в деструктор программа вылитает !
 
Текущее время: 01:51. Часовой пояс GMT +3.
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Рейтинг@Mail.ru