Ошибка runtime error 2147467259 80004005

Написал я тут на VB6 небольшую прогу: подключается к SQL Server 2000 через ADO, вводятся данные, сохраняются и распечатываются. Операционки — у меня Win2K, у пользователей WinNT 4(кажется). Пару недель она работала как у меня, так и у пользователей. Вчера же у пользователей с каких то фигов при запуске выдала следующее:
Run-time error -2147467259(80004005) [DBNMPNTW] ConnectionOpe(CreateFile())
После сообщения есессно ничего не загрузилось…
Самое интересное что у меня то всё работает… у моей учётной записи прав конечно побольше чем у простых юзеров нашей сети… но ведь две недели до этого всё работало… админ пока молчит, вроде бы ничего не менял… в чём проблема? как её решить? спасибо…

5 ответов

258

16 января 2005 года

SergeySV

1.5K / / 19.03.2003

Как ты сам понимаешь, указать конкретную причину по таким симптомам врядли кто-нибудь возьмется, … обычно в таких случаях советуют воспользовать утилитой — Profiler (так помойму пишется), можно очень подробно посмотреть все что приходит/уходи на сервак MS SQL, проанализировать, обычно все становится ясно — но это конечно, если проблема на стадии связи с серваком происходит…. но раз у всех ползователей сразу, то врядли это конечно локальные проблемы

10

16 января 2005 года

Freeman

3.2K / / 06.03.2004

Цитата:

Originally posted by SergeySV
но раз у всех ползователей сразу, то врядли это конечно локальные проблемы

Хм, а может оказаться банально — IP сервака назначается по DHCP, и он поменялся. А у тебя, например, он прописан по имени, а не по IP…

Ну, или срок какой-нить политики или сертификата истек…

Когда подобная ерунда происходит, обычно с проверок ерунды и начинают.

411

17 января 2005 года

Serzh

136 / / 09.07.2003

Цитата:

Originally posted by smartsoft

Хм, а может оказаться банально — IP сервака назначается по DHCP, и он поменялся. А у тебя, например, он прописан по имени, а не по IP…

Ну, или срок какой-нить политики или сертификата истек…

Когда подобная ерунда происходит, обычно с проверок ерунды и начинают.

Подобная ошибка бывает и при работе на чистом VBA.
На мой взгляд сущность ошибки в переполнении некой переменной типа DWORD. Обычно это возникает
в случаях некорректной работы со стеком, например
при рекурсивных вызовах процедур. И дело тут не
в сроке нахождения задачи у пользователя, а в том
насколько активно он с ней работает…

17K

16 марта 2006 года

fbrym

1 / / 16.03.2006

Написал я тут на VB6 небольшую прогу: подключается к SQL Server 2000 через ADO, вводятся данные, сохраняются и распечатываются. Операционки — у меня Win2K, у пользователей WinNT 4(кажется). Пару недель она работала как у меня, так и у пользователей. Вчера же у пользователей с каких то фигов при запуске выдала следующее:
Run-time error -2147467259(80004005) [DBNMPNTW] ConnectionOpe(CreateFile())

Автор отзовитесь, как решили проблему? Или кто нибудь подскажите. У меня проблемы такие: в экселе VB-скрипт подключается к MSSQL и все время работало, вдруг сейчас стало выдавать такую ошибку
Run-time error -2147467259(80004005) [DBNMPNTW]
Не может найти SQL-сервер

2.0K

16 марта 2006 года

MNikolay

16 / / 20.12.2002

Цитата:

Originally posted by fbrym
Написал я тут на VB6 небольшую прогу: подключается к SQL Server 2000 через ADO, вводятся данные, сохраняются и распечатываются. Операционки — у меня Win2K, у пользователей WinNT 4(кажется). Пару недель она работала как у меня, так и у пользователей. Вчера же у пользователей с каких то фигов при запуске выдала следующее:
Run-time error -2147467259(80004005) [DBNMPNTW] ConnectionOpe(CreateFile())

Автор отзовитесь, как решили проблему? Или кто нибудь подскажите. У меня проблемы такие: в экселе VB-скрипт подключается к MSSQL и все время работало, вдруг сейчас стало выдавать такую ошибку
Run-time error -2147467259(80004005) [DBNMPNTW]
Не может найти SQL-сервер

К сожалению давно это было и я уже не могу сказать точоно как решилась проблема (блин, надо было сюда же сразу написать…. в дальнейшем так и буду делать….) ….

Поэтому….
1. попробуй посмотреть msdn:
http://search.microsoft.com/results.aspx?q=2147467259%2880004005%29+%5BDBNMPNTW%5D&l=3&mkt=ru-RU&FORM=QBME3
возможно что-нибудь да найдёшь….
2. всётаки я могу примерно попытаться вспомнить список решений проблем с подключением к MS SQL, c которыми столкнулся при разработке той программы… Совершенно точно помню что системный админ долго мне ездил по ушам что у пользователей достаточно прав для подключения к SQL, в результате выяснилось что это правдв но только частично: на MS SQL в параметрах авторизации (серыер и Windows/только Windows) была указаны только Windows Authentication — меняли на SQL b Windows….
Так же, из 1 пункта, по ссылке, можно найти , кажется 2-ая по счёту, статейку об открытие и закрытие Recordset’ов… кажись всё-таки была и такая штука у меня — ещё не закрыт какой-то Recordset, а уже пытаюсь открыть новый…. (http://support.microsoft.com/default.aspx?scid=kb;en-us;180843).

Вообщем попробуй, помотри. Если есть желание — покажи код до момента появления ошибки.

Выяснишь в чём проблема — не поленись, отпиши сюда. Не повторяй чужих глупостей :)

 

Всем добрый вечер!!  

  в строке кода:  
CreateObject(«Word.Application»).Documents.Open(«C:111.docx», , True).ExportAsFixedFormat «C:111.pdf», 17  

  появляется ошибка:  
Run-time error ’-2147467259 (80004005)’:  
Данный файл используется другим приложением или пользователем.  

  помогите пожалуйста — как ее избежать?    
какой файл используется: docx или pdf?  
как его «перестать использовать» ? :))  

  причем — если pdf уже существует (то есть, если сохранение идет поверх существующего), то вроде ошибка не выскакивает. подскажите пожалуйста команду создания пустого pdf файла-заглушки. (не сохранять или печатать в pdf, а именно просто создать. что-нибудь типа FSO.Makefile («C:111.pdf»)

 

Юрий М

Модератор

Сообщений: 60780
Регистрация: 14.09.2012

Контакты см. в профиле

Для начала попробуйте в диспетчере задач посмотреть — есть ли там среди открытых документов Ваши. И закройте там же само приложение.

 

процесса WINWORD.EXE нету  
процессов *Adobe*, *Acro* найти не могу  

  даже если есть куча процессов WINWORD.EXE — перезапись(!) файла делается отлично, при условии, если файл pdf уже существует.  

  таким образом, ошибка появляется только при создании нового файла.  
если файл есть, и идет перезапись — то ошибка вроде не появляется  

  вот и хочу перед выполнением функции создавать макросом пустой файл-заглушку, чтобы он в любом случае перезаписывался и не было ошибок

 

вставила перед выполнением функции:  
FileCopy «C:_Пустой.pdf», «C:111.pdf»  
ошибка пропала :)

 

Hugo

Пользователь

Сообщений: 23374
Регистрация: 22.12.2012

Бывает, что в корень C запрещает писать система или антивирус.

 

а вот еще нашла решение:

http://tiny.cc/u28bdw  

по первичным тестам ошибка тоже не выскакивает  

  вместо:  
Set Word = CreateObject(«Word.Application»)  
Set Wordfile = Word.Documents.Open(«C:111.docx»)  

  заменить на:  
Set Word = CreateObject(«Word.Application»)  
Word.Documents.Open(«C:111.docx»)  
Set Wordfile = Word.ActiveDocument

 

точнее так:  
Set Word = CreateObject(«Word.Application»)  
Word.Documents.Open «C:111.docx»  
Set Wordfile = Word.ActiveDocument

 

_Лена_

Гость

#8

26.04.2012 00:57:19

а нет :(  
это из-за файла-заглушки работало с новым кодом.  
файл-заглушку убрала — ошибка и в новом коде появилась.  

  ну буду значит через пустой файл-заглушку делать (msg 26.04.2012, 00:13)

  • Remove From My Forums
  • Вопрос

  • While running a VBA Macro to paste Graphs into PPT; I am getting the following error.

    ================================================================

    Microsoft Visual Basic

    Run-time error’-2147467259(80004005):
    Presentation (unknown member): The Path or filename for c:tempfilename.ppt is invalid. Please check that the path and file name are correct.

    ================================================================

    However; this macro was running earlier without any errors and suddenly showing this error. The same macro is still running without any errors in other computers. Please help me find a solution to this problem.

    Thanks,

    Arul

Ответы

  • Hi Arul,

    According to the error message, the file you operate is invalid. I suggest you check the c:tempfilename.ppt
    to see whether it exists or is corruped. If the file can be opened successfully, wolud you mind sharing the the code snippet with us to troubleshoot this issue?

    Best regards
    Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click
    HERE to participate the survey.

    • Помечено в качестве ответа

      7 февраля 2014 г. 9:29

I’m almost 100% certain I found a solution to this issue. It may have caused issues for someone else 4 years ago, but it caused issues for me today and I wanted to contribute my answer for anyone else running into the same problem.

I had enabled an «Additional Control» in the Controls Toolbox for Windows Media Player. I think when it loaded in a video file, it overran the memory. This is when I started panicking (company computer and all) and Googling and came across this and a few other articles without a real, fast fix.

The hunch: Once that video file was attempted to be loaded in RAM memory (because that’s how Userforms work) it locked up all the memory Excel would allow before throwing all the errors.

What I tried from other posts in various places: I rebooted a few times (before Googling, even). I tried the Quick Repair of Office from Add/Remove programs, that didn’t work. (I’m using Office 2016.)

So, what worked? I had the idea that maybe I could disable all ActiveX from loading in my file, and Googled that. I got: https://support.office.com/en-us/article/enable-or-disable-activex-settings-in-office-files-f1303e08-a3f8-41c5-a17e-b0b8898743ed and proceeded to disable all ActiveX controls in Excel. I closed the file out. Can’t recall if I closed Excel but I probably did.

Then I loaded up my file. (ActiveX is totally disabled at this time.) No errors! I went to VBA (ALT + F11), opened my UserForm, and the video I had inserted and could not remove was just… gone. I saved the file. I closed the file.

I opened Excel. I re-enabled ActiveX in the Trust Center. I opened my file. Still, no more video on my UserForm (I didn’t need it anyway) and no «Unspecified» (memory) errors! And, I can save again!

I hope this solution persists… if not I’ve got some «splainin’ » to do. So far, I’m designing and using the Userform, and saving the file, with no issues whatsoever. I think it worked!

Icon Ex Error Number: Error &H80004005(-2147467259)
Error Name: System Error &H80004005 (-2147467259)
Error Description: System Error &H80004005 (-2147467259). Unspecified error. An MFC ActiveX control that subclasses any of the window classes implemented by Comctl32.dll causes this error to be thrown from a Visual Basic 6.0.exe.
Developer: Microsoft Corporation
Software: ActiveX
Applies to: Windows XP, Vista, 7, 8, 10, 11

System Error &H80004005 (-2147467259) Definition

System Error &H80004005 (-2147467259) is also considered a runtime error (bug). Developers like Microsoft Corporation usually go through several checkpoints before launching a software program like ActiveX. As with anything in life, sometimes problems like error &H80004005(-2147467259) get overlooked.

Error &H80004005(-2147467259) might be faced by ActiveX users if they are using the program regularly, also seen as «System Error &H80004005 (-2147467259). Unspecified error. An MFC ActiveX control that subclasses any of the window classes implemented by Comctl32.dll causes this error to be thrown from a Visual Basic 6.0.exe.». In the event of the detected error &H80004005(-2147467259), customers may convey the presence of problem to Microsoft Corporation via email or bug reporting. Programmers can then correct these errors in the code and include a hotfix that can be downloaded from their website. As a result, the developer can use update packages for ActiveX accessible from their website (or automatic download) to resolve these error &H80004005(-2147467259) problems and other errors.

Why Runtime Error &H80004005(-2147467259) Occurs?

The most common occurrences System Error &H80004005 (-2147467259) problems is when loading up ActiveX. These are the three major triggers for runtime errors like error &H80004005(-2147467259):

Error &H80004005(-2147467259) Crash — Error &H80004005(-2147467259) will stop the machine from performing a regular program operation. If ActiveX can’t handle the given input, or it isn’t able to produce the required output, this typically happens.

System Error &H80004005 (-2147467259) Memory Leak — Error &H80004005(-2147467259) memory leak results in ActiveX continually using more and more memory, bogging down the system. It may be triggered by the misconfiguration of the software by Microsoft Corporation, or when one command starts a loop which can’t be ended.

Error &H80004005(-2147467259) Logic Error — A «logic error» is said to be generated when software receives the correct input but generates incorrect output. This is seen when Microsoft Corporation’s source code involves a defect in the input data analysis.

Most System Error &H80004005 (-2147467259) errors are the result of a missing or corrupt version of the file installed by ActiveX. Downloading and replacing your Microsoft Corporation file can fix the problem in most cases. We also recommend running a registry scan to clean up any invalid System Error &H80004005 (-2147467259) references which could be cause of the error.

Typical System Error &H80004005 (-2147467259) Errors

ActiveX Complications with System Error &H80004005 (-2147467259) Comprise Of:

  • «System Error &H80004005 (-2147467259) Application Error.»
  • «System Error &H80004005 (-2147467259) not valid.»
  • «Sorry for the inconvenience — System Error &H80004005 (-2147467259) has a problem.»
  • «Can’t locate System Error &H80004005 (-2147467259)»
  • «System Error &H80004005 (-2147467259) can’t be found.»
  • «Error starting program: System Error &H80004005 (-2147467259).»
  • «Can’t run System Error &H80004005 (-2147467259).»
  • «System Error &H80004005 (-2147467259) failed.»
  • «Fault in Software Path: System Error &H80004005 (-2147467259).»

These Microsoft Corporation error messages can appear during program installation, while a System Error &H80004005 (-2147467259)-related software program (eg. ActiveX) is running, during Windows startup or shutdown, or even during the installation of the Windows operating system. It’s important to note when System Error &H80004005 (-2147467259) issues happen, as it helps troubleshoot ActiveX problems (and report to Microsoft Corporation).

Root of System Error &H80004005 (-2147467259) Problems

These System Error &H80004005 (-2147467259) troubles are created by missing or corrupt System Error &H80004005 (-2147467259) files, invalid ActiveX registry entries, or malicious software.

More specifically, these System Error &H80004005 (-2147467259) errors can be caused by:

  • Corrupted or invalid System Error &H80004005 (-2147467259) registry entry.
  • Virus-contaminated and corrupted System Error &H80004005 (-2147467259).
  • Another program maliciously or mistakenly deleted System Error &H80004005 (-2147467259)-related files.
  • Another software in conflict with ActiveX, System Error &H80004005 (-2147467259), or shared references.
  • Corrupted installation or download of ActiveX (System Error &H80004005 (-2147467259)).

Product by Solvusoft

Download Now
WinThruster 2023 — Scan your PC for computer errors.

Compatible with Windows 11, 10, 8, 7, Vista, XP and 2000

Optional Offer for WinThruster by Solvusoft | EULA | Privacy Policy | Terms | Uninstall

Понравилась статья? Поделить с друзьями:
  • Ошибка runtime error 13 type mismatch как исправить
  • Ошибка runtime error 1004 что делать
  • Ошибка runtime error 1004 excel
  • Ошибка running gear fault service now на туареге
  • Ошибка rundll32 exe при запуске