Debug Error Damage
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up What could cause DAMAGE: after normal block error? up vote 0 down vote favorite I keep getting this error after my application is running for 2 days. I've been told it's been some kind of buffer overflow, but is it the only option? The app is written in C++ using Visual C++ 6.0. c++ visual-c++ share|improve this question asked Apr 27 '09 at 12:57 Rodrigo 2,03252234 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote accepted In debug, when you get dynamic buffer by new, a special code gets inserted before and after the buffer to guard the buffer. Ex:
, Windows Desktop Development > Visual C++ Question 0 Sign in to vote Hi, i have a dynamic byte array "ba". i have used it as follows BYTE *ba = new BYTE[len]; //len is non zero ZeroMemory(ba, sizeof(ba)*(len)); memcpy(ba,p_btPgBodyPtr+f_dwStrtTblOff,len); ... .... .... if(ba) delete [] ba; //i get debug error out here can anybody help me solve this problem thanks Monday, April 06, 2009 4:27 PM Reply | Quote Answers http://stackoverflow.com/questions/793375/what-could-cause-damage-after-normal-block-error 1 Sign in to vote It should be:ZeroMemory(ba, sizeof(*ba)*(len)); Note the extra '*'. Otherwise, sizeof(ba) is 4, right? Marked as answer by nobugzMVP, Moderator Tuesday, April 07, 2009 2:23 AM Monday, April 06, 2009 4:36 PM Reply | Quote All replies 1 Sign in to vote It should be:ZeroMemory(ba, sizeof(*ba)*(len)); Note the extra '*'. https://social.msdn.microsoft.com/Forums/vstudio/en-US/d6dd29e2-5116-41b6-b54b-3e3ac23d4857/debug-error-damageafter-normal-block?forum=vcgeneral Otherwise, sizeof(ba) is 4, right? Marked as answer by nobugzMVP, Moderator Tuesday, April 07, 2009 2:23 AM Monday, April 06, 2009 4:36 PM Reply | Quote 0 Sign in to vote thanks brian that did the trick for me. cheers mate! Tuesday, April 07, 2009 10:36 AM Reply | Quote Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.Would you like to participate? Privacy statement Dev Centers Windows Office More... Related Sites Visual Studio Visual Studio Integrate VSIP Program Microsoft .NET Microsoft Azure Connect Forums Blog Facebook LinkedIn Stack Overflow Twitter Visual Studio Events YouTube Developer Resources Code samples Documentation Downloads Products & extensions for Visual Studio REST APIs Testing tools for web developers Videos and tutorials Virtual Labs United States (English) © 2016 Microsoft Terms of Use Trademarks Privacy Statement Site Feedback
DVD VCD Glossary > VideoHelp Forum Index New Posts Today's Posts Rules Register Help Remember Me? Lost password/username? Forum Other Computer Microsoft Debug Error DAMAGE: http://forum.videohelp.com/threads/269529-Microsoft-Debug-Error-DAMAGE-after-Normal-block-(-39) after Normal block (#39) + Reply to Thread Results 1 to 4 of 4 Microsoft Debug Error DAMAGE: after Normal block (#39) Thread Tools Show Printable Version Email this Page Subscribe https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/518361 to this Thread Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Thread 23rd May 200700:06 #1 Denvers Dawgs View Profile View Forum Posts Private Message [url=http]text[/url] Join Date debug error : Feb 2003 Location : Right Behind You. . . My computer keeps getting this error message Microsoft Visual C++Debug Library Program: C\Program Files\Internet Explorer\iexplorer.exe Debug Error DAMAGE: after Normal block (#39) at 0x00DF3E28 any ideas why or how to fix? What We Do In Life, Echoes In Eternity.... Quote 23rd May 200701:43 #2 mats.hogberg View Profile View Forum Posts Private Message debug error damage Member Join Date : Jul 2002 Location : Sweden (PAL) Could be a virus/trojan hiding, as the MS IE .exe is C:\Program Files\Internet Explorer\iexplore.exe not C:\Program Files\Internet Explorer\iexplorer.exe /Mats Give a man a fish, and he'll eat for a day. Teach a man to fish, and he'll eat for life. Quote 23rd May 200716:28 #3 Denvers Dawgs View Profile View Forum Posts Private Message [url=http]text[/url] Join Date : Feb 2003 Location : Right Behind You. . . That extra (r) may just be a typo. I'll double check if the error appears again.... What We Do In Life, Echoes In Eternity.... Quote 24th May 200709:59 #4 Krispy Kritter View Profile View Forum Posts Private Message Member Join Date : Jul 2003 Location : St Louis, MO USA In which case you could try reinstalling or updating IE. Also, I've reinstalled just the service packs before (SP1 and/or SP2) as a fix to oddball errors such as this. Google is your Friend Quote + Reply to Thread Quick Navigation Computer Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums
LearningModern CodeNetworkingOpen SourceStorageToolsDeveloper TypeEmbedded SystemsGame DevMediaTechnical, Enterprise, HPCWebOSAll ToolsAndroid*HTML5Linux*OS X*Windows*ResourcesCode SamplesContact SupportDocumentationFree SoftwareIntel Registration CenterProduct ForumsSDKsResourcesPartner with IntelAcademic ProgramPartner SpotlightBlack Belt DeveloperDeveloper MeshInnovator ProgramSuccess StoriesLearnBlogBusiness TipsEventsVideosSupportContact SupportDeveloper EvangelistsFAQsForums Search form Search You are hereHome › Forums › Intel® Software Development Products › Intel® Visual Fortran Compiler for Windows* FacebookLinkedInTwitterDiggDeliciousGoogle Plus What is up with "Debug Error!" from Microsoft Visual C++ Runtime Library? What is up with "Debug Error!" from Microsoft Visual C++ Runtime Library? FortranFan Tue, 07/22/2014 - 14:02 Does anyone know the root causes of "Debug Error!" from Microsoft Visual C++ Runtime Library that is often accompanied by a message that says "Damage before 0x0... which was allocated by aligned routine"? I'm getting this error in one of my codes when I run the executable build with Debug configuration for Intel 64 (64-bit) with the /dbglibs setting for Fortran Run-time libraries. But the executable built with Release configuration runs with no such error. So I rebuilt the Debug configuration executable with non-debug libraries (i.e., /dbglibs setting removed) and this error disappeared. However I was not getting such an error in my code earlier, so some of my recent changes must have caused this to happen. But I can't figure out what. Note I've unit-tested thoroughly and separately each and every change. The code is quite proprietary, so I can't post it here. Hence I would appreciate if anyone has any pointers on what all I can check in my code. Thanks, RSS Top 4 posts / 0 new Last post For more complete information about compiler optimizations, see our Optimization Notice. FortranFan Tue, 07/22/2014 - 14:16 Fyi I'd run into a similar problem earlier - mentioned in this forum topic https://software.intel.com/en-us/forums/topic/500781 - and the symptoms now are very similar. Since the previous report was about a missing "finalizer", I've checked the FINAL bindings on all the Fortran "classes" I'm using and have not discovered any problem