Click here to Skip to main content
15,885,048 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: delete from text file Pin
ThatsAlok22-Mar-05 18:32
ThatsAlok22-Mar-05 18:32 
GeneralRe: delete from text file Pin
shaans22-Mar-05 20:07
shaans22-Mar-05 20:07 
GeneralRe: delete from text file Pin
ThatsAlok22-Mar-05 22:51
ThatsAlok22-Mar-05 22:51 
GeneralRe: delete from text file Pin
shaans22-Mar-05 23:37
shaans22-Mar-05 23:37 
GeneralRe: delete from text file Pin
ThatsAlok23-Mar-05 1:08
ThatsAlok23-Mar-05 1:08 
GeneralMysterious new[] and delete[] problem! Pin
Erik Hammar22-Mar-05 12:57
Erik Hammar22-Mar-05 12:57 
GeneralRe: Mysterious new[] and delete[] problem! Pin
Serge Krynine22-Mar-05 22:04
Serge Krynine22-Mar-05 22:04 
GeneralRe: Mysterious new[] and delete[] problem! Pin
Erik Hammar23-Mar-05 2:12
Erik Hammar23-Mar-05 2:12 
Hello, and thanks for your reply!

I don't think it's the delete[] operator that is the problem right now.
I print the pointer that I obtain with _aligned_malloc to the screen (in
my overloaded operator new[]) and then print the pointer obtained by
_using_ the the new[] operator, the latter being unaligned and pointing
to my actual data... so something happens between the aligned allocation
in the overloaded new[] function and my assignment of the new pointer; e.g:
Pointer with _aligned_malloc = 0x00a40030 (aligned on 16-byte boundary).
Pointer after assigning the final object with new[] = 0x00a40034 (not aligned).
Even worse, the compiler seems to add extra extra info there in debug mode
- no simple workaround, such as adding and subtracting 4 bytes to the address.
So I need to be able to completely handle this on my own for my program to work...
hasn't anybody programmed with SSE instructions and come across this problem? Cry | :((

The delete[] operator will be a later problem, correct allocation is the most
important thing right now, so that the program doesn't crasch. Smile | :)

Thanks
GeneralMFC Dialog question Pin
Steve Messer22-Mar-05 11:41
Steve Messer22-Mar-05 11:41 
GeneralRe: MFC Dialog question Pin
Phil J Pearson23-Mar-05 0:00
Phil J Pearson23-Mar-05 0:00 
GeneralRe: MFC Dialog question Pin
Steve Messer23-Mar-05 4:57
Steve Messer23-Mar-05 4:57 
GeneralIp Spoofing using Winsock API Pin
TheBurninator22-Mar-05 11:36
sussTheBurninator22-Mar-05 11:36 
Generalresource .dll and MDI Pin
Ben D.22-Mar-05 10:15
Ben D.22-Mar-05 10:15 
GeneralRe: resource .dll and MDI Pin
Phil J Pearson23-Mar-05 0:05
Phil J Pearson23-Mar-05 0:05 
GeneralRe: resource .dll and MDI Pin
Ben D.23-Mar-05 2:00
Ben D.23-Mar-05 2:00 
GeneralUsing the Debug Window Pin
jerry1211a22-Mar-05 9:45
jerry1211a22-Mar-05 9:45 
GeneralRe: Using the Debug Window Pin
David Crow22-Mar-05 10:36
David Crow22-Mar-05 10:36 
GeneralRe: Using the Debug Window Pin
jerry1211a22-Mar-05 11:40
jerry1211a22-Mar-05 11:40 
GeneralRe: Using the Debug Window Pin
David Crow22-Mar-05 16:43
David Crow22-Mar-05 16:43 
GeneralStupid Questions on C++ .NET Pin
Anonymous22-Mar-05 8:44
Anonymous22-Mar-05 8:44 
GeneralRe: Stupid Questions on C++ .NET Pin
Chris Losinger22-Mar-05 11:07
professionalChris Losinger22-Mar-05 11:07 
GeneralRe: Stupid Questions on C++ .NET Pin
Andrew Walker22-Mar-05 13:56
Andrew Walker22-Mar-05 13:56 
GeneralRe: Stupid Questions on C++ .NET Pin
Anonymous23-Mar-05 4:41
Anonymous23-Mar-05 4:41 
GeneralRe: Stupid Questions on C++ .NET Pin
Serge Krynine22-Mar-05 22:13
Serge Krynine22-Mar-05 22:13 
GeneralRe: Stupid Questions on C++ .NET Pin
Ravi Bhavnani23-Mar-05 2:45
professionalRavi Bhavnani23-Mar-05 2:45 

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.