在安装Rad Studio 10.2 Tokio后而不是在上一个版本中,代码给我一个错误。
当我将有效的索引字符串分配给客户端DataSet的属性索引名时(并非总是如此,但我不明白为什么),代码给我这个错误:异常消息:
Access violation at address 4DB0D009 in module 'midas.dll'. Read of address 00000000.
这些是错误之前的步骤:
4db0d009 +000 midas.dll
0079489a +062 ... Datasnap.DBClient TCustomClientDataSet.SwitchToIndex
00794a72 +07e ... Datasnap.DBClient TCustomClientDataSet.SetIndex
0079516e +002 ... Datasnap.DBClient TCustomClientDataSet.SetIndexName
可能是什么原因?
埋藏在臭名昭著的midas.dll中的这些原因。恐怕您别无选择,只能尝试其他MIDAS.dll版本或修复其错误
问题在datasNap.dbclient的switchtoIndex过程中,我认为;在行上:
Status := FDSCursor.UseIndexOrder(MarshaledAString(MetaDataFromUnicode(IndexName)));