Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ERROR: AV's and IWButton.picture.data: the parameter is incorrect
#29
Hi Dan,

Thanks for your reply. I'm not really handling any images, except I have been placing a BMP file at design time on a IWImage, later to find out a BMP file is not thread safe and that a PNG image would be better. After I changes all BMP to PNG, I have not had the picture.data error anymore. I'm not changing (or moving) any images during runtime.

My main issue is the multiuser problem. I'm using ADO components, accessing an SQL database, and when two users perform the same select at the same time (activates the same ADOQuery), as two different users on two different machines, both using Edge, user1 gets nothing and user2 gets the result of user1's select. Sometimes user1 gets user2's result but mostly get nothing. If there is just 1-2 seconds between the two users activates the call, everything is correct.

I have tried everything I can come up with (except making the ADOQuery calls thread safe): Servercontroller mode is MultiThread, ALL ADOuery components are defined in one datamodule being created by UserSession and all variables my forms use are defined in UserSession and all procedures and functions in my forms are defined in the public part of my Forms class definition.

I'll be doing some more tests today to try to establish exactly what and where is goes wrong, but I you have any proposals to what I can do, please feel free to tell me.

Regards
Soren
Reply


Messages In This Thread
RE: ERROR: AV's and IWButton.picture.data: the parameter is incorrect - by SorenJensen - 02-10-2020, 06:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)