Page 1 of 1

PostPosted: Sat May 04, 2002 11:11 pm
by awschwab
I've noticed that if you call Fctl(HOOKSILK,1) and then exit(), you exit to PocketC, (as would a return() from main()) rather than to the app launcher. After you call Fctl(HOOKSILK,0), the situation is back to normal, and exit() exits. HOOKHARD and HOOKMENU don't do this. Is everything fully unhooked on exit?


Seen with PToolbox 7.36, PocketC 4.3.0rt, OS 3.5 and 3.1h3 in POSE.


Edited by - awschwab on 05/04/2002 18:17:13

PostPosted: Sun May 05, 2002 10:04 pm
by jstadolnik
This is actually a PocketC bug. Under the hood I'm calling the built-in PocketC hooksilk function.

Below is some code which shows the same problem without using the PToolboxLib.

Joe


//hooktest.c
main() {
hooksilk(1);
exit();
}

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm