Search

See How to Search for an explanation

Area:
Collection:
Category
[Select All choice in choice boxes to search everything]

Found: 2574 articles, showing 300 - 310
... MFC VC Thread Experts: Possible source of memory corruption Prev Next MFC VC Thread Experts Index Headers Help Home Your browser does not support iframes. Re: Possible source of memory corruption From: "Doug Harrison [MVP]" <dsh@mvps.org> Newsgroups: microsoft.public.vc.mfc Date: Wed, 11 Jun 2008 01:02:29 -0500 Message-ID: <hbnu449j0o881g55lr91tbj6chr3i42d2j@4ax.com> On Tue...

...() {   std::string strZing = g_strBlurb; // CAUSES MEMORY CORRUPTION!         .         . } The above code can cause memory corruption (even if vDoStuff() does nothing except return after the string assignment statement) . How does this cause memory corruption? After all, the above code doesn't modify the shared...
... C++ VC ATL STL Abstract Class Code: data corruption on pointer cast Prev Next C++ VC ATL STL Abstract Class Code Index Headers Help Home Your browser does not support iframes. data corruption on pointer cast From:  gara.matt@gmail.com Newsgroups: comp.lang.c++ Date: Sun, 15 Jul 2007 22:56:56 -0700 Message-ID: <1184565416.404537.101160@m37g2000prh.googlegroups.com> Heyllo, Names matt...

... *** /home/matt/sudokusolver/debug/./src/ sudokusolver: double free or corruption (fasttop): 0x0804d170 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0xb7dba7cd] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7dbde30] /home/matt/sudokusolver/debug/./src/sudokusolver[0x8048d7c] /home/matt/sudokusolver/debug/./src/sudokusolver[0x804ada1] /home/matt/sudokusolver/debug/./src/sudokusolver[0x804aeb...
... C++ VC ATL STL ATL COM Code: Stack getting corrupted Prev Next C++ VC ATL STL ATL COM Code Index Headers Help Home Your browser does not support iframes. Re: Stack getting corrupted From: "Ketchup" <ketchup@ketchup.com> Newsgroups: microsoft.public.vc.language Date: Fri, 12 Dec 2008 14:40:01 -0500 Message-ID: <OOh0tFJXJHA.5272@TK2MSFTNGP04.phx.gbl> Giovanni, thanks. I am...

... but the last char* member gets corrupted on the stack. (Junk in the strings). [...] how can I avoid the issues I am experiencing. Is there a better way of doing this? Can I avoid using MFC CString or std::string types here? I think that your junk-strings problems are caused by incorrect string management done by you. It would be interesting to see some actual code you use to set the strings, to give better...
.... I'm using HTC mobiles phones with samsung 2442 400mhr ARMV4I cpu On Aug 17, 1:40 pm, "Victor Bazarov" <v.Abaza...@comAcast.net> wrote: It sounds like a memory corruption defect in your program (unless it is in the system on which you're running, which I doubt). The usual way to find out when it happens is to put a special breakpoint in your debugger, which should allow to watch for changes...

... and unlikely to be caught any soon :) Debug printouts really work... and it always crashes in exactly the same place. Printouts show that value gets magically changed just before the crash... but who changed it I have no idea. More over after it becomes corrupted vs debugger shows some strange stuff in debugger. The TimerManager is a virtual class, and when it's corrupted vs shows v_ptr as 0. Is vptr a part...
...; I don't understand it. If you reach the return statement, it will be executed. It may cause an exception to be thrown (because str must be copied, and copying a string may throw), but unless you're right at the limit in memory use, it's highly unlikely. Another possibility (very likely, IMHO) is that you've corrupted the free space arena sometime earlier, and you just happened to hit the problem when...

... copying str. debugging took me to a qt class moc_myclass.cpp (it's a qt project in eclipse) to a line where it says "_id -= 1;" inside a function called "int myclass::qt_metacall(...)" I doubt that that's significant, but you never know. More likely something else is corrupt, which results in your stack being corrupted, which results in your returning someplace else than where you...
... C++ VC ATL STL Hash Code: data corruption on pointer cast Prev Next C++ VC ATL STL Hash Code Index Headers Help Home Your browser does not support iframes. data corruption on pointer cast From:  gara.matt@gmail.com Newsgroups: comp.lang.c++ Date: Sun, 15 Jul 2007 22:56:56 -0700 Message-ID: <1184565416.404537.101160@m37g2000prh.googlegroups.com> Heyllo, Names matt, I implemented a set...

.../sudokusolver/debug/./src/ sudokusolver: double free or corruption (fasttop): 0x0804d170 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0xb7dba7cd] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7dbde30] /home/matt/sudokusolver/debug/./src/sudokusolver[0x8048d7c] /home/matt/sudokusolver/debug/./src/sudokusolver[0x804ada1] /home/matt/sudokusolver/debug/./src/sudokusolver[0x804aeb6] /home/matt...
...; I don't understand it. If you reach the return statement, it will be executed. It may cause an exception to be thrown (because str must be copied, and copying a string may throw), but unless you're right at the limit in memory use, it's highly unlikely. Another possibility (very likely, IMHO) is that you've corrupted the free space arena sometime earlier, and you just happened to hit the problem when...

... copying str. debugging took me to a qt class moc_myclass.cpp (it's a qt project in eclipse) to a line where it says "_id -= 1;" inside a function called "int myclass::qt_metacall(...)" I doubt that that's significant, but you never know. More likely something else is corrupt, which results in your stack being corrupted, which results in your returning someplace else than where you...
... C++ VC ATL STL Memory Code: "this" pointer get corrupted after function call Prev Next C++ VC ATL STL Memory Code Index Headers Help Home Your browser does not support iframes. Re: "this" pointer get corrupted after function call From: "Krishs P." <krishs.patil@gmail.com> Newsgroups: comp.lang.c++ Date: Wed, 27 Jun 2012 01:35:27 -0700 (PDT) Message-ID: <da9ba575...

... is clearly a troll posting thx for the reply . but, the code i am working with is pretty much big = and complex, so I described the scenario with short pseudo code. The main p= roblem relies when actual this pointer of "class A" get vanished after call=  to extern function in second shared dll. What I am concerned here is if it=  is case of stack corruption or something. I have checked...
... C++ VC ATL STL Memory Code: "this" pointer get corrupted after function call Prev Next C++ VC ATL STL Memory Code Index Headers Help Home Your browser does not support iframes. Re: "this" pointer get corrupted after function call From: Ian Collins <ian-news@hotmail.com> Newsgroups: comp.lang.c++ Date: Wed, 27 Jun 2012 20:46:38 +1200 Message-ID: <a4vvjeF91rU3@mid.individual.net...

... is if it is case of stack corruption or something. I have checked similar case from gdb forum but no clue. Please wrap your lines! It looks like you problem may be windows rather than C++ related, have you tried a windows group? No actually, this is on linux with gcc compiler suite. here is short debugging session information Ah, dll is the wrong term then. Are you sure everything is built with the same compiler...
... C++ VC ATL STL Memory Code: Run-Time Check Failure #2 - Stack around the variable 'foobar' was corrupted. Prev Next C++ VC ATL STL Memory Code Index Headers Help Home Your browser does not support iframes. Re: Run-Time Check Failure #2 - Stack around the variable 'foobar' was corrupted. From: "(2b|!2b)==?" <void-star@ursa-major.com> Newsgroups: microsoft.public.vc.language...

... corrupted. I would be grateful if anyone can help point out what I may be doing wrong, since I have spent the entire evening trying to fgure it out - to no avail.... Code snippet follows below: typedef struct {     double *data;     long size;     long datasize;     long ipos; } MyArray; typedef struct {    ...

Search time: 0.011 seconds.

How to Search

  • Enter a search word or a sentence (not too long).
  • If you want to search for exact phrase, surround it with quotes (") like "what is love" or "how to meditate". Otherwise there will be lots of false matches.
  • You can use OR between the words if you are looking for articles containing any of those words. Otherwise, all words needs to be present for an article to match your search.
  • You can specify which collection and/or chapter to search. All choice in choice lists - searches all.
  • Search will also search for synonyms and all the words with the same root (stem).