NetTalk Central

Author Topic: NetAuto error on Google Cloud  (Read 2318 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
NetAuto error on Google Cloud
« on: August 13, 2018, 12:51:26 AM »
For about 16 years (!) I've been using NT to limit the number of concurrent users in one of my apps using a NetClient object. It works by counting the number of clients attaching themselves to a service queue and comparing that number to a file holding the number of seats allowed. Rock solid, the code hasn't been touched for all these years.

Now one customer has moved the app to Google Cloud and upon starting the program they're getting this error:

Quote
-3 Too many NetTalk NetAuto Instances on one machine.
Error occured in function (Parent)NetServer.Init

Any clue as to what is happening here? Is this because NetAuto only works on a LAN?
I do have SecWin but I'd rather not have to go thru the hazzle of re-writing my license check function, if possible.

Peter

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: NetAuto error on Google Cloud
« Reply #1 on: August 14, 2018, 09:48:44 PM »
Hi Peter,

NetAuto needs to know how many instances of your program can run on a single machine. For desktop machines this can be small (1 or 2) but for cloud servers it can obviously be a lot more.
The default value is 5.

You set this number using NetOptions
http://www.capesoft.com/docs/NetTalk10/NetTalkUtilityFunctions.htm#NetOptions
using NET:SETMAXINSTANCES

Cheers
Bruce

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: NetAuto error on Google Cloud
« Reply #2 on: August 14, 2018, 10:55:51 PM »
Thank you, Bruce!

There's a lot I don't know about NT  ;)

Peter