Click here to Skip to main content
15,910,877 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: c++ Project help asap Pin
David Crow9-Aug-06 3:08
David Crow9-Aug-06 3:08 
GeneralRe: c++ Project help asap Pin
klck20009-Aug-06 3:33
klck20009-Aug-06 3:33 
GeneralRe: c++ Project help asap Pin
David Crow9-Aug-06 4:55
David Crow9-Aug-06 4:55 
GeneralRe: c++ Project help asap Pin
klck20009-Aug-06 5:00
klck20009-Aug-06 5:00 
GeneralRe: c++ Project help asap Pin
David Crow9-Aug-06 5:06
David Crow9-Aug-06 5:06 
GeneralRe: c++ Project help asap Pin
klck20009-Aug-06 5:10
klck20009-Aug-06 5:10 
QuestionRe: c++ Project help asap Pin
David Crow6-Oct-06 10:01
David Crow6-Oct-06 10:01 
QuestionGlobal variables crashing my app Pin
Wheatbread8-Aug-06 9:51
Wheatbread8-Aug-06 9:51 
We have 3 variables defined at file scope. The project is for a DLL that's loaded by other modules. The globals are objects that are dynamically allocated within a C++ class method using 'new'. Within the objects, more tables (arrays) are dynamically allocated using 'new'.

We're experiencing 'memory access' crashes when somehow the globals are corrupted. Its weird because the app will work fine for awhile, then get a crash. It can happen at startup, in the middle of using the app, or right before closin the app. These variables must be global and cannot be member variables of the main class. (Long story)

If the DLL is not loaded, no crash occurs. So we're confident its the DLL.

My question, is there a way to ensure that the global pointers remain intact? Or ideas on monitoring the pointers? I thought about using static in the global definition, but wasnt sure about the effect. I also thought about making the globals variables of the main looping function, but figured since I'm calling new, I wouldnt be protected by function scope memory management.

There's something at the DLL level that's screwing us up. We're desperate for a solution to ensure global pointers are not corrupt. Ideas??

TIA,
C
AnswerRe: Global variables crashing my app Pin
Cedric Moonen8-Aug-06 20:26
Cedric Moonen8-Aug-06 20:26 
QuestionCommunication between MainFrm and Document [modified] Pin
titaniumdecoy8-Aug-06 9:41
titaniumdecoy8-Aug-06 9:41 
AnswerRe: Communication between MainFrm and Document Pin
Kiran Pinjala8-Aug-06 21:51
Kiran Pinjala8-Aug-06 21:51 
QuestionPOSTing to Multiple Http Forms Pin
EpicYeti8-Aug-06 9:20
EpicYeti8-Aug-06 9:20 
AnswerRe: POSTing to Multiple Http Forms Pin
led mike8-Aug-06 10:43
led mike8-Aug-06 10:43 
QuestionWhere Can I find a tutorial for Programming for Windows Mobile 2003? [modified] Pin
Coolarj108-Aug-06 8:47
Coolarj108-Aug-06 8:47 
AnswerRe: Where Can I find a tutorial for Programming for Windows Mobile 2003? Pin
Coolarj108-Aug-06 10:33
Coolarj108-Aug-06 10:33 
GeneralRe: Where Can I find a tutorial for Programming for Windows Mobile 2003? [modified] Pin
Trollslayer8-Aug-06 11:41
mentorTrollslayer8-Aug-06 11:41 
QuestionHow to detect happening of file Pin
Max++8-Aug-06 6:43
Max++8-Aug-06 6:43 
QuestionRe: How to detect happening of file Pin
David Crow8-Aug-06 6:59
David Crow8-Aug-06 6:59 
AnswerRe: How to detect happening of file Pin
Max++8-Aug-06 7:10
Max++8-Aug-06 7:10 
GeneralRe: How to detect happening of file Pin
bob169728-Aug-06 7:18
bob169728-Aug-06 7:18 
GeneralRe: How to detect happening of file Pin
David Crow8-Aug-06 7:24
David Crow8-Aug-06 7:24 
AnswerRe: How to detect happening of file Pin
Eric Dahlvang8-Aug-06 10:12
Eric Dahlvang8-Aug-06 10:12 
AnswerRe: How to detect happening of file Pin
Hamid_RT8-Aug-06 20:42
Hamid_RT8-Aug-06 20:42 
QuestionKnowing if a window is going to be visible at creation Pin
Kharfax8-Aug-06 5:33
Kharfax8-Aug-06 5:33 
AnswerRe: Knowing if a window is going to be visible at creation Pin
led mike8-Aug-06 6:12
led mike8-Aug-06 6:12 

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.