Re: application connectionbegin / connectionend events
[Originally posted by ezad1] w_listen is a window of the application server. Connectionbegin/end events do not fire in the application server, they fire in the process that the app server spawns to service the ConnectToServer request when Web.PB connects to your app server. This process doesn't create a w_listen window because it doesn't fire the open event. Since w_listen.dw_log is an object running in another process, the only way you could do this is to use the window API's to send it a message. But first you'd have to get a handle to the app server (GetModule() is it?) then try to get a handle to w_listen.dw_log and then use SendMessage to fire the event. Anyway, it'd be much easier to set a window timer to call w_listen.dw_log.event trigger ue_refresh() every so often. the code for the event checks a "dirtybit" of the log shared object so this shouldn't incur much overhead.
|