User forums > Using Code::Blocks
Bug Report: [#18755] C::B hangs for 20 seconds while opening large project...
dmoore:
--- Quote from: MortenMacFly on October 23, 2012, 03:59:22 pm ---What also doesn't work:
Have this layout:
[Root][src] - file.cpp
[Root]proj.cbp
- Open project
- Save project under:
[Root][prj] - proj.cpp
-> All files are broken, project file is broken.
--- End quote ---
Did this work previously?
dmoore:
--- Quote from: MortenMacFly on October 23, 2012, 03:34:45 pm ---While the relative file name in the file's properties look correct (it remains the UNC path w/o simplification), the absolute path is wrong: It is compiles ad project base path plus the UNC path, like:
C:\Folder\Base\SERVER\folder\file.cpp
--- End quote ---
So we need to write our own implementation of GetVolume that treats \\Server (or //Server) as a volume?
MortenMacFly:
--- Quote from: dmoore on October 24, 2012, 03:17:45 am ---So we need to write our own implementation of GetVolume that treats \\Server (or //Server) as a volume?
--- End quote ---
I'd simply say do never change files with UNC path's. So before checking for the volume we should check for UNC path's and then leave it as it is. This would not require and modification of GetVolume.
Jenna:
--- Quote from: MortenMacFly on October 24, 2012, 07:12:13 am ---
--- Quote from: dmoore on October 24, 2012, 03:17:45 am ---So we need to write our own implementation of GetVolume that treats \\Server (or //Server) as a volume?
--- End quote ---
I'd simply say do never change files with UNC path's. So before checking for the volume we should check for UNC path's and then leave it as it is. This would not require and modification of GetVolume.
--- End quote ---
But what if the projectfile (*.cbp) has an UNC path ?
MortenMacFly:
--- Quote from: jens on October 24, 2012, 09:25:06 am ---But what if the projectfile (*.cbp) has an UNC path ?
--- End quote ---
You mean if the project file itself is on an UNC path? In that case, there is no common top-level path and all files should use absolute file names / path's for all purposes. However, this is a very special case.
If you mean it contains files that are on an UNC path, these files must always be handled without simplifications, so there is no base path for them and also no relative path's. Those file should always only use the full path.
In the project tree they are shown as:
[ROOT]-[SERVER]-[FOLDER]-[...]-File.cpp
...while "normal" files are shown as:
[ROOT=BASE_PATH]-[FOLDER]-[...]-File.cpp
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version