什么可能导致运行时错误 1012 访问应用程序数据目录时出错 [英] What could cause Run-time error 1012 Error accessing application data directories

查看:43
本文介绍了什么可能导致运行时错误 1012 访问应用程序数据目录时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的朋友有问题:)

有一个用 Visual Basic 6.0 编写的应用程序(不是他写的).

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

一位用户报告说,当它在 Windows 2000 上运行并尝试扫描磁盘上的文件夹时,它会弹出带有消息的框:

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

运行时错误 1012 访问应用程序数据目录时出错

我们无法通过谷歌搜索任何相关信息,也没有在 VB6 帮助文件中找到任何关于运行时错误 1012 的信息.

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

我的猜测是 VB 调用了一些旧的 API 函数,该函数返回应用程序无权访问的文件夹(私有、加密、属于其他用户,应用程序由没有所需权限的用户运行).

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).

但我们无法重现这一点(在 Windows XP 专业版上).

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

过去有人遇到过这样的错误吗?

Anyone meets with bug like this in the past?

推荐答案

错误 1012 是相当一般的 ERROR_CANT_READ.请参阅此 Microsoft 列表,但它也暗示它指的是注册表.

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

您可以尝试运行 SysInternals Process Monitor 以查找失败进程的文件/注册表操作.

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

这篇关于什么可能导致运行时错误 1012 访问应用程序数据目录时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆