Click here to Skip to main content
15,921,884 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to get a memory address into a CString Pin
USAFHokie8019-Sep-07 11:06
USAFHokie8019-Sep-07 11:06 
QuestionRe: how to get a memory address into a CString Pin
David Crow20-Sep-07 2:39
David Crow20-Sep-07 2:39 
AnswerRe: how to get a memory address into a CString Pin
Nathan Holt at EMOM19-Sep-07 11:40
Nathan Holt at EMOM19-Sep-07 11:40 
AnswerRe: how to get a memory address into a CString Pin
Mark Salsbery19-Sep-07 11:43
Mark Salsbery19-Sep-07 11:43 
AnswerRe: how to get a memory address into a CString Pin
ThatsAlok19-Sep-07 20:37
ThatsAlok19-Sep-07 20:37 
Questioncheck file status Pin
panrunling19-Sep-07 10:41
panrunling19-Sep-07 10:41 
AnswerRe: check file status Pin
David Crow19-Sep-07 10:56
David Crow19-Sep-07 10:56 
GeneralRe: check file status Pin
panrunling19-Sep-07 11:05
panrunling19-Sep-07 11:05 
QuestionRe: check file status Pin
David Crow19-Sep-07 18:12
David Crow19-Sep-07 18:12 
Question"filename.chm not a windows help file, or the file is corrupted" Pin
tingu19-Sep-07 9:09
tingu19-Sep-07 9:09 
QuestionFast serialization Pin
Budric B.19-Sep-07 9:07
Budric B.19-Sep-07 9:07 
AnswerRe: Fast serialization Pin
El Corazon19-Sep-07 10:10
El Corazon19-Sep-07 10:10 
QuestionRe: Fast serialization Pin
David Crow19-Sep-07 10:34
David Crow19-Sep-07 10:34 
AnswerRe: Fast serialization Pin
Budric B.19-Sep-07 10:53
Budric B.19-Sep-07 10:53 
GeneralRe: Fast serialization Pin
David Crow19-Sep-07 10:55
David Crow19-Sep-07 10:55 
GeneralRe: Fast serialization Pin
Budric B.19-Sep-07 11:10
Budric B.19-Sep-07 11:10 
GeneralRe: Fast serialization Pin
David Crow20-Sep-07 2:38
David Crow20-Sep-07 2:38 
AnswerRe: Fast serialization Pin
Mark Salsbery19-Sep-07 11:52
Mark Salsbery19-Sep-07 11:52 
GeneralRe: Fast serialization Pin
Budric B.20-Sep-07 6:08
Budric B.20-Sep-07 6:08 
QuestionRe: Fast serialization Pin
led mike19-Sep-07 12:04
led mike19-Sep-07 12:04 
AnswerRe: Fast serialization Pin
Nathan Holt at EMOM19-Sep-07 12:07
Nathan Holt at EMOM19-Sep-07 12:07 
GeneralRe: Fast serialization Pin
Budric B.20-Sep-07 6:19
Budric B.20-Sep-07 6:19 
GeneralRe: Fast serialization Pin
Nathan Holt at EMOM20-Sep-07 8:59
Nathan Holt at EMOM20-Sep-07 8:59 
Budric B. wrote:
It doesn't have that much behavior other than a constructor and a destructor to free the memory. The reason I was doing it this way was because I would be adding more data members to describe the data later. But you're probably right that it wouldn't add that much performance loss to write each data member. I'll have to time it and see.


Watch out for the copy constructor and assignment operator, since the compiler will generate invalid forms and call them freely.

Budric B. wrote:
I've made a workaround where I allocate 2 buffers, 1 for the object and one for the data, the rest of the code stays the same. That doesn't trigger the assertion. However I don't know if the object's memory gets freed or not since I'm still calling delete Voxels and not delete [] voxels;


I think that should work. The main difference between delete and delete[] is the way destructors are called, which shouldn't be a problem if it's just data.

Nathan
QuestionTrapping DDE messages Pin
__DanC__19-Sep-07 6:16
__DanC__19-Sep-07 6:16 
AnswerRe: Trapping DDE messages Pin
Roger Broomfield19-Sep-07 18:25
Roger Broomfield19-Sep-07 18:25 

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.