| View previous topic :: View next topic |
| Author |
Message |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Oct 29, 2003 12:03 pm Post subject: VDS 5 update news |
|
|
I just had some communication from CR regarding the long-awaited VDS 5 update. It seems that the update has been built, and was going to be released on Monday. While working with it, Emmanuel was visited by the deletion bug and lost several files...
There are some points that he thought were relevant:
- the deleted files were in the compilation target directory. Therefore a useful safeguard would seem to be to specify the target folder for your compiled EXEs to be separate from the one containing the source files.
- the compilation folder was on a virtual (subst) drive. I'm not sure what Emmanuel means by that, but he wondered if that might be the case for others who experienced the problem.
I'm going to try and persuade him to release the update anyway. I've looked at the IDE code exhaustively and can't see what could be causing the problem, so I don't think it is going to be fixed very quickly. The IDE doesn't delete anything from the output directory execpt the old executable. It seems to me that it is not worth delaying the release any further. If the problem is solved, a new update or patch could be made available to registered users very quickly. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Oct 29, 2003 4:09 pm Post subject: |
|
|
Hi Jules,
Emmanuel is off base about the (subst)drives. I have had this happen many times and I don't use drive letters that are mapped to folders with the DOS subst command or any virtual drive letter. I have noticed that it does seem to happen more often when my Exe (ie..compile target) and source code are in the same directory. I have a few projects that I place my Exe in a lower sub-directory called bin for instance C:\Proj\bin... C:\Proj is where the source files are and bin is where my Exe is compiled to.
With those projects I have not had the problem of losing files. Also I might note that for these projects I place in seperate directories my resouces and any extra included files (i.e. VDS Units).
C:\Proj = Main Source directory with DSC and DSP files
C:\Proj\Bin = Compiled Exe directory
C:\Proj\Res = Resource directory
C:\Proj\Inc = Include directory
Even if one of these directorys are empty I define them in the VDS project file.
Also this issue seems to happen especially if you have more than one project file in the same directory. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Oct 29, 2003 5:39 pm Post subject: |
|
|
| mindpower wrote: | | Also this issue seems to happen especially if you have more than one project file in the same directory. |
I suppose that increases the probability of it happening. When I've been developing VDS 5, there's a testscr folder with tons of separate projects in the one folder. I've never lost a file from there, although admittedly they are mostly run from the IDE and don't get compiled too often.
The new version of the IDE creates all its temporary files in the temporary directory, and incidentally I was wrong that it deletes the previous EXE if it exists, it simply opens the file and then overwrites it. It never deletes anything from the output path now. So it's pure Delphi file I/O. It's most puzzling.
Personally I'm going to start doing what you suggest, and create a separate bin subfolder for executables. It's a tidier way of working, anyway. I'm sure that CR will continue to look at why this problem is occurring, but I personally am out of ideas. There are possible workarounds, like creating the EXE in the temporary directory and then copying it to the target, which they may be forced to resort to. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Oct 29, 2003 7:29 pm Post subject: |
|
|
the old exe is not the only file that the ide creates and deletes. It creates
the manifest file and some other file, and those files are also deleted when
the compile takes place.
I've had these two files get left after a compile sometimes.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Oct 29, 2003 7:54 pm Post subject: |
|
|
Perhaps someone should take a look at what changed in the
compilation code between VDS 4 and VDS 5 and and narrow
it down to what could be causing this from the changes made.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Oct 29, 2003 7:56 pm Post subject: |
|
|
The new version creates them in the temporary directory though. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
|