SmartQuery with MasterSource and empty detail dataset crash
Posted: Thu 12 May 2011 05:44
Hi
I have a really nasty problem. My application build with Delphi 7 and ODAC 7.00.0.3 crashes when main query becomes empty after opening it. Message some kind of read address from ????.
I can't reproduce it in simple application, but I think that the problem is when:
SmartQuery1 (MainQuery)
DataSource1 (DataSet=MainQuery)
SmartQuery2 (SubQuery, SubQuery.MasterSource=DataSource1)
when MainQuery has data then SubQuery execute 1 SQL statement (saw via OraMonitor)
when MainQuery is empty then SubQuery execute 2 same SQL statements with null params (saw via OraMonitor).
so if there are more than 2 Queries, and they are more complicated, and have own SubQueries (and some events on after scroll), and cxGrid (more afterscroll events) it can be harmful...
The question is why on empty MainQuery SubQuery via MasterSource opened twice and can it be fixed?
I have a really nasty problem. My application build with Delphi 7 and ODAC 7.00.0.3 crashes when main query becomes empty after opening it. Message some kind of read address from ????.
I can't reproduce it in simple application, but I think that the problem is when:
SmartQuery1 (MainQuery)
DataSource1 (DataSet=MainQuery)
SmartQuery2 (SubQuery, SubQuery.MasterSource=DataSource1)
when MainQuery has data then SubQuery execute 1 SQL statement (saw via OraMonitor)
when MainQuery is empty then SubQuery execute 2 same SQL statements with null params (saw via OraMonitor).
so if there are more than 2 Queries, and they are more complicated, and have own SubQueries (and some events on after scroll), and cxGrid (more afterscroll events) it can be harmful...
The question is why on empty MainQuery SubQuery via MasterSource opened twice and can it be fixed?