-
Notifications
You must be signed in to change notification settings - Fork 401
/
CHANGES.txt
390 lines (289 loc) · 16.6 KB
/
CHANGES.txt
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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
Visual Leak Detector (VLD) Version 1.9h (beta)
Change Log / Release Notes
1.9h beta (24 February 2009)
----------------------------
Enhancements:
+ Added support to work with Visual Studio 2008.
Known Bugs/Restrictions:
+ Same bugs/restrictions as version 1.9f.
1.9g beta (16 April 2008)
----------------------------
Bugs Fixed:
+ Another deadlock condition may occur when loading DLLs into the process
being debugged. Special thanks to Eric Bissonnette and Kristian Paradis for
contributing this patch.
Known Bugs/Restrictions:
+ Same bugs/restrictions as version 1.9f.
1.9f beta (18 November 2006)
----------------------------
Bugs Fixed:
+ Deadlocks or access violations may occur when loading DLLs into
multithreaded processes.
+ In multithreaded programs, if the main thread terminates before other
threads in the process, then Visual Leak Detector may cause an access
violation while generating the memory leak report.
Known Bugs/Restrictions:
+ Memory allocations made through calls to functions loaded from a DLL using
delayed loading may not be detected.
+ Support for programs that use MFC 7.0 or MFC 7.1 is not complete yet. Some
memory leaks from such MFC-based programs may not be detected.
+ Visual Leak Detector may report leaks internal to Visual Leak Detector
if the main thread of the process terminates while other threads are still
running.
+ If more than one copy of the same C Runtime DLL is loaded in the process at
the same time, then some leaks may go undetected (note that loading more
than one copy of the C Runtime DLL into a process at the same time is
probably a bad idea to begin with).
1.9e beta (16 November 2006)
----------------------------
New Features/Enhancements:
+ Added a master on/off switch configuration option to vld.ini that can be
used to completely disable Visual Leak Detector.
Bugs Fixed:
+ Numerous deadlock situations. The multithread synchronization scheme has
been completely re-written which should make deadlocks in VLD much less
likey to happen.
+ An access violation will occur in VLD if GetProcAddress is called to obtain
an export's address by ordinal, for certain libraries.
+ Problems may potentially occur when the program being debugged exits due to
the Debug Help Library having been detached from the process too early.
Symptoms might include access violation exceptions or other erratic behavior
just as the program exits and while VLD is generating the leak report.
+ The copy of vld.ini installed in VLD's installation directory overrides any
other copies of vld.ini that are created, even copies placed in the
working directory of the program being debugged.
Known Bugs/Restrictions:
+ Memory allocations made through calls to functions loaded from a DLL using
delayed loading may not be detected.
+ Support for programs that use MFC 7.0 or MFC 7.1 is not complete yet. Some
memory leaks from such MFC-based programs may not be detected.
+ If more than one copy of the same C Runtime DLL is loaded in the process at
the same time, then some leaks may go undetected (note that loading more
than one copy of the C Runtime DLL into a process at the same time is
probably a bad idea to begin with).
1.9d beta (12 November 2006)
----------------------------
Bugs Fixed:
+ Failed assertion "freed == TRUE" pops up when running a program with VLD
without the debugger attached.
+ Some, but not all, multithreaded programs that dynamically load and unload
many DLLs have been known to experience problems, such as deadlocks or
exceptions, when used with VLD.
+ Failed assertion "exportmodule != NULL" pops up when running some programs
with VLD.
+ VLD fails to show file names or function names in the memory leak report for
some programs that are linked with the dynamic CRT library.
+ Access violation exceptions are thrown, but caught by the operating system,
when running some programs with VLD.
1.9c beta (6 November 2006)
---------------------------
New Features/Enhancments:
+ New NSIS installer makes setting up and using VLD much easier.
+ No need to manually copy dbghelp.dll to the right location, VLD will always
find the right version.
+ MFC 8.0 is now fully supported.
+ The memory leak report is now written to the output window much faster.
Support has been added, through a new configuration option, to slow down
the report output for older versions of Visual Studio that have trouble
when it is written too quickly.
Bugs Fixed:
+ All known compatibilities with Visual Studio 2005 have been eliminated.
+ Leaks from calloc may go undetected.
+ Leaks from vector new operator may go undetected.
+ VLDDisable and VLDEnable do not work as expected; some memory leaks that
should be ignored by VLD due to a previous call to VLDDisable are still
reported.
+ Unloading and reloading a previously loaded module may cause leaks that
occur in the module after it was reloaded to go undetected.
+ If vld.h is included in a release build, then the compiler will generate
errors if the VLDEnable or VLDDisable APIs have been used.
1.9b beta (26 October 2006)
---------------------------
Bugs Fixed:
+ Source compiles under Visual Studio 2005 and the binaries are compatible
with applications that link with the Visual Studio 2005 C Runtime Library
(msvcr80d.dll).
Known Restrictions in this Release:
+ Memory allocations made through calls to functions loaded from a DLL using
delayed loading may not be detected.
+ Support for programs that use MFC 7.0, MFC 7.1, or MFC 8.0 is not complete
yet. Some memory leaks from such MFC-based programs may not be detected. A
workaround for this restriction is to forcefully include the MFC DLLs in
memory leak detection, by setting the "ForceIncludeModules" configuration
option to: "mfc70d.dll mfc71d.dll mfc80d.dll" and explicitly adding vld.lib
as an input file on the linker command line (can be added through project
settings by adding it to the list of library modules in the linker options).
This restriction does not apply to programs that use MFC 4.2, which is fully
supported.
1.9a beta (9 March 2006)
------------------------
New Features/Enhancments:
+ All new leak detection engine detects most, if not all, in-process memory
leaks, not just leaks from "new" or "malloc", including COM-based leaks.
+ Packaged as an easier-to-use DLL. There's no longer any need to carefully
decide which modules should be linked with the VLD library. Instead, you
just include the vld.h header file in at least one source file from each
module (DLL or EXE) to be included in memory leak detection.
+ Configuration is done from an INI file instead of using preprocessor macros.
This allows VLD's configuration to be changed without needing to recompile
the program.
+ Many new configuration options have been added. One of the most often
requested option that has been added is the option to save the leak report
to a file instead of, or in addition to, the debugger.
Bugs Fixed:
+ The improved design of the new leak detection engine has resolved all of the
previously known restrictions in version 1.0.
Known Restrictions in this Release:
+ Memory allocations made through calls to functions loaded from a DLL using
delayed loading may not be detected.
+ Support for programs that use MFC 7.0, MFC 7.1, or MFC 8.0 is not complete
yet. Some memory leaks from such MFC-based programs may not be detected. A
workaround for this restriction is to forcefully include the MFC DLLs in
memory leak detection, by setting the "ForceIncludeModules" configuration
option to: "mfc70d.dll mfc71d.dll mfc80d.dll" and explicitly adding vld.lib
as an input file on the linker command line (can be added through project
settings by adding it to the list of library modules in the linker options).
This restriction does not apply to programs that use MFC 4.2, which is fully
supported.
1.0 (5 August 2005)
-------------------
New Features/Enhancements:
+ Memory leak detection can now be selectively disabled and enabled at
runtime, using provided APIs. This provides a straightforward way of
allowing VLD to selectively "ignore" certain allocations. It can also be
used to disable VLD altogether at runtime, improving application performance
without needing to recompile.
+ If there are multiple identical memory leaks (i.e. leaks that originate from
the same call stack and that leak the same size memory block) then VLD can
optionally aggregate all of the repeated leaks, showing only the first such
leaked block in detail in the memory leak report. A tally of the total
number of leaks that match that particular size and call stack accompanies
the information for that leak.
+ When VLD is initialized at program startup, the library type which was
linked-in is displayed. This can help verify that the expected VLD library
(either single-threaded static, multithreaded static, or multithreaded DLL)
is being linked with your program.
+ The Visual Leak Detector name is displayed on most messages output to the
debugger to easily differentiate VLD's output from the output produced by
the built-in memory leak detector.
+ If any of the compile-time configuration options have been changed from
their default values, then the current state of the option is displayed in
the debugger when VLD is initialized.
+ VLD's memory leak self-checking capability (checking for leaks in VLD
itself) can be verified using a new preprocessor macro that allows VLD to
perform a self-test at runtime.
Bugs Fixed:
+ If the MFC libraries are statically linked to the program being debugged,
then MFC will erroneously report memory leaks in the Visual Leak Detector
code and may cause an access violation while attempting to report the false
memory leaks. These bogus leaks are always reported as "client block at
<address>, subtype bf42" and are claimed to be "invalid objects".
+ VLD will leak a fixed-sized block of memory when the program exits if VLD
failed to initialize because the Debug Help library (dbghelp.dll) could not
be loaded.
+ In multithreaded programs, if the program's main thread terminates before
other threads in the same process, then VLD may cause an access violation
while freeing resources used internally by VLD.
0.9i beta (30 April 2005)
-------------------------
New Features/Enhancements:
+ Added support in the source code for x64 architecture. The pre-built
libraries will continue to support 32-bit only. If you need 64-bit support
you'll need to build 64-bit versions of the libraries from source. Note that
x64 is the only 64-bit architecture supported at this time. Itanium (aka
IA-64) is NOT currently supported.
Bugs Fixed:
+ VLD does not report memory leaks that are the result of a failure to free
memory allocated via a call to realloc().
+ In multithreaded programs, if the program's main thread terminates before
other threads in the same process, then VLD may cause an access violation
while checking for memory leaks.
+ If VLD cannot find the source file and line number information for a program
address, the last known file and line number will be repeated in the call
stack section of the memory leak report. The correct behavior should be for
VLD to print "File and line number not available" for that call stack entry.
0.9h beta (22 April 2005)
-------------------------
Bugs Fixed:
+ Access Violations occur at random places within the VLD code when using
VLD version 0.9g.
+ When using VLD version 0.9g, VLD may fail to report some memory leaks.
0.9g beta (22 April 2005)
-------------------------
New Features/Enhancements:
+ Replaced the temporary internal search algorithm with a permanent search
algorithm that is much faster. Programs that dynamically allocate a large
number of memory blocks (tens of thousands or more) will see the most
significant performance boost from this version of VLD versus the previous
version. Overall, this is the fastest version of VLD released to date.
0.9f beta (13 April 2005)
-------------------------
New Features/Enhancements:
+ Changed the internal search algorithm to a temporary simpler, but
more stable algorithm. A permanent algorithm which should be much
more efficient will be in a forthcoming release.
Bugs Fixed:
+ Access Violation at line 319 in vldutil.cpp may occur when running a
program linked with the VLD library.
0.9e beta (12 April 2005)
-------------------------
New Features/Enhancements:
+ VLD no longer uses any STL containers or STL strings. This solves all of the
compatibility problems with Visual Studio .NET when using the pre-built
VLD libraries.
+ The configuration preprocessor macros now work with C programs without the
need to call VLDConfigure from within the program being debugged.
Because VLDConfigure is now obsolete, it has been removed.
+ One new source file (vldutil.cpp) and one new header (vldutil.h) have been
added. They contain utility functions and utility classes that replace
functionality previously performed by STL containers and strings.
+ The VisualLeakDetector global class object is now constructed at C runtime
initialization (i.e. it resides in the "compiler" initialization area).
Because VLD no longer uses any STL components, there is no longer the risk
that VLD will conflict with any STL libraries that also are constructed at
C runtime initialization. The end result is that VLD starts running earlier
and is destroyed later, which leads to more accurate leak detection.
Bugs Fixed:
+ Linking to the VLD 0.9d libraries from the VLD distribution under Visual
Studio .NET results in a number of linker "unresolved external symbol"
errors. Unresolved symbols include "__declspec(dllimport) void __cdecl
std::_Xran(void)" and "__declspec(dllimport) private: void __thiscall
std::basic_string,class std::allocator >::_Eos(unsigned int)", among others.
+ Call stacks do not appear in the memory leak report when linking against
release VLD libraries built from source with Visual Studio .NET.
+ If the preprocessor macro VLD_MAX_DATA_DUMP is defined as 0 (zero), then VLD
will get stuck in an infinite loop, repeatedly printing the same information
while attempting to display the memory leak report in the debugger's output
window.
0.9d beta (30 March 2005)
-------------------------
New Features/Enhancements:
+ This version of VLD brings with it some major changes to the way VLD
interfaces with programs that use it. Instead of requiring that VLD be built
from source and then linked with the application, VLD is now packaged as a
pre-built static library. For those who just want to use VLD and are not
interested in modifying the source, this eliminates the complexities of
building VLD from source. A single header file, vld.h, has been added. To
link with the static library, this header needs to be included in one of the
program's source files. Please see the README.txt file for details on how
these changes affect how to use Visual Leak Detector.
+ The Microsoft Debug Help Library (dbghelp.dll) version 6.3 is now included
with the VLD distribution.
0.9c beta (17 March 2005)
-------------------------
Bugs Fixed:
+ Compile error, "error C2039: 'size' : is not a member of '_CrtMemBlockHeader'"
occurs at line 644 of vld.cpp when building VLD with the VLD_MAX_DATA_DUMP
preprocessor macro defined.
0.9b beta (15 March 2005)
-------------------------
Bugs Fixed:
+ VLD fails to detect memory leaks in class constructors if the objects
constructed are global objects.
+ If a debug executable is built with certain compiler optimizations turned on,
specifically frame pointer omission optimization or automatic inlining, then
theoretically VLD may produce incomplete or inaccurate stack traces or might
fail to produce stack traces altogether.
0.9a beta (12 March 2005)
-------------------------
Initial Public Release