Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Hanging for a while if no souce file, only header file

<< < (3/3)

MasterAlexei:
Yes, I have some files in a dirs, that are outside of projects base path, for example, I have some Common files (common for all projects of all architectures, I working with, as f.e. type defines, and Common only for wxWidgets, for example, classed to work with sockets, and so on ) but they are all needed in that project. And in that project I did added only those files, that are really needed for it.
CB does not hangs on such files, but on one file, which is located in a projects base path, but is included from one of such "common" file in a path outside of the projects base path and has no .cpp file with the same name.

But I though that the parser parses only files in Project (and the includes in a include dirs list), and not all files, which are just near of that in a dir.

As I already said, I'll play with it a little bit, and try to define the state of configuration, when it occurs. But one I already know, it stops to hang, if there is a .cpp file in a project, with the same name but completely empty.
On "hang" I mean, that CB stops reacting for about 3-4 seconds, and then continue to work.

MasterAlexei:
Hello CB Team.
The issue is still there.
If in a project there is a header file, and there is no corresponding .cpp file, when I navigate to that file (open it via doubleclick in a project tree, or through pressing Alt-Left), CB hangs for about 4-15 seconds. 15 seconds it hangs, if the file opened first time after opening the project. After that it hangs for about 4 seconds.
The .h file can be in a projects tree, or outside of it (I have two projects, which are using some common files).
If I add the corresponding file to the project, but do not put any code in it, only comments (file header), then it works normal.
If you like I can send a project, where it behaves in such a way.

MortenMacFly:

--- Quote from: MasterAlexei on April 28, 2012, 09:32:23 am ---If you like I can send a project, where it behaves in such a way.

--- End quote ---
I guess you have to, including exact steps to reproduce, because I don't have such issues.

MasterAlexei:
Ok. Since here is a restriction to 128 KB, here is the link:
http://masteralexei.homelinux.net/HomeCommunicator.7z (may be down some times for about 20 minutes, IP is dynamic there)

The interesting on it all is that, as I move the whole dirs into another place, it starts to work properly, without any delays and so on.

This project on my machine is located at D:\MyProjects\wxWidgets\HomeCommunicator\
I did make a copy of that to D:\Temp\HomeCommunicator and it work fine now.

It must be mentioned, that in a D:\MyProjects\ there are some more projects ( about 50-70 ) but, of course, in cbp project only the needed files are included.

So, the problem files are:
HCProtocol\ProtocolModel\Code\DataItemTypes.h
HCServer\MessageDefines.h
HCClient\MessageDefines.h

To reproduce - just open that files in a project in CB.
Or, open other file, then one of this.
And, if I add an empty .cpp file with the same name, as the .h files above in the same dir, it starts to work properly.

Navigation

[0] Message Index

[*] Previous page

Go to full version