Solved

Intraweb DataModule multi users

Posted on 2008-11-03
1
1,174 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

19 Experts available now in Live!

Get 1:1 Help Now