exit() after hooksilk

A PocketC native palm library offering native forms and assorted utilities

Postby awschwab on Sat May 04, 2002 11:11 pm

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
Posts: 270
Joined: Tue Feb 06, 2001 2:33 pm
Location: USA

Postby jstadolnik on Sun May 05, 2002 10:04 pm

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.


main() {

The PToolboxLib guy.
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Return to Pocket Toolbox

Who is online

Users browsing this forum: No registered users and 4 guests