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

C / C++ / MFC

 
GeneralRe: MDI MFC application: being able to run it windowless Pin
Maximilien20-Nov-02 7:04
Maximilien20-Nov-02 7:04 
GeneralCStatusBar Document/View Pin
gandalf337320-Nov-02 5:49
gandalf337320-Nov-02 5:49 
GeneralRe: CStatusBar Document/View Pin
RobJones20-Nov-02 7:15
RobJones20-Nov-02 7:15 
GeneralDAO SDK Pin
dan o20-Nov-02 5:28
dan o20-Nov-02 5:28 
GeneralThe Large Access Database ! Pin
Hadi Rezaee20-Nov-02 5:23
Hadi Rezaee20-Nov-02 5:23 
GeneralRe: The Large Access Database ! Pin
dan o20-Nov-02 5:40
dan o20-Nov-02 5:40 
GeneralRe: The Large Access Database ! Pin
Hadi Rezaee20-Nov-02 6:21
Hadi Rezaee20-Nov-02 6:21 
GeneralRe: The Large Access Database ! Pin
Christian Graus20-Nov-02 6:52
protectorChristian Graus20-Nov-02 6:52 
GeneralRe: The Large Access Database ! Pin
Hadi Rezaee20-Nov-02 8:15
Hadi Rezaee20-Nov-02 8:15 
GeneralRe: The Large Access Database ! Pin
Christian Graus20-Nov-02 8:21
protectorChristian Graus20-Nov-02 8:21 
GeneralRe: The Large Access Database ! Pin
Hadi Rezaee20-Nov-02 10:15
Hadi Rezaee20-Nov-02 10:15 
GeneralClipboard Question Pin
Nitron20-Nov-02 5:05
Nitron20-Nov-02 5:05 
GeneralRe: Clipboard Question Pin
User 988520-Nov-02 5:17
User 988520-Nov-02 5:17 
GeneralRe: Clipboard Question Pin
Nitron20-Nov-02 8:00
Nitron20-Nov-02 8:00 
GeneralRe: Clipboard Question Pin
User 988520-Nov-02 8:10
User 988520-Nov-02 8:10 
GeneralRe: Clipboard Question Pin
Nitron20-Nov-02 8:13
Nitron20-Nov-02 8:13 
GeneralRe: Clipboard Question Pin
User 988520-Nov-02 8:53
User 988520-Nov-02 8:53 
GeneralMemory Problems!!! Pin
Paddy20-Nov-02 5:04
Paddy20-Nov-02 5:04 
I hope someone can figure this one out for me!
I have a simple function that takes 400 double values and graphs them in the client area. I run this about 25 times per second to give 25 FPS. This works fine however it uses up all the memory in my computer after about ten minutes!!! In the "Windows Task Manager" the mem usage just keeps increasing until my computer crashes. I'm sure it is this function that is causing the problem because when I leave it out this doesn't happen.
Any ideas?


void function3 (HWND hwnd, double a[], int iLength)
{
HDC hdc;
PAINTSTRUCT ps;
int i;

hdc = GetDC(hwnd);

Rectangle(hdc, 0, 0, 400, 256);

MoveToEx(hdc, 0, 256, NULL);

for (i=1; i< 400; i = i++)
{
int p = (int)a[i];
LineTo(hdc, i, 255-p);
}

EndPaint (hwnd, &ps) ;
}


Thanks in advance,
Paddy
GeneralRe: Memory Problems!!! Pin
Rickard Andersson2020-Nov-02 5:11
Rickard Andersson2020-Nov-02 5:11 
GeneralRe: Memory Problems!!! Pin
Paddy20-Nov-02 6:43
Paddy20-Nov-02 6:43 
GeneralRe: Memory Problems!!! Pin
Nitron20-Nov-02 5:11
Nitron20-Nov-02 5:11 
GeneralRe: Memory Problems!!! Pin
Paddy20-Nov-02 6:44
Paddy20-Nov-02 6:44 
GeneralRe: Memory Problems!!! Pin
Nitron20-Nov-02 6:52
Nitron20-Nov-02 6:52 
GeneralRe: Memory Problems!!! Pin
Paddy20-Nov-02 8:28
Paddy20-Nov-02 8:28 
GeneralRe: Memory Problems!!! Pin
Ravi Bhavnani20-Nov-02 9:23
professionalRavi Bhavnani20-Nov-02 9:23 

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.