Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Release version crashing Pin
Abin26-Aug-03 18:13
Abin26-Aug-03 18:13 
GeneralRe: Release version crashing Pin
act_x26-Aug-03 18:42
act_x26-Aug-03 18:42 
GeneralRe: Release version crashing Pin
Abin26-Aug-03 19:04
Abin26-Aug-03 19:04 
GeneralClasses already exist Pin
phaedrus26-Aug-03 17:17
phaedrus26-Aug-03 17:17 
Questionmemory manager hate 1024 and 2048? Pin
novachen26-Aug-03 17:08
novachen26-Aug-03 17:08 
AnswerRe: memory manager hate 1024 and 2048? Pin
igor196026-Aug-03 18:51
igor196026-Aug-03 18:51 
GeneralRe: memory manager hate 1024 and 2048? Pin
novachen26-Aug-03 19:43
novachen26-Aug-03 19:43 
GeneralRe: memory manager hate 1024 and 2048? Pin
igor196026-Aug-03 21:08
igor196026-Aug-03 21:08 
Why 1024 perform much worse than 1023 and 1025 in the same program, even 1025 is bigger than 1024?

You are not allocating 1024 bytes on the Heap and you are not copying 1024 bytes. So, what exactly you want to test?
If speed of memcpy -- then I'll give you an answer: the shorter the better -- just check the code: nothing specific to pow of 2...
If you assume that allocation with size 1024 would be alligned at 1024 address: wrong again -- that is true for HeapAlloc -- you are using new, which is default malloc that in reality is your requested size + 4 bytes in front to be returned by _msize()...

Now I agree, that getting non-linear results seems weird.
However, are you running any kind of optimization?...

I would recommend trying to decrease Z, while making N=M -- see what happens...

"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
GeneralRe: memory manager hate 1024 and 2048? Pin
novachen26-Aug-03 21:47
novachen26-Aug-03 21:47 
GeneralEdit Box Pin
DanYELL26-Aug-03 16:17
DanYELL26-Aug-03 16:17 
GeneralRe: Edit Box Pin
Neville Franks26-Aug-03 16:41
Neville Franks26-Aug-03 16:41 
Generalcome into possession of the operating system Pin
Hellin26-Aug-03 15:58
Hellin26-Aug-03 15:58 
GeneralRe: come into possession of the operating system Pin
Christian Graus26-Aug-03 16:16
protectorChristian Graus26-Aug-03 16:16 
GeneralRe: come into possession of the operating system Pin
Anonymous26-Aug-03 16:23
Anonymous26-Aug-03 16:23 
GeneralRe: come into possession of the operating system Pin
Christian Graus26-Aug-03 16:23
protectorChristian Graus26-Aug-03 16:23 
GeneralRe: come into possession of the operating system Pin
Anonymous26-Aug-03 16:39
Anonymous26-Aug-03 16:39 
GeneralRe: come into possession of the operating system Pin
Christian Graus26-Aug-03 16:40
protectorChristian Graus26-Aug-03 16:40 
GeneralRe: come into possession of the operating system Pin
Anonymous26-Aug-03 16:56
Anonymous26-Aug-03 16:56 
GeneralRe: come into possession of the operating system Pin
Christian Graus26-Aug-03 16:57
protectorChristian Graus26-Aug-03 16:57 
GeneralRe: come into possession of the operating system Pin
Anonymous26-Aug-03 17:07
Anonymous26-Aug-03 17:07 
GeneralRe: come into possession of the operating system Pin
Christian Graus26-Aug-03 17:09
protectorChristian Graus26-Aug-03 17:09 
GeneralRe: come into possession of the operating system Pin
Abin26-Aug-03 17:12
Abin26-Aug-03 17:12 
GeneralRe: come into possession of the operating system Pin
Hellin26-Aug-03 17:18
Hellin26-Aug-03 17:18 
GeneralRe: come into possession of the operating system Pin
Anonymous26-Aug-03 17:32
Anonymous26-Aug-03 17:32 
Questionhow to control msword in my program? Pin
fftongzhi26-Aug-03 15:46
fftongzhi26-Aug-03 15:46 

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.