> wsprintf(*szargs, "%lu", dwResult); > ppsv->ReturnString(*szargs, szargs);
Try removing the returnstring line. Only used and needed if you are returning a string >532 chars; this string cannot be in *szargs (which is likely leading to internal issues with a string overwriting itself). Test with win.debug(yourserv....) before button on button (where it wil be called every second).
