Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCHAT PROGRAMME Pin
bodhi20167-Jul-08 7:37
bodhi20167-Jul-08 7:37 
AnswerRe: CHAT PROGRAMME Pin
Mark Salsbery7-Jul-08 7:46
Mark Salsbery7-Jul-08 7:46 
QuestionGet Mouse Click position Pin
Like2Byte7-Jul-08 7:29
Like2Byte7-Jul-08 7:29 
AnswerRe: Get Mouse Click position Pin
Mark Salsbery7-Jul-08 7:48
Mark Salsbery7-Jul-08 7:48 
GeneralRe: Get Mouse Click position Pin
Like2Byte7-Jul-08 10:01
Like2Byte7-Jul-08 10:01 
GeneralRe: Get Mouse Click position PinPopular
James R. Twine7-Jul-08 10:57
James R. Twine7-Jul-08 10:57 
QuestionExecutable crashes with Debug version and works fine with Release version Pin
lokare_atul7-Jul-08 4:37
lokare_atul7-Jul-08 4:37 
AnswerRe: Executable crashes with Debug version and works fine with Release version Pin
Matthew Faithfull7-Jul-08 5:35
Matthew Faithfull7-Jul-08 5:35 
There's 2 big differences between Release and Debug in this case, _malloc_dbg which you can see in your stack trace is a good deal more complex than the malloc that gets called in Release, it does a lot more checking and the allocations it creates have extra debug headers, about 20 bytes per alloc if I remember rightly, so you could have an issue of overlapped buffers or a fixed buffer being overflowed for example which only shows up in Debug. Usually that wouldn't cause an Access violation directly but it's possible. VC6 code is less robust and may not pick up the error and fall over trying to report it which would be what is happening in VS 2003. Much more likely is the second difference, Debug code is slower ~30% slower than Release and in VS.Net2003 may also be doing extra inline stack verification, exception management and security stuff on each call. It's only a guess but I would shoot for you having a marginal sychronisation problem in your code which has never showed up before. Probably only shows when some part of the code is really slow compared to another. You need to check all your shared (between threads) variables, especially any shared memory allocated on the heap.

"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)

QuestionService Programming - How to tell if the current process is running as a Windows Service.. Pin
Mike Doner7-Jul-08 3:38
Mike Doner7-Jul-08 3:38 
AnswerRe: Service Programming - How to tell if the current process is running as a Windows Service.. Pin
Iain Clarke, Warrior Programmer7-Jul-08 3:46
Iain Clarke, Warrior Programmer7-Jul-08 3:46 
AnswerRe: Service Programming - How to tell if the current process is running as a Windows Service.. Pin
KarstenK7-Jul-08 3:48
mveKarstenK7-Jul-08 3:48 
AnswerRe: Service Programming - How to tell if the current process is running as a Windows Service.. Pin
Nibu babu thomas7-Jul-08 17:41
Nibu babu thomas7-Jul-08 17:41 
QuestionArray of pointers to functions Pin
softwaremonkey7-Jul-08 3:37
softwaremonkey7-Jul-08 3:37 
AnswerRe: Array of pointers to functions Pin
Iain Clarke, Warrior Programmer7-Jul-08 4:04
Iain Clarke, Warrior Programmer7-Jul-08 4:04 
QuestionRe: Array of pointers to functions Pin
David Crow7-Jul-08 4:24
David Crow7-Jul-08 4:24 
AnswerRe: Array of pointers to functions Pin
softwaremonkey8-Jul-08 1:20
softwaremonkey8-Jul-08 1:20 
QuestionMigration Approach Pin
Member 35010957-Jul-08 2:55
Member 35010957-Jul-08 2:55 
QuestionAdo slow connection to sql server when compiled with VS2008 Pin
peterboulton7-Jul-08 2:26
professionalpeterboulton7-Jul-08 2:26 
QuestionQuery on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm7-Jul-08 1:48
ComplexLifeForm7-Jul-08 1:48 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
KarstenK7-Jul-08 2:29
mveKarstenK7-Jul-08 2:29 
GeneralRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm7-Jul-08 8:40
ComplexLifeForm7-Jul-08 8:40 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
Saurabh.Garg7-Jul-08 15:48
Saurabh.Garg7-Jul-08 15:48 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
Saurabh.Garg7-Jul-08 15:50
Saurabh.Garg7-Jul-08 15:50 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm9-Jul-08 2:28
ComplexLifeForm9-Jul-08 2:28 
Questionhow can I display a bitmap with an alpha chanel? Pin
danginkgo7-Jul-08 1:18
danginkgo7-Jul-08 1:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.