function Test:pachr: var str: string; begin str := 'Test Char'; result:=pchar(str); end; 上面的Test函数作为导出函数时候会出现访问野指针,因为str已经被释放了: 方法一:改成全局变量保存的话,可以正常访问到数据 varDataStore:String; function Test:pachr: var str: string; begin str := 'Test Char'; Da…
今天用repo获取android源码:../bin/repo init -u git://android.git.kernel.org/platform/manifest.git出现问题:问题一:Traceback (most recent call last):File "./repo", line 590, in <module> main(sys.argv[1:])File "./repo", line 557, in main _In…