Page 1 of 1

Using stacks in LC Server not working.

Posted: Fri Jul 20, 2012 12:16 pm
by Sebast3
So I created an encrypted Library Stack, Saved it as "Legacy LiveCode Stack (2.7)" and tried using it with

Code: Select all

start using stack "lib/lib_crypt.rev"
But all i get is

Code: Select all

file "/public/1.0/test.lc"
  row 2, col 7: Chunk: can't find stack
  row 2, col 1: start: can't find object
Then i tried using

Code: Select all

go stack "lib/lib_crypt.rev"
I did not get any error but as soon as I call a function from the Library i get

Code: Select all

row 6, col 5: Function: error in function handler (encryptPass)
  row 6, col 1: put: error in expression
Thanks to everyone who can help me

Re: Using stacks in LC Server not working.

Posted: Fri Jul 20, 2012 1:41 pm
by BvG
Most likely your path is invalid, as both commands should work. Basically, what you are doing is the following code:

Code: Select all

start using stack (the defaultFolder & "/" & "lib/lib_crypt.rev")
Try to find out the defaultFolder, and also possibly check the "there is a file" operator out.

Possibly it's enough to change your path from a relative one (relative to the defaulfolder) to an absolute one (absolute to the environment root directory):
"/lib/lib_crypt.rev" --note slash at the start

Re: Using stacks in LC Server not working.

Posted: Fri Jul 20, 2012 3:58 pm
by Sebast3
Oh thanks yeah using the "defaultFolder" did work, Thank you very much