Link to home
Start Free TrialLog in
Avatar of Sanad78
Sanad78

asked on

Out of Memory ..... why ?!?!?!?!?!?!?!?

hi experts
my problem is with VC++ under XP Platform with 512 RAM in P4 Processor 2.4GH ...
I have a project with 70 dialogs and here .cpp & .h files ... when I load the project from => open workspace <= the .clw file will destroyed ... why?!?!?! i dont know ...
ok ... i closed the project then i went to the project folder and delete the .clw file and return to start the visual c++ platform and loadin the project from => Open Workspace <= .. its ok ... when i want to call classwizard the message will appear to aske me to rebuild .clw .. i choose yes .. then select all the files i need ... then the classwizard will shown .. if i need to call classwizard again the message "out of memory" will appear .. if i choose the events from classwizrd Bar there is another message will appear "all wizardBar Commands are currently Unavailable" then the Wizard Bar be as Disable ... if i try to call the events option from the pop up menu in the any spicific control this message will appear "ou of Memory. Unable to complete the command" ..
.....
i tried to delete .opt file , .ncb file , .aps file , .dsw file , .clw file and loading the proejct from .dsp file .... but the same happend
i tried to install service back for Visual Studio 6.0 and service back for Xp ... but nothing don
i tried to chang the computer .. but the same
i tried to chang the OS .. i tried in NT2000 .... but the same problems .. no changes
.....
when i work in my last computer P3 / 733MH / 256Ram / Xp Platform OS .. there is nothing its work great
.....
there is no problem when i compile or craete exe file or in working in the program (project) under any OS or Any computer ....
but Only .clw file destroyed ... why?!?!?! i dont know ...
in MSDN there is somthing like this QID : Q104238
but they said is .clw file > 65530 bytes ... but my .clw file not more 40k .........????????????/

thanx experts

Sanad
Avatar of DanRollins
DanRollins
Flag of United States of America image

I think that one of the ClassWizard internal objects has gotten corrupted.  I suggest deleting the clw file and then adding just some of the files.  If that works, do it again, but add a few more... etc.

Another thing I've done is to manually edit the resource.h file and clean up the resource symbols.  This gets to be enourmous with lots of items having conflicting values, lots of old unused constants, etc.   It usually doesn't matter, but who knows, there might be something in there that looks suspicious and can be fixed manually.  Note: Whenever you manually edit any resource-related file, be sure to do a complete clean and then a rebuild.
Avatar of Sanad78
Sanad78

ASKER

thanx Dan ... but if i delete .clw file and re bulit it again with one ... the same will done ... i dont know why that happend ...
about manually .. i dont know how to do it manually but i think this is not a suitable solution
Try recreating the project from scratch.  Looks like something in the project file has got corrupted.  Either that or there is some structure that is confusing the compiler.

I've had this problem before but never figured out why it happened.  Works fine on NT but doesn't work in 2K or XP.  Create a new project, add all the files and everything works!  Sometimes, the order in which you add the files matters (it did on Visual Studio 2002 anyway).
Avatar of Sanad78

ASKER

hi cup .. at first there is no error in compiler .. the error in the screen of VC++ ... VC++ platform ... when calling classwizard the message will appear <Out Of Memory .>

the second thing .. its dose not work in NT or in Xp in the new computer .... but its work fine in Old computer.

the 3rd thing if i create a new project the same problem will happend

thanx
Look into the clw file -- it is a text file.  It is hard to understand, and it does require that you actually try, and not give up and not say that it will not help.  But near the end of that file, I think you will see something strange or funny that will make you laugh ha ha or cry boo hoo.  
Dan,

He wants a SIMPLE and EASY solution to this problem, NOT a complex and difficult one. Why can't you give him such a solution?
jhance, everyone on this planet strives for easy solutions -- at times, though, especially in the field of software development, they are scarce and if I _absolutely_ _needed_ to solve a problem, I'd be happy to hear _ANY_ suggestion, however hard it may turn out to be.

Rejecting a suggestion as "not a suitable solution" possibly locks himself out of ever solving this problem. So I'd say that Dan has a point there, put in simple terms: learn about the tools you are about to use, or shoot yourself in the leg.

Moreover, Dan has actually offered help where you, jhance, only disregarded his suggestions as too hard and not simple enough. If there were an easy solution, I'm sure everyone around here knew about it already. As things turn out, there may not be one.

.f
Butt out!  Dan knows what I'm talking about here.
Thank you for the kind response, I do appreciate it.

.f
Avatar of Sanad78

ASKER

hi experts (All)
.. i m sorry Dan, when i say "This is not a suitable solution " .. i say "i think this is not a suitable solution" soo i said "I think" befor all .. so I'm not said any things not suitable for your suggestion ...
and I say that because the error not in .clw file ..... the error from VC++ Platform (VC++ Editor) .. @ end thaaaaax Dan

Dear jhance .. thank u .. i think u understand what i mean when i said "i think this is not a suitable solution". thanx for your response ...

Mr fl0yd ... thanx .. but i think u now understand what i mean ?!
and surely i appreciate all suggestions .. and more and more when come from experts Persons

@ the end experts thaaanx ... and because i m very hurried person spicial for this problem .. i found the solution from persons from outside ... again thaaaaaaanx experts (All)

sanad
Sanad78,
>> i found the solution from persons from outside

Please post a quick summary of how you solved this problem.  That way, when someone else has a similar problem, we will all know how to help him solve it.  To gain such knowledge will make my heart sign with joy,  tra la la!

jhance,
  ;-)

-- Dan
ASKER CERTIFIED SOLUTION
Avatar of Sanad78
Sanad78

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sanad78,
Thanks for the explanation.  Now I understand what was happening.  This would be a good Question to have in the EE question database.  I will recommend to a Community Support Moderator to refund your points and to save this question in the database.  
- Dan
Avatar of Sanad78

ASKER

thaaaaaaanx Experts

sanad
I had the same problem, except in my case the project wouldn't even open, just give the "out of memory" box. And now thanks to you, experts, my project is working again. I opened the .clw file, and cleaned it a bit (that is gave the right language name to the dialogs, which language was uknown, and deleted the extra resources that VS environment added automatically). and it worked.

Again, thanks a lot.
Avatar of Sanad78

ASKER

u r welocm rimma ...

sanad