Solved

Intraweb DataModule multi users

Posted on 2008-11-03
1
1,188 Views
Last Modified: 2012-06-21
Today after I deployed my Intraweb application, global variables that has been declared in public section of DataModule is shared. When user 1 modified a variable, user 2 will get this new modifications. Then I removed these variables to UserSession and it works fine. But I get the same problem with tables, I put a lot of tables, queries and StoredProcs in DataModule.
I noticed that when two concurrent queries has been called for the same database component I get some times error like "can not perform this operation in a closed dataset"
Does any one encounter such problem, and what is the solution

I use MultiThread in ServerControl's ComInitialization property
0
Comment
Question by:Motaz
1 Comment
 
LVL 7

Accepted Solution

by:
Motaz earned 0 total points
ID: 22876681
I found the solution. I shouldn't use DataModule in Intraweb.
Instead I copied all the data sets to UserSession module. It do the
same function as DataModule and each user has it's own UserSession object

Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
When I am typing into a TEdit last word repeats 7 117
Delphi 2 49
creating threads in delphi 1 82
how to update exe applicatio from internet ? 6 67
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now