Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do you increase memory allocation during class initialization? Pin
Mike Dimmick15-Dec-07 14:18
Mike Dimmick15-Dec-07 14:18 
GeneralIO stream manipulators inside a class Pin
Lutosław15-Dec-07 10:13
Lutosław15-Dec-07 10:13 
GeneralRe: IO stream manipulators inside a class Pin
Mike Dimmick15-Dec-07 15:01
Mike Dimmick15-Dec-07 15:01 
GeneralRe: IO stream manipulators inside a class Pin
Lutosław16-Dec-07 8:43
Lutosław16-Dec-07 8:43 
GeneralChallenging Visual Programing Code Required Pin
Moon009215-Dec-07 7:37
Moon009215-Dec-07 7:37 
GeneralRe: Challenging Visual Programing Code Required Pin
Mike Dimmick15-Dec-07 7:45
Mike Dimmick15-Dec-07 7:45 
GeneralRe: Challenging Visual Programing Code Required Pin
Moon009217-Dec-07 5:58
Moon009217-Dec-07 5:58 
QuestionWhy is it dumping so much afxtempl.h text in DEBUG BINARY (Problem Youtube Video)... Pin
sureshbskumar15-Dec-07 5:33
sureshbskumar15-Dec-07 5:33 
Respected All contributors,

I am developing a program to be run in all windows platform. Its running in tablet and desktop pc. The code was portable to WM5.0 and its running in the release mode. When i build it in DEBUG mode the file size is very big (28MB). The emulator says "System running crtially low in resources", which can be understood. The debug version of the file in Windows Desktop is about 15MB. It has many graphics files embeeded and i have reduced the size of those files including a 246BYTE graphics file for all resources.

I opened the DEBUG file in BINARY format in VS to see wether it has any reference to any BIG BINARY FILES. I have seen that it has allmost 9MB of text which directly or indirectly pointing to "AFXTEMPL.H"
For Example::
H:\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include\afxtempl.h
Or
f:\sp\vctools\vc7libsce\ship\atlmfc\include\afxtempl.h


While the directory does not exist in my system. The text is approximately 9MB. I dont know what has caused the compiler to include so much text to the DEBUG binary and its causing the DEBUG file to be big in size and unable to load in EMULATOR.

I did check with mcafee virus scan for any virus, it said no viruses detected. I created an MFC smart Device Application in SDI format and run it without adding any code to the default AppWizard generated files. It also shows similar problem and included a BIG size of text similar to the above shown text in the DEBUG build. All the MFC related projects shows the same problem, wether its dll , activex or standalone.

This is a cad project and does not have any linking to ODBC or DB or any other similar items. It uses the GDI and no external libraries, but since the AppWizard generated files itself showing the problem. There might be something else wrong!!!

Recreate the problem:
Start MS VC 2005 Sp1. File -> New -> Project -> Smart Device -> MFC Smart Device Application
Platforms -> Windows Mobile 6.0 Profesional SDK
Finish. & Run
Open the file in the VS Editor (MS VC 6.0 eVC4.0 or 3.0) in binary mode. Search for text "afxtempl.h" in the created executable file in debug mode. Thanks in advance for your effort. The file that was created on my machine for the form view SDI is (1,631,232 bytes). Is that normal?


I request all the contrinutors to give some light into this if you had faced similar problems or heard of it!!!

I have added a youtube video showing the problem::
http://www.youtube.com/watch?v=nA2d3gCtglk

All Comments and thoughts welcome...

Thank you very much for your time,
Have a nice Day.
Sincerely
Suresh Kumar

GeneralRe: Why is it dumping so much afxtempl.h text in DEBUG BINARY (Problem Youtube Video)... Pin
Mike Dimmick15-Dec-07 7:42
Mike Dimmick15-Dec-07 7:42 
GeneralRe: Why is it dumping so much afxtempl.h text in DEBUG BINARY (Problem Youtube Video)... Pin
sureshbskumar15-Dec-07 8:41
sureshbskumar15-Dec-07 8:41 
GeneralRe: Why is it dumping so much afxtempl.h text in DEBUG BINARY (Problem Youtube Video)... Pin
Mike Dimmick18-Dec-07 12:01
Mike Dimmick18-Dec-07 12:01 
QuestionHow to use classes? Pin
Anthony Appleyard15-Dec-07 2:59
Anthony Appleyard15-Dec-07 2:59 
AnswerRe: How to use classes? Pin
Hamid_RT15-Dec-07 3:16
Hamid_RT15-Dec-07 3:16 
AnswerRe: How to use classes? Pin
CPallini15-Dec-07 3:26
mveCPallini15-Dec-07 3:26 
GeneralRe: How to use classes? Pin
Anthony Appleyard15-Dec-07 11:00
Anthony Appleyard15-Dec-07 11:00 
GeneralRe: How to use classes? Pin
Mark Salsbery15-Dec-07 11:36
Mark Salsbery15-Dec-07 11:36 
AnswerRe: How to use classes? Pin
Mark Salsbery15-Dec-07 11:43
Mark Salsbery15-Dec-07 11:43 
GeneralNew program queries Pin
Anthony Appleyard15-Dec-07 2:54
Anthony Appleyard15-Dec-07 2:54 
GeneralRe: New program queries Pin
Hamid_RT15-Dec-07 3:17
Hamid_RT15-Dec-07 3:17 
GeneralRe: New program queries Pin
CPallini15-Dec-07 3:28
mveCPallini15-Dec-07 3:28 
GeneralProblem when using DllMain() function Pin
ashishbhatt15-Dec-07 2:06
ashishbhatt15-Dec-07 2:06 
GeneralRe: Problem when using DllMain() function Pin
Mike Dimmick15-Dec-07 7:53
Mike Dimmick15-Dec-07 7:53 
GeneralRe: Problem when using DllMain() function Pin
ashishbhatt15-Dec-07 17:27
ashishbhatt15-Dec-07 17:27 
GeneralRe: Problem when using DllMain() function Pin
Mark Salsbery15-Dec-07 8:07
Mark Salsbery15-Dec-07 8:07 
GeneralGDI+ How to mask an image with a mask bitmap Pin
followait15-Dec-07 2:00
followait15-Dec-07 2:00 

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.