Solved

Intraweb DataModule multi users

Posted on 2008-11-03
1
1,254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month7 days, 1 hour left to enroll

622 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