This site is no longer active and is available for archival purposes only. Registration and login is disabled.

LocalAlloc vs. calloc


LocalAlloc vs. calloc

Postby RICoder » May 17, 2003 @ 7:03pm

<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Postby Digby » May 18, 2003 @ 5:58pm

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Postby RICoder » May 18, 2003 @ 11:13pm

<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Postby Guest » May 19, 2003 @ 4:20pm

Guest
 


Postby RICoder » May 19, 2003 @ 6:23pm

<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Postby Guest » May 22, 2003 @ 12:02pm

Guest
 


Postby efortier » May 25, 2003 @ 12:14am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby RICoder » May 25, 2003 @ 8:21am

faster, maybe...mostly because you are not going through the constructor/destructor as you would in your example. You are also going under the assumption that something, like TCHAR, has a valid class definition.

calloc is the same as malloc except that it sets the memory to zeros on allocation.

in essense, all you are doing is allocating raw memory from the heap. it is not instantiated classes or anything else, and it is not bound to any datatype.
<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron