一時間毎にHiMacroEXのマクロデータを実行させるインジケータを走らせているのですが、最初は調子良いのに暫くすると
stack damaged, check DLL function callエラーが出て止まってしまいます
解決法を教えてください

int h;

#import "shell32.dll"
int ShellExecuteW(int hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd);
#import

int start()
{
if(h!=Hour() && Minute()>1)
{
ShellExecuteW(NULL, "open","D:\\Misc\\FX\\HiMacroEx\\Macro\\Reset.hmc", NULL, NULL, 1);
h=Hour();
}
return 0;
}