Click here to Skip to main content
16,004,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGet a pointer to a property page? Pin
DanYELL28-Jul-06 10:25
DanYELL28-Jul-06 10:25 
AnswerRe: Get a pointer to a property page? Pin
Zac Howland28-Jul-06 10:35
Zac Howland28-Jul-06 10:35 
QuestionHow to Extract Single Image (Frame) from a CImageList ?? Pin
MacGadger28-Jul-06 9:23
MacGadger28-Jul-06 9:23 
AnswerRe: How to Extract Single Image (Frame) from a CImageList ?? Pin
Hamid_RT28-Jul-06 22:41
Hamid_RT28-Jul-06 22:41 
QuestionSetup projects can't find MsiLoadr.Bin file Pin
Roj28-Jul-06 9:15
Roj28-Jul-06 9:15 
AnswerRe: Setup projects can't find MsiLoadr.Bin file Pin
Gary R. Wheeler28-Jul-06 15:55
Gary R. Wheeler28-Jul-06 15:55 
Questionplugin development for pocket WMP Pin
Mohammad A Gdeisat28-Jul-06 7:47
Mohammad A Gdeisat28-Jul-06 7:47 
QuestionMemory allocation problem?? Pin
pavanbabut28-Jul-06 7:30
pavanbabut28-Jul-06 7:30 
Hi,
I'm having a general C program where I allocate two variables with predefined amount of memory depending upon the # of seconds user enters (this is a data acquisition program). It looks as follows where sizeof(float64) = 8 bytes-

float64 *dataAI;
dataAI = malloc(acq_time*sizeof(float64)*10000000);

using above I can allocate upto 14sec (acq_time = 14) without any problem, but whenever I try to allocate more than that, it simply does nothing (it allocates nothing) and goes to next statement.

Is there any memory allocation limitation in C??

I tried allocating same amount of memory using two variables rather than one, but even then it allocates only to one variable and does nothing for the second one. As follows (where acq_time = 16 or 18)-

float64 *dataAI1, *dataAI2;
dataAI1 = malloc((acq_time/2)*sizeof(float64)*10000000); //allocates for this
dataAI2 = malloc((acq_time/2)*sizeof(float64)*10000000); // does nothing for this

How can I get around this problem Confused | :confused: Confused | :confused: . Any suggestions??

thanks,
-Pavan
AnswerRe: Memory allocation problem?? Pin
Zac Howland28-Jul-06 7:51
Zac Howland28-Jul-06 7:51 
GeneralRe: Memory allocation problem?? Pin
pavanbabut28-Jul-06 8:51
pavanbabut28-Jul-06 8:51 
GeneralRe: Memory allocation problem?? Pin
Zac Howland28-Jul-06 9:16
Zac Howland28-Jul-06 9:16 
GeneralRe: Memory allocation problem?? Pin
pavanbabut28-Jul-06 9:32
pavanbabut28-Jul-06 9:32 
GeneralRe: Memory allocation problem?? Pin
Zac Howland28-Jul-06 9:46
Zac Howland28-Jul-06 9:46 
GeneralRe: Memory allocation problem?? Pin
pavanbabut1-Aug-06 5:32
pavanbabut1-Aug-06 5:32 
GeneralRe: Memory allocation problem?? Pin
Blake Miller1-Aug-06 12:44
Blake Miller1-Aug-06 12:44 
GeneralRe: Memory allocation problem?? Pin
pavanbabut2-Aug-06 9:40
pavanbabut2-Aug-06 9:40 
GeneralRe: Memory allocation problem?? Pin
Blake Miller2-Aug-06 10:29
Blake Miller2-Aug-06 10:29 
GeneralRe: Memory allocation problem?? Pin
pavanbabut2-Aug-06 13:48
pavanbabut2-Aug-06 13:48 
Questionnewbie requires guidance on named pipe application Pin
eeyor66628-Jul-06 6:31
eeyor66628-Jul-06 6:31 
QuestionHow to set a JPG image to a dialog background ? Pin
Vinod Sankaranarayanan28-Jul-06 6:25
Vinod Sankaranarayanan28-Jul-06 6:25 
AnswerRe: How to set a JPG image to a dialog background ? Pin
Hamid_RT28-Jul-06 6:57
Hamid_RT28-Jul-06 6:57 
GeneralRe: How to set a JPG image to a dialog background ? Pin
Vinod Sankaranarayanan28-Jul-06 19:21
Vinod Sankaranarayanan28-Jul-06 19:21 
GeneralRe: How to set a JPG image to a dialog background ? Pin
Hamid_RT28-Jul-06 21:55
Hamid_RT28-Jul-06 21:55 
Questiontootip for win32 window Pin
Manjunath S28-Jul-06 6:17
Manjunath S28-Jul-06 6:17 
AnswerRe: tootip for win32 window Pin
David Crow28-Jul-06 7:18
David Crow28-Jul-06 7:18 

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.