What could cause Run-time error 1012 Error accessing application data directories

删除回忆录丶 提交于 2019-12-24 19:34:02

问题


Friend of mine has a problem :).

There is an application written in Visual Basic 6.0 (not by him).

One of users reported that when it run on Windows 2000 and tried to scan folders on disk it raised box with message:

Run-time error 1012 Error accessing application data directories

We couldn't google anything about it and didn't find anything about runtime error 1012 in VB6 help files.

My guess was that VB calls some old API function which returns folder to which app has no access (private, ciphered, belongs to other user and app is run by user without needed privileges).

But we could not reproduce this (on Windows XP professional).

Anyone meets with bug like this in the past?


回答1:


Error 1012 is rather generically ERROR_CANT_READ. See this Microsoft list, but it also implies it refers to the registry.

You could try running SysInternals Process Monitor to look for failing file/registry operations by the process.



来源:https://stackoverflow.com/questions/46156/what-could-cause-run-time-error-1012-error-accessing-application-data-directorie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!