>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: WSEngine Not Working via APLWR
Rex.Swain
WSEngine Not Working via APLWR
Posted: Friday, June 11, 2004 4:07 PM (EST)

I have an application that uses an Active X APL Server.  It works fine with version 4 of APL+Win.  I am now trying to get it working with version 5.0.16.  Works fine in development mode.  So I thought I was all set.  But nooooo...  When I try it with the runtime executable, it fails.

 

APLWR creates the 'APLW.WSEngine' (and I can see it in my Windows 2000 task list).  With a debugging hook, I can query the following properties, and they are all as expected: class clsid description opened progid self version.  I can query the 'events' property and it shows 'XNotify'.  But when I query the onXNotify property, I get

 

ŒWI ACTION ERROR: Action "onXNotify" not found

 

What's up with that?

 

Unlike Brent, I am not having trouble with a )LOAD -- I haven't gotten that far yet!  After creating the server, the first thing I do is set onXNotify and onXSysNotify, and those are failing.

 

Has anyone else gotten something like this working with the version 5 runtime?


Comments:

Author Thread:
brent.hildebrand
WSEngine Not Working via APLWR
Posted: Friday, June 11, 2004 4:27 PM (EST)

Rex, I've been using v5 with a problem except for the SysCall Load issue.  I've tried v5.2.02 beta version of APLWR.  Here is my results, and I show that I am indeed running 5.2.02 runtime:

      'x' Œwi 'Create' 'APLW.WSEngine'
x
      'x' Œwi 'XSysCall' 'sys'
0 2 0 1 1 1000 1 0 0 0 100 2 1 0 0 0 0 0 5202 36 1 0 ¯1 0
      'x' Œwi 'onXNotify' 'ShowEvent'
      'x' Œwi 'XSysCall' 'Load' 'c:\aplwin5.2\comtest'
      'x' Œwi 'XExec' ''
 <<<<<
 Œwself  = x
 Œwevent = XNotify
 Œwarg   =  Start2 Running
 Œwres   =  Start2 Running
 Œsi     =  ShowEvent[6]
            >[x;XNotify]
 >>>>>
I'm able to set the onNotify event OK.  And my simple work around to the SysCall Load problem is shown.

     

Support
Re: WSEngine Not Working via APLWR
Posted: Friday, June 11, 2004 5:22 PM (EST)

Rex,

In order to get that error message, you must be querying the onXNotify event on the wrong object (one that doesn't support this event handler).  Please verify what you're doing.  You may find it helpful to see if you can replicate the problem in a very simple example.  If you can, please send it to us to investigate.

APL2000 Support

     



APL2000 Official Web Site

To err is human, but when the eraser wears out ahead of the pencil, you're overdoing it.
- Josh Jenkins

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |