Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange crash
#7
All variables declared in UserSession are safe. I'm not sure you would declare any in ServerController.

The unsure ones I am referring to, are those used by the individual forms. For every form you usually have different variables you use in the form, and from traditional VCL forms, the values in such vars, are safe from other users, even for other copies of the same program running on the same machine.

But in IW, they are not. To be safe (threadsafe it is) they must be declared in the forms private or public section. outside the Form..end, all vars are not threadsafe, and that was the problem I had. Everything worked perfectly while running and testing the application on my own machine, but as soon as 2 or more users was using it, it mixed up values between users. And sometime the application crashed.

You can read more about it and other similar reasons for system crash, in the following topic: https://www.atozed.com/forums/thread-1522.html

Regards
Soren
Reply


Messages In This Thread
Strange crash - by softdev85 - 08-06-2020, 05:32 PM
RE: Strange crash - by SorenJensen - 08-07-2020, 08:34 AM
RE: Strange crash - by kudzu - 08-07-2020, 10:16 PM
RE: Strange crash - by softdev85 - 08-08-2020, 08:40 AM
RE: Strange crash - by SorenJensen - 08-08-2020, 10:25 AM
RE: Strange crash - by softdev85 - 08-08-2020, 10:30 AM
RE: Strange crash - by SorenJensen - 08-08-2020, 11:40 AM
RE: Strange crash - by zsleo - 08-08-2020, 08:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)