Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.dsp file not loading anymore !!DESPERATE CASE!!

Status
Not open for further replies.

lorenzociripenso

Technical User
Nov 17, 2003
11
TH
Dear All,

i'm using VC++ to build a machine vision software. the software is build on a dialog based MFC application. I already got it to work smoothly until, last week when I tried to add more functions to one of my dialogs.
Suddenly the dialog editor started to make errors. I tried to turn the program down and restart it, but as i wanted to load the .dsp file. it didn't load. it did nothing at all. just open VC++. But without workspace. I tried to fix it for five days. And finaly I gave up. Today I started from my latest backup and what happend: same thing again!

Could it be that the dialog is overloaded with controls and variables (about 200, one video window), and for that it starts freaking out? but how can i make changes if i can not restore my workspace??

Thanks a lot for your Help!!!

Greetings from Thailand to the rest of the World!

Lorenz
 
I think you should first open VisualStudio and after that do a File->Open

Ion Filipski
1c.bmp
 
OK. I have news:

I tryed to create a new workspace, by assembling all the files. When i open the resource file "MyProgram.rc" i get the messagebox "Out of Memory".
The problem isn't resolved when i restart my computer...

THANKS again!

Lorenz
 
thanks again. i tried to free some space on the disk. now i have more than one GB free. that should be enough. still the problem persists. i load the recource file and i get a messagebox "out of memory" when i shut down VC++, and try to start again the workspace isn't loading at all other workspaces have no problems.

it's really weired! is there a limit for dialog size?

thanks again.
 
You can try to increase paged memory size. Right click on MyComputer on the desktop, choose properties->Advanced->PerformanceOptions and change... to other size. This is for NT systems(especially win2k). If it does not work, you should reinstall VS or upgrade your computer.

Ion Filipski
1c.bmp
 
OK. The page size is at 400 MB, should be enough. There is no point in reinstalling VC++ as all the earlier versions of the program still work fine and the error occures also on different computers with different OS.

Now I have two suspicions:
1. The dialog editor is overloaded with controls
2. Some irregularity in the new added controls make it unstable

Is one of these two possible?

Thank you!
 
Since something is corruped, everything is possible. Try to see if you could open your project on other computer with VisualStudio. If yes, you sure need to reinstall.

Ion Filipski
1c.bmp
 
Hey! I found a solution in an other Forum now.
The Out of Memory MessageBox comes from the .clw file. This one seems to get to big and I understood it has something to do with the language settings of my dialogs. better to say, if i don't define the language of my dialogs, they make a mess!

Shure this explanation is not very good. But it should give others a hint if they incure to have the same problem...

Thanks a lot to IonFilipski

Cheers
 
The limit on a dialog box is 255, but you can still continue to add more items programmatically (in the WM_CREATE message). so their *technically* is no limit

Skute

"There are 10 types of people in this World, those that understand binary, and those that don't!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top