All client share common data?

in Help Center
I am trying to implement multi-users to access service on single server,The interface is as following:
MQueryI
{
.......
resultset *rs; //store handle of result;
.......
release();
}
running mode:
rs get a result set and release the corresponding space when call release().
single client runs normally,but when multi-users run, segment fault in release();
printout the address of rs in release, find: all the same for all users;
So:
Are all client share data define in the interface? if so, how can I implement multi-user to run with it's own data?
MQueryI
{
.......
resultset *rs; //store handle of result;
.......
release();
}
running mode:
rs get a result set and release the corresponding space when call release().
single client runs normally,but when multi-users run, segment fault in release();
printout the address of rs in release, find: all the same for all users;
So:
Are all client share data define in the interface? if so, how can I implement multi-user to run with it's own data?
0
Comments
Hope this helps!
Benoit.
I have to encapsulate some complex data in client-related interface. For example, to keep a resultset up to 1.5GB, is object factory efficient?
consider another schema,server new only one interface, once a client reaches, generate a data area for this client and it's unique context.then client using this context access service and operate on its' own data.
so,under this circumstance,which schema is better?
You might also want to look at our first newsletter, it discusses session management with Glacier2. You could also use client sessions to keep the specific client data.
Benoit.