Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to add automation methods and properties in VC++7.0 Pin
Tim Ranker22-May-02 12:48
Tim Ranker22-May-02 12:48 
Generalstd::string weird behaviour??¿?¿ Pin
Carlos Sánchez García22-May-02 10:27
Carlos Sánchez García22-May-02 10:27 
GeneralRe: std::string weird behaviour??¿?¿ Pin
Joaquín M López Muñoz22-May-02 10:43
Joaquín M López Muñoz22-May-02 10:43 
GeneralRe: std::string weird behaviour??¿?¿ Pin
Dean Goodman22-May-02 10:57
Dean Goodman22-May-02 10:57 
GeneralRe: std::string weird behaviour??¿?¿ Pin
Carlos Sánchez García22-May-02 23:12
Carlos Sánchez García22-May-02 23:12 
GeneralTwo questions: CFileDialog & vector Pin
Dean Goodman22-May-02 9:59
Dean Goodman22-May-02 9:59 
GeneralRe: Two questions: CFileDialog & vector Pin
Chris Losinger22-May-02 10:01
professionalChris Losinger22-May-02 10:01 
GeneralRe: Two questions: CFileDialog & vector Pin
Dean Goodman22-May-02 10:32
Dean Goodman22-May-02 10:32 
Tried the change you suggested for multi-select -- I removed it completely. The result is still the same. The dialog box still hangs with only one file selected.

As for the other code:

CClass1 {
...
  vector data;
...
}
<BR>
CClass2 {
//member funcs
private:
  std::string str;
  int x;
  ... (member variables)
}
<BR>
CClass1* obj;
...
delete obj; //crash here


It's just code stubs, but hopefully that will look better for you. The main issue is just that it always fails when the str member is being deallocated. When unwinding the stack the last calls before the crash are:

1. The string destructor
2. basic_string::_Tidy()
3. std::allocator::deallocate
4. operator delete (void*)

(note that those are cleaned up names since everything is templatized...)

--DG
GeneralRe: Two questions: CFileDialog & vector Pin
Joaquín M López Muñoz22-May-02 11:08
Joaquín M López Muñoz22-May-02 11:08 
GeneralExtended MAPI vs. Outlook Object Model Pin
22-May-02 9:22
suss22-May-02 9:22 
GeneralInserting strings Pin
Emearg22-May-02 8:58
Emearg22-May-02 8:58 
GeneralRe: Inserting strings Pin
Carlos Antollini22-May-02 9:25
Carlos Antollini22-May-02 9:25 
GeneralRe: Inserting strings Pin
Dean Goodman22-May-02 10:02
Dean Goodman22-May-02 10:02 
GeneralRe: Inserting strings Pin
Emearg23-May-02 5:41
Emearg23-May-02 5:41 
GeneralSearching for files in a specific folder and it's subfolders. Pin
redeemer22-May-02 8:58
redeemer22-May-02 8:58 
GeneralRe: Searching for files in a specific folder and it's subfolders. Pin
Chris Losinger22-May-02 9:07
professionalChris Losinger22-May-02 9:07 
GeneralRe: Searching for files in a specific folder and it's subfolders. Pin
redeemer22-May-02 9:09
redeemer22-May-02 9:09 
GeneralRe: Searching for files in a specific folder and it's subfolders. Pin
Chris Losinger22-May-02 9:12
professionalChris Losinger22-May-02 9:12 
GeneralRe: Searching for files in a specific folder and it's subfolders. Pin
Mazdak22-May-02 9:21
Mazdak22-May-02 9:21 
GeneralRe: Searching for files in a specific folder and it's subfolders. Pin
Martin Ziacek22-May-02 9:24
Martin Ziacek22-May-02 9:24 
GeneralWould it work if i did this: Pin
redeemer22-May-02 9:54
redeemer22-May-02 9:54 
GeneralAVIFile & audio Pin
Zizilamoroso22-May-02 8:33
Zizilamoroso22-May-02 8:33 
GeneralSettling Listview subitem color Pin
22-May-02 7:51
suss22-May-02 7:51 
GeneralRe: Settling Listview subitem color Pin
Dana Holt22-May-02 9:36
Dana Holt22-May-02 9:36 
Generalpass variables from an MFC app to external program Pin
kevinsky22-May-02 7:50
kevinsky22-May-02 7:50 

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.