[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] strange crashy state in win32



Hi Graham,

On startup SC is trying to write the file "SC_helptree.cache.txt" to
the same directory your synthdefs folder is in. You are correct, this
would be the Platform.userAppSupportDir directory. Unfortunately, it
can't be changed (AFAIK).

This shouldn't stop you from booting the server and making sound. It
simply means that you probably can't use Help.gui

However, as a quick hack you could change line 27 in
'SCClassLibrary/Common/Files/Help.sc', from:

cachePath = Platform.userAppSupportDir +/+ "SC_helptree.cache.txt";

to

cachePath = SynthDef.synthDefDir++".." +/+ "SC_helptree.cache.txt";

Regards,
Martin V

On 13/05/2009, Graham Coleman <ravelite@xxxxxxxxx> wrote:
> Martin,
>
> This seems to fixed it on the part of the synthdefs (synthdefs are getting
> written to the correct place), however I am still getting a Primitive
> FileWrite fail on the part of the network drive, perhaps it is pulling
> another property that also references the network drive:
>
> ERROR: Primitive '_FileWrite' failed.
> Failed.
> RECEIVER:
> Instance of File {    (02FE5430, gc=EC, fmt=00, flg=00, set=01)
>   instance variables [1]
>     fileptr : nil
> }
> CALL STACK:
>     MethodError:reportError   02F8C120
>         arg this = <instance of PrimitiveFailedError>
>     Nil:handleError   02F8BEE0
>         arg this = nil
>         arg error = <instance of PrimitiveFailedError>
>     Thread:handleError   02F8BFA0
>         arg this = <instance of Thread>
>         arg error = <instance of PrimitiveFailedError>
>     Object:throw   02F8BC40
>         arg this = <instance of PrimitiveFailedError>
>     Object:primitiveFailed   02F8BD00
>         arg this = <instance of File>
>     Help:prRecurseTreeToFile   02FF6FF0
>         arg this = <instance of Help>
>         arg fp = <instance of File>
>         arg treeBit = <instance of Dictionary>
>         arg numtabs = 0
>     Help:writeTextArchive   02F8B940
>         arg this = <instance of Help>
>         arg path = "\\server-data\username\Document..."
>         var fp = <instance of File>
>     < FunctionDef in Method Function:defer >  (no arguments or variables)
>     Scheduler:seconds_   02FF70C0
>         arg this = <instance of Scheduler>
>         arg newSeconds = 1242136684.140625
>         var delta = nil
>         var item = <instance of Function>
>     Meta_AppClock:tick   02F8B6A0
>         arg this = class AppClock
>         var saveClock = class SystemClock
>     Process:tick   02F8B760
>         arg this = <instance of Main>
>
> I think the property is being pulled from Platform.userAppSupportDir. Is
> there a good way to change this? would it help?
>
> G

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/