ExecModuleBuffer issue
Posted: Tue Dec 07, 2004 7:14 pm
This is a little wierd I think. The following code works:
But this code doesn't (causes the system to freeze)
My first thought was the delay caused by the file writting but I added a for loop and that didn't help. But if that is probably the issue, maybe my loop wasn't big enough.
Anyone else have any ideas?
Also, after the modules necessary for HD access are loaded, if I hit RESET on InLink to restart ps2link, the system freezes instead of restarting. It only happens when the modules have been loaded and as far as I can tell, I use the same steps that I used in MCMGR, which reset fine. This is pretty important 'cause it'd be VERY hard to code if I have to do a complete ps2 reboot everytime I make a change. Anyone else had a similar problem and solved it?
Code: Select all
printf("Executing module size=%d\n",size);
if (size>0)
{
module.Close();
char temp2[1025];
sprintf(temp2,"host:%s.irx",filename);
File o(temp2,O_CREAT|O_WRONLY);
o.Write((u8*)buffer,size);
o.Close();
SifExecModuleBuffer((char*)buffer, size, ag_len, args, mod_res);
delete [] buffer;
return 1;
}
Code: Select all
printf("Executing module size=%d\n",size);
if (size>0)
{
module.Close();
SifExecModuleBuffer((char*)buffer, size, ag_len, args, mod_res);
delete [] buffer;
return 1;
}
Anyone else have any ideas?
Also, after the modules necessary for HD access are loaded, if I hit RESET on InLink to restart ps2link, the system freezes instead of restarting. It only happens when the modules have been loaded and as far as I can tell, I use the same steps that I used in MCMGR, which reset fine. This is pretty important 'cause it'd be VERY hard to code if I have to do a complete ps2 reboot everytime I make a change. Anyone else had a similar problem and solved it?