ASP and XREV.DLL (OpenInsight 32-Bit)
At 23 NOV 2003 06:49:46PM Bob Watson wrote:
I wonder if there is a way of telling if XREV.dll is busy when calling it from an ASP page.
We link to a remote engine (which is already running) from a web server using a TCP/IP connection. If we call CallFunction from a second workstation while a request is still being proceesed from the first workstation - it crashes the first workstation with an error 30 and then crashes IIS with a 104 error on the second workstation.
Any help would be appreciated
Bob Watson
At 23 NOV 2003 10:23PM Steve Smith wrote:
Perhaps an artefact of using a single-threaded *.dll in a multi-threaded context. Perhaps you can use some form of file-based locking scheme, based on, say, the system date and time? You can test if it exists with
Set objFS=Server.CreateObject("Scripting.FileSystemObject")
if objFS.FileExists("e:\InetPub\svc342\" & Now & ".txt")=True Then
Then you can write the semaphore file with something likeā¦.
Set objFS2=Server.CreateObject("Scripting.FileSystemObject")
Set objTextS=objFS2.CreateTextFile("e:\InetPub\svc342\"& Now : ".txt" , False, False)
objTextS.Write vbcrlf & Now & vbcrlf
ObjTextS.Close
Or you can buy S/Web. Multi-threaded apartment model dll that runs very smoothly. Far better solution.
At 23 NOV 2003 11:36PM Bob Watson wrote:
Steve
Thanks for the reply. I can see exacly where your coming from.
We are just playing with this now but will consider SWeb if this gets serious.
Bob Watson
At 24 NOV 2003 07:55AM Pascal Landry wrote:
Bob
If you use ASP.net or Visual Studio 7+, you should set the pages as ASP compatible. It boggled my mind for a while, .net would crash everytime I'd try to connect to a running engine. Otherwise, it works great.
Pascal Landry
At 24 NOV 2003 09:36AM The Sprezzatura Group wrote:
The problem with a running engine is the requirement for a Web Depolyment Pack if you're not using dynamic engines. In fact thinking about it you need a WDP to use XREV.DLL - to quote the license "The WDP is not required for those sites using Revelation's OECGI technology with a non-persistant connection.".
The Sprezzatura Group
World Leaders in all things RevSoft
At 24 NOV 2003 06:34PM Bob Watson wrote:
Are you saying that this may be causing the problem or are you making sure we don't break the licensing agreement? - We have a Web Deployment pack but is it going to help us in this situation?
We could use one running engine per web user, each on a different port number. Each engine will add one to the user count - this would be OK I assume.
Bob Watson