Click to See Complete Forum and Search --> : resource.rc file size increases abruptly
curioustoknow
December 27th, 2003, 05:17 AM
hi everyone :) !
i m using VC++ 6.0 on Win98. My application has MSFlexGrid control. Initially size of resource.rc file was 40KB. Then I changed the position of Flexgrid. The size of resource.rc file increased to more than 160KB. Now everytime i change any of the properties of flexgrid, size or resource.rc file is increasing abruptly. Can anybody explain why its happening and hw to get out of it.
curioustoknow
quangnt
December 30th, 2003, 05:14 AM
Sorry, I don't know exactly why it is. And I have not searched any documnet explaining officially about this phenomenon. When programming with FlexGrid you should keep in mind to backup resource file. Each time you change properties or rebuild project, the resource file's size may increase. In case it is too big, it is safe to restored the last backuped file.
In my mind, I think that FlexGrid do not manage memory well in case number of rows is big and change frequency is high. I am checking to confirm my though? Do anyone sure whether I am true or not, please let me know. Thanks in advanced.
Doctor Luz
December 30th, 2003, 05:45 AM
This is a known bug of MSFlexGrid control.
You can find some threads about this.
This is caused when you repeatedly "touch" a MSFlexGrid you have placed in your resources. The resource file begins to grow. It is not clear why. It not happens always.
You can recover your resource file.
First open the resource.rc file in text mode you will find a bunch of zeroes lines in the definition of the MSFlexGrid. Something like:
0x0000 0x0000 0x0000... until infininte.
Delete the zeroes lines and save the resource file.
Now if you open the resource file again, with the resource editor and open the dialog with the MSFlexGrid. Remove it and place other MSFlexGrid again with the same ID.
I have read that Hierarchical MSFlexGrid Control Ver 6 does not have this problem and behaves almost the same that MSFlexGrid 6.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.