Just remove the :shared attribute from those variables and the error will "go away". You only need to declare variables shared if you want to share their contents across threads.
You cannot share objects across threads, (which is what the error is telling you), so there is no purpose in making objects shared.
In reply to Re: Invalid value for shared scalar
by BrowserUk
in thread Invalid value for shared scalar
by ramblinpeck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |