SeleniumBasic icon indicating copy to clipboard operation
SeleniumBasic copied to clipboard

Exception on line 89 in Syswaiter.cs

Open mkdropbox opened this issue 8 years ago • 12 comments

We are getting this exception on any vbs sample script on windows 2003 sp 2

Has anyone had this issue themselves?

mkdropbox avatar Jun 09 '17 16:06 mkdropbox

Same problem here

jparrotta avatar Jun 12 '17 21:06 jparrotta

After some testing I found the problem is related to Terminal Services, in my case I'm trying to use seleniumbasic from vba code on an access database, but is only working for one user at the time, once one user/session uses it, it would throw the Exception on line 89 to all other sessions, once the first session closes it, then another session can use it.

jparrotta avatar Jun 16 '17 15:06 jparrotta

I was able to solve the problem by editing the following line in syswaiter.cs: _signal_interrupt = new EventWaitHandle(false, EventResetMode.ManualReset, @"Global\InterruptKey" + Environment.UserName, out createdNew, security); the problem was caused by the "Global\InterruptKey" which is shared among different user sessions, by adding the name of the user they become unique for each user...

jparrotta avatar Jun 21 '17 21:06 jparrotta

Thanks jparrotta this solved our problem also. Much appreciated. I'll leave this open so hopefully the contributors can change the code base to fix this issue for everyone.

mkdropbox avatar Jun 23 '17 19:06 mkdropbox

Plz help me , how do you guys rebuild it ? Can u guys send-me the Selenium.EXE ? i tried using all the programs listed on build-setup.py but i couldnt do it

RonanVico avatar May 14 '18 15:05 RonanVico

I made the changes and recompiled it successfully. Simply replace all the files in the zip file in the Seleniumbasic (C:\ProgramFiles\SeleniumBasic usually) folder and then register the new dll using regasm (run attached bat file using cmd as administrator). seleniumbasic working both users.zip

Chromedriver has been updated in the zip file to latest version 76. Use with Chrome version 76, Or update chromedriver to match the version of chrome you intend to use.

Enjoy !

yamanjain avatar Sep 03 '19 14:09 yamanjain

This solution is not working for me.

sgreeneAmfam avatar Dec 22 '21 15:12 sgreeneAmfam

@sgreeneAmfam , What problem are you facing ?

yamanjain avatar Dec 22 '21 16:12 yamanjain

We are using SeleniumBasic in MS Access and Excel VBA. We have several users on the same server. When a user is already running SeleniumBasic VBA on a server, any other user will get the error above (Exception on line 89 in Syswaiter.cs)

sgreeneAmfam avatar Dec 22 '21 16:12 sgreeneAmfam

I tried running the batch file attached above, but it did not resolve the issue.

sgreeneAmfam avatar Dec 22 '21 16:12 sgreeneAmfam

Did you replace the files in the SeleniumBasic folder as well ? Also try running the batch file as an administrator.

yamanjain avatar Dec 22 '21 16:12 yamanjain

Thank you so much, it seems to be working now.

sgreeneAmfam avatar Dec 22 '21 17:12 sgreeneAmfam