Access violation when using UniAlerter
Posted: Thu 23 Feb 2017 09:45
Hi,
I have a DataModule with a UniConnection and a UniQuery. This DataModule is created by several threads (6) for updating / inserting data into postgres and works like a charm. The Datamodules are created by the thread in the .execute method.
I decided to add an UniAlerter on the DataModule. I just put it without any code and then when I fire up the application, 1 out of 4 times I get an access violation. The debugger stops at System.Classes method Threadproc (try Thread.execute) during startup of the application.
The callstack is at TPgSQLnotificationsThread.execute
I noticed that I have the UniConnection connected at designtime.
When I set connected = false (designtime) the access violation does not occur.
Anybody else had this issue ? I think it is a thread management bug inside the UniAlerter component.
I am using version Unidac 6.4.16 in Delphi XE5 ; Postgres 9.5.5
regards,
Pascal
I have a DataModule with a UniConnection and a UniQuery. This DataModule is created by several threads (6) for updating / inserting data into postgres and works like a charm. The Datamodules are created by the thread in the .execute method.
I decided to add an UniAlerter on the DataModule. I just put it without any code and then when I fire up the application, 1 out of 4 times I get an access violation. The debugger stops at System.Classes method Threadproc (try Thread.execute) during startup of the application.
The callstack is at TPgSQLnotificationsThread.execute
I noticed that I have the UniConnection connected at designtime.
When I set connected = false (designtime) the access violation does not occur.
Anybody else had this issue ? I think it is a thread management bug inside the UniAlerter component.
I am using version Unidac 6.4.16 in Delphi XE5 ; Postgres 9.5.5
regards,
Pascal