我想在Delphi中将某个属性标记为已弃用以便稍后删除.根据Delphi文档,不推荐使用的文档可以附加到任何声明中,但它不适用于属性.有没有办法做到这一点?
这是我试过的:
property SomeProp: string
read FSomeProp
write SetSomeProp; deprecated 'Use SomeOtherProp instead';
Run Code Online (Sandbox Code Playgroud) 我的应用程序有时从网络共享开始,一些客户在运行应用程序时报告了外部异常C0000006.根据我的谷歌研究,这"可能"与图像被分页和无法从网络重新加载有关.解决方法是告诉Windows将完整的映像文件加载到交换中并通过设置IMAGE_FILE_NET_RUN_FROM_SWAP标志从那里运行它
我的应用程序还依赖于在运行时加载的各种.bpl和.dll库.其中只有一些可以由我改变,有些是由其他供应商提供的.如果exe设置了这个标志,那么这个库会发生什么?是否也加载到交换文件中,或者它们是否仍然被分页并在需要时重新加载?我是否还需要在库中包含此标志?
我有一个有两个字段的表,a和b.在a = b和b = a的意义上,一些记录是重复的.我想删除这些记录.
考虑一下:
declare @temp table (a int, b int)
insert into @temp values (1, 2)
insert into @temp values (3, 4)
insert into @temp values (4, 3)
insert into @temp values (5, 6)
--delete 3, 4 or 4, 3
select * from @temp
/*
a | b
--|--
1 | 2
3 | 4
5 | 6
or (I don't care which one)
a | b
--|--
1 | 2
4 | 3
5 | 6 …Run Code Online (Sandbox Code Playgroud)