Hi Andreas,
Rob is generally right - for multi-transaction events you can't use local variables, and in the case of the Web pages things you might think are single transaction are indeed multi-transaction.
However I'm guessing your SOAP service is using the NetWebPage template to handle the request. This is indeed likely to be a single transaction - ie the client makes a request, and you serve a single response. In effect everything is contained in the NetWebPage, and it runs from start to finish, so in this circumstance using local variables in the procedure is ok.
However,
>>I use Xfiles which loads a local queue. This Queue that i have made, i ticked static and threaded.
Threaded has no meaning on a local variable. In clarion all local variables are local to the procedure instance. Unless of course you add Static.
Static means that the variable is no longer local, but global. It can only be accessed from this procedure, but in other respects it is Global. Since you have Threaded on it'll be unique on each thread though.
In this context I would recommend leaving off both the Static and Thread attributes. Neither is actually adding any benefit to your code, and _may_ be causing a memory leak (although I've not tested this, and my guess is it's not.)
Cheers
Bruce