GlobalVars coherence between server and client
Posted: Mon Dec 20, 2010 6:16 pm
Hi,
I started coding under gambas2 trying to extend domotiga's features. Nothing done yet, just practicing....
I noticed something strange about globalvars:
They seem to be kept in the process memory and saved/restored in the database on start and quit. Why this choice? other devices values are directly stored in the database?
Anyway, the problem occur when i am in client/server mode. The client loads at startup the globalvars from the database, but the updated globalvars values are only in the server memory and not yet in the database.
In client mode, the client should ask the server to send the globalvars values...
Hplus
I started coding under gambas2 trying to extend domotiga's features. Nothing done yet, just practicing....
I noticed something strange about globalvars:
They seem to be kept in the process memory and saved/restored in the database on start and quit. Why this choice? other devices values are directly stored in the database?
Anyway, the problem occur when i am in client/server mode. The client loads at startup the globalvars from the database, but the updated globalvars values are only in the server memory and not yet in the database.
In client mode, the client should ask the server to send the globalvars values...
Hplus