Click here to Skip to main content
15,914,246 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: c++ Pin
Member 14741-Jun-00 9:31
Member 14741-Jun-00 9:31 
GeneralRe: c++ Pin
Brigg Thorp2-Jun-00 1:19
Brigg Thorp2-Jun-00 1:19 
GeneralRe: c++ Pin
Member 7505-Jun-00 18:12
Member 7505-Jun-00 18:12 
GeneralFirst-chance exception Pin
nickinchina30-May-00 9:56
nickinchina30-May-00 9:56 
GeneralRe: First-chance exception Pin
Tim Deveaux30-May-00 13:04
Tim Deveaux30-May-00 13:04 
GeneralRe: First-chance exception Pin
Arvind2330-May-00 13:53
Arvind2330-May-00 13:53 
GeneralAccess Violation Pin
Adam Clauss30-May-00 5:58
Adam Clauss30-May-00 5:58 
GeneralRe: Access Violation Pin
Paolo Messina30-May-00 7:54
professionalPaolo Messina30-May-00 7:54 
Usually, posting the problem 4 times does not solve it Smile | :)

More seriously, did you try the debug version? Does it have the same problem?
I remember that once I had the same problem, and it only came out in the Release version, but I can't remember what was the cause.
Before your test, try to do a complete rebuild. Sometimes this helps.
Then, you should look at your dialog code first, instead of some address in MFC42.DLL .

Probably you are passing a temporary object to a member function, which stores it somewhere. When the object falls out of scope it is destroyed; so when you close the dialog, some other private member tries to access an object that no longer exists and you have an Access Violation.
Look for the calls in which you pass a pointer, check if that functions set some internal variable with that pointer. If so, the pointed object should live as long as the dialog and you should make it a member of your derived dialog class.

Good luck,
Paolo
GeneralRe: Access Violation Pin
Adam Clauss30-May-00 9:11
Adam Clauss30-May-00 9:11 
GeneralRe: Access Violation Pin
Paolo Messina30-May-00 10:35
professionalPaolo Messina30-May-00 10:35 
GeneralRe: Access Violation Pin
Adam Clauss30-May-00 13:18
Adam Clauss30-May-00 13:18 
GeneralRe: Access Violation Pin
Paolo Messina31-May-00 5:09
professionalPaolo Messina31-May-00 5:09 
GeneralRe: Access Violation Pin
Peter Zajac31-May-00 4:38
Peter Zajac31-May-00 4:38 
GeneralRe: Access Violation Pin
Adam Clauss31-May-00 5:20
Adam Clauss31-May-00 5:20 
GeneralAccess Violation Pin
Adam Clauss30-May-00 5:56
Adam Clauss30-May-00 5:56 
GeneralAccess Violation Pin
Adam Clauss30-May-00 5:55
Adam Clauss30-May-00 5:55 
GeneralAccess Violation Pin
Adam Clauss30-May-00 5:52
Adam Clauss30-May-00 5:52 
QuestionHow make framework accessible? Pin
Martin Hellspong30-May-00 4:58
Martin Hellspong30-May-00 4:58 
QuestionHow make framework accessible? Pin
Martin Hellspong30-May-00 4:57
Martin Hellspong30-May-00 4:57 
GeneralSTL Pin
Member 432129-May-00 18:45
Member 432129-May-00 18:45 
GeneralRe: STL Pin
Uwe Keim29-May-00 20:54
sitebuilderUwe Keim29-May-00 20:54 
GeneralRe: STL Pin
Member 432130-May-00 6:41
Member 432130-May-00 6:41 
GeneralSTL Pin
Member 432129-May-00 18:44
Member 432129-May-00 18:44 
GeneralRICHDIT Background Pin
Eric29-May-00 16:20
Eric29-May-00 16:20 
GeneralAccessing Newly creating file Pin
Member 398529-May-00 12:15
Member 398529-May-00 12:15 

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.