Welcome! Log In Create A New Profile

Advanced

Window Locked with Error

Posted by Jeff Graham 
Jeff Graham
Window Locked with Error
May 11, 2009 10:51PM
Hi Everyone,

I got a project from a new developer. An internal window he was working on is now unable to open and get error in initialization part 0. Every time you open the project or try to run a project test it says it has to recompile the internal window. It does so but you can't open or access the window in code or with ChageSourceWindow.

Even after a reboot, you can't rename the file or delete it as it says it is open by another application. I tried a project repair. He has a lot of changes and no recent backup.

You can't use file -> versions for the window because you can't open it. At least I can't find a way.

There are .tkw and .bkw entries in the backup directory. Is there a way to manually restore from those entries?

Cheers,
Jeff
Al
Re: Window Locked with Error
May 11, 2009 11:48PM
Hello Jeff

Deleting the cpl directory will often fix compiler problems.
Also check there isn't a copy of the file in the project groupware directory

To open a backup file and save a backup file into the current project there are two ways.
If you want to replace an existing window, copy that windows .wdw file somewhere and delete it from the current project and project directory , then drag the bkw or tkw file onto the main windev project window and save it into the project directory as filename+"wdw"
If you just want to open a backup file and copy and paste from it, just drag it onto the main windev project window, it will open as filename +"1"

Regards
Al



Edited 1 time(s). Last edit at 05/11/2009 11:51PM by Al.
Jeff Graham
Re: Window Locked with Error
May 12, 2009 02:30AM
Hi Al,

Thanks for the suggestions.

I deleted the cpl directory - no luck.
There are no files in project groupware directory.

I tried all ways to recover the backup but I get the same error:

Error loading D:\WX-LDI\window finale\IW_Main_Employees.bkw window.

Unable to complete initialization:
Error reading part (0)

I have tried to rename the .bkw as well and it says the file is open in another application even after reboot. This may be some Vista problem. I have changed permissions on the project folder to allow full control, etc. Still can't rename many files including the Backup directory.

I managed to reboot and rename the backup directory and restore the .wdw file and still it cannot be renamed or moved or used by WinDev. It says it is opened in another application. Wierd.

I give up for now. He will just have to recreate the window changes.

Thanks again,
Jeff
Al
Re: Window Locked with Error
May 12, 2009 02:49AM
Hello Jeff

One last try smiling smiley
[ccollomb.free.fr]

It may unlock the files

Regards
Al
Jeff Graham
Re: Window Locked with Error
May 12, 2009 04:57PM
Hi Al,

That is a great tool. Thanks for the link. I was able to unlock the files and rename, etc. However, the data inside is corrupt apparently.

Cheers,
Jeff
Andres Sanchez
Re: Window Locked with Error
May 12, 2009 06:15PM
Jeff:

If the developer machine is Vista, you can probably right-click the file and check if it has older versions, Vista do backup of files automatically.

Last resort?

Andres Sanchez
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: