Temp folder contents causing a crash on song load - possible solution idea? - sorted

Hello,
I have experienced quiet a few crashes lately most of them (not thinking of dodgy plugins) are due to me forgetting to wipe the temp directory. often when I catch the windows crash and view the details the problem file, it has a “tmp” in it, as I just saw 10 minutes ago.
When I delete everything in the temp directory the song loads up finds after the next reboot.

Is adding an option to cantabile to delete system temp folder contents on shut down a worthy idea?
perhaps an option in tools/option/startup-shutdown?

I would just run Cantabile from a .bat file (something i do anyway for command line arguments), and just add the command to delete the temp folder contents before starting Cantabile.

– Jimbo

2 Likes

Thanks for the tip. I have not written a batch file since the days of dos 6 and 7.
if you dont use it you lose it, i forgot batch files.
cheers.

if any one is interested this is the batch file i figured out.
I put it in the cantabile folder and made desktop icon for it
and put it in the startup folder

@echo off

REM Delete contents of C:\TEMP
del C:\TEMP*.* /Q /F /S

REM Delete contents of C:\Windows\Temp, ignoring errors for files in use
del C:\Windows\Temp*.* /Q /A- /S

REM Delete contents of F:\Temp, ignoring errors for files in use
del F:\Temp*.* /Q /A- /S

echo.
echo Temporary folders cleared and application started.

REM Start your application
start “” “C:\Program Files\Topten Software\Cantabile 4.0\Cantabile.exe”

timeout /t 5 && exit

Turn the PC on, go make a coffee, come back and folders emptied and cantabile ready and waiting.

Cheers :slight_smile:

2 Likes

Hi Laura.
The .bat file is interesting, it reminds me of msdos from many years ago!!

1 Like

This is were this came from, firing up my old win 98 PC and typing del /? and reacquainting my self
with command prompt commands/switches. sitting in front in front of a GUI for all these years, i forgot all about it.

I thought I had this sorted it appears not.
No matter what I do cantabile is unpredictable with everything I have done
and opening any file now results is a crash that cantabile can’t catch.
Random times during a song load as well.
The only thing I was able to catch was this windows crash when, I clicked more details, it showed
the text below.
This is not restricted to any particular song file this time, any file I open crashes.
then loading the song a second time over, the same song loads with out a hitch.

Any clues ?

Problem Event Name: BEX64
Application Name: Cantabile.exe
Application Version: 4.0.4061.0
Application Timestamp: 62577b55
Fault Module Name: wwfD5E4.tmp_unloaded
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 55c88f1a
Exception Offset: 000000007b5c7226
Exception Code: c0000005
Exception Data: 0000000000000008
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 2a73
Additional Information 2: 2a7328d8bb40c81c93b4b5f46adb8e10
Additional Information 3: 2bfb
Additional Information 4: 2bfb138c4adfd29d2d2cc11cd92454f7

Looks like you have another Cantabile session running in background. Or, at least a open process. Try to check this with the Task Manager.
It’s happened to me a few times.

2 Likes

Thanks, I’ll poke around services one by one. It’s odd it’s been stable and mostly problem free
for almost two years.

After a several weeks of use since this problem happened, it seems updating to net6 fixed a few issues even though the plugins were much older than net6.
My updated batch file for starting Cantabile has worked quite well since, see below.
I have given it plenty time for windows to do it’s thing, while I am turning everything on, Cantabile is ready an waiting.

While here, does any one use Sonivox plugins? Sonivox sent me an updated AIRReverbx64.DLL file to replace the older one and I can not find this old file anywhere on my system. Perhaps this was a cause for a crash, the DLL is missing the plugins were looking for it and couldn’t find, it so crash and lock up the PC. Does anyone have any ideas where this files goes, all five vsts use the same file it seems.

@echo off

echo Greetings Dr. Falkan!
echo Would you like to play a nice session of Cantabile?

timeout /t 5

cls

echo Get Ready!
timeout /t 5

cls

REM Delete contents of C:\TEMP
del C:\TEMP*.* /Q /F /S

REM Delete contents of C:\Windows\Temp, ignoring errors for files in use
del C:\Windows\Temp*.* /Q /A- /S

REM Delete contents of C:\Users\Admin\AppData\Local\Temp, ignoring errors for files in use
del C:\Users\Admin\AppData\Local\Temp*.* /Q /F /S

REM Delete contents of F:\Temp, ignoring errors for files in use
del F:\Temp*.* /Q /F /S

echo.
echo Temporary folders cleared and Cantabile started.

timeout /t 3

REM Starting Cantabile
start “” “C:\Program Files\Topten Software\Cantabile 4.0\Cantabile.exe”

timeout /t 10

cls

&& exit