Page 1 of 2

Error code=17

Posted: Sun Sep 01, 2019 10:27 pm
by Emosewaj
Trying to export a DLS soundfont to SF2, namely Windows' default gm.dls for use in other programs, but saving it as SF2 throws

Code: Select all

File was not written. Error code=17
What should I do?

The soundfont in question can be found in C:\Windows\system32\drivers if you're on a Windows computer.

Re: Error code=17

Posted: Mon Sep 02, 2019 9:06 am
by Admin
I hope you are not trying to write the SoundFont into the folder C:\Windows\system32\drivers?

Re: Error code=17

Posted: Mon Sep 02, 2019 4:56 pm
by Emosewaj
Nope, neither reading nor writing to it. I've copied the file out of the Windows directory into another program's soundfont library, I'm reading and tryint to write to that location (C:\Users\Me\Documents\SomeProgram\Soundfonts)

Re: Error code=17

Posted: Mon Sep 02, 2019 5:16 pm
by Admin
You are using the latest version, I assume.
Error code 17 is a general "write file error". It arises when Viena tries to rename the temporary file written using the desired file name. The causes can be: folder is write protected, file is write protected (for example, open and locked in another application). Or, the folder or file name is bad - containing illegal characters. Normally, if the file is write protected, Viena tries to change the temp file to a new name including an index, e.g. gm(1).sf2 if gm.sg2 is protected. If this does not succeed then we have error code 17.

I tested the functionality just a second ago and it works for me, so...

Re: Error code=17

Posted: Mon Sep 02, 2019 5:33 pm
by Emosewaj
Odd, I've tried in another location (D:\test\), same result, whether ran as admin or not. The version I'm using is 1.132 64-bit. Should I perhaps try the 32 bit version, or anything else I should try?

Re: Error code=17

Posted: Mon Sep 02, 2019 6:37 pm
by Admin
This is indeed very odd! I suggest you hold on for a special debug version. I am curious to learn what this is all about.
I'll be back.

Re: Error code=17

Posted: Tue Sep 03, 2019 8:59 am
by Admin
Here is a test version:
https://www.dropbox.com/s/k7v95ow4c249y ... A.rar?dl=0
The archive contains only the new executable, called Viena64-1133A.exe.

You also need this program to display debug messages:
https://www.dropbox.com/s/rvv6svztcfsps ... 2.exe?dl=0
Start DBWIN32 and then the new Viena64 version.
Do what you have to do.
Finally, send me the text in DBWIN32.

Re: Error code=17

Posted: Tue Sep 03, 2019 9:49 am
by Admin

Re: Error code=17

Posted: Tue Sep 03, 2019 2:15 pm
by Emosewaj
Here's the output. out.txt contains only the output relevant to the Viena process, out_full.txt contains the full output, but also contains messages from other programs.

Re: Error code=17

Posted: Tue Sep 03, 2019 3:12 pm
by Admin
Thanks! I see...
Will be back with a new test version soon.