D2KWUTIL.PLL make form slow to respond [message #288989] |
Wed, 19 December 2007 03:47 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
musman
Messages: 147 Registered: July 2007 Location: Lahore
|
Senior Member |
![me.usman1@gmail.com](/forum/theme/orafaq/images/google.png)
|
|
i am using d2kwutill.pll in forms6i
-----
* In your WHEN-NEW-FORM-INSTANCE Code */
declare
hWnd PLS_INTEGER := get_window_property(FORMS_MDI_WINDOW, WINDOW_HANDLE);
CheckTimeout TIMER;
begin
-- Start the process in the DLL that hooks into the Keyboard and mouse
WIN_API_SESSION.TIMEOUT_START_TIMER(hWnd);
-- Start the Forms Timer that will be used to check the idle time
CheckTimeout := CREATE_TIMER('TIMEOUT', 1, REPEAT);
end;
--------
/* In your WHEN-TIMER-EXPIRED Code */
if get_application_property(TIMER_NAME) = 'TIMEOUT' then
if WIN_API_SESSION.TIMEOUT_GET_INACTIVE_TIME > 60 then
-- boot the user off if been idle for 1 min or more
exit_form;
end if;
end if;
--------
/* In Your Exit or POST-FORM code */
WIN_API_SESSION.TIMEOUT_DELETE_TIMER;
-------
basically i am only using WIN_API_SESSION of that library to handle session in my form.
but it making form to not responding.
Whats the issue?? can any one tell.Or am i doing it right way.(Or how can i use session in my application)
[Updated on: Wed, 19 December 2007 05:05] Report message to a moderator
|
|
|
|
Re: D2KWUTIL.PLL make form slow to respond [message #289613 is a reply to message #289146] |
Mon, 24 December 2007 05:25 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
musman
Messages: 147 Registered: July 2007 Location: Lahore
|
Senior Member |
![me.usman1@gmail.com](/forum/theme/orafaq/images/google.png)
|
|
declare
hWnd PLS_INTEGER := get_window_property(FORMS_MDI_WINDOW, WINDOW_HANDLE);
CheckTimeout TIMER;
one_minute NUMBER(5) := 60000;
begin
-- Start the process in the DLL that hooks into the Keyboard and mouse
WIN_API_SESSION.TIMEOUT_START_TIMER(hWnd);
-- Start the Forms Timer that will be used to check the idle time
CheckTimeout := CREATE_TIMER('TIMEOUT', one_minute, NO_REPEAT);
end;
ok now i changed timer.now form runs fine.but it did not exit after
expiration.WIN_API_SESSION not working.
[Updated on: Mon, 24 December 2007 05:26] Report message to a moderator
|
|
|
|
|
|
|
Re: D2KWUTIL.PLL make form slow to respond [message #294536 is a reply to message #294508] |
Thu, 17 January 2008 23:31 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
musman
Messages: 147 Registered: July 2007 Location: Lahore
|
Senior Member |
![me.usman1@gmail.com](/forum/theme/orafaq/images/google.png)
|
|
sorry.I do not have metalink login so i can`t check this.
well i have another query.
session time out documentation of d2kwutil says.
Establishes the hooks. you must be careful to only call this function ONCE in your whole run form session.
So make this call in the When-New-Form-Instance trigger of your first form.
But if i open another form from menu in same session i think i have to start timer again in
of new form.
Am I Right??
[Updated on: Thu, 17 January 2008 23:32] Report message to a moderator
|
|
|
|
|
|