Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Intraweb DataModule multi users

Posted on 2008-11-03
1
Medium Priority
?
1,278 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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 video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

721 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