Re: [Vala] Parameter variables in async functions aren't preserved

2019-02-07 Thread Ben Iofel via vala-list
Is the string array allocated on the stack? On Thu, Feb 7, 2019 at 3:56 PM rastersoft wrote: > > Hi all: > > I did an async function and after a yield I tried to use one of the > parameter variables, but they contain garbage after that call (at least > in the case of an string array). > > An exam

[Vala] Parameter variables in async functions aren't preserved

2019-02-07 Thread rastersoft
Hi all: I did an async function and after a yield I tried to use one of the parameter variables, but they contain garbage after that call (at least in the case of an string array). An example: async void a_test(string[] a_list) {     // here a_list contains the right data     yield another