Ошибка 1532 визио

So I’m really confused right now. Out of the blue my code gets me the error «DOS Sharing violation».

Image with the Error

It’s weird because, it says that is trying to save my document, but I just want to open it.

This is my Code:

Public Sub ReadActivity()
Dim vsoDocument As Visio.Document
Dim vsoPage As Visio.Page


Set vsoDocument = Documents.Open("C:\Users\Philip\Dropbox\Test\Aktivität0.vsdx")
Set vsoPage = vsoDocument.Pages(1)

SvgExport (ActiveDocument.path & "\files_and_images\" & Left(ActiveDocument.name, (InStrRev(ActiveDocument.name, ".", -1, vbTextCompare) - 1)) & ".svg") 
CreateCodeActivity

vsoDocument.Close
End Sub

So as you might see the code is simple nothing special is going on.
Before calling the method I’m using this for encoding my textfile: VBA : save a file with UTF-8 without BOM

And two things are very weird. First of all, I used this method two days in a row for coding the method «CreateCodeActivity» and I didn’t have any problems. And second, if I call the method let’s say three times, on the third time everything works perfectly…

Where might be the problem?

Are you trying to use Microsoft Visio, but are you getting the error message ‘1532 dos sharing violation’?

Microsoft Visio is a business presentation and diagramming software. It was developed by Microsoft Corporation and it was released in 1992. The software can be used to create presentations, diagrams, technical drawings and more.

Tech Support 24/7

Ask a Tech Specialist Online

Connect with the Expert via email, text or phone. Include photos, documents, and more. Get step-by-step instructions from verified Tech Support Specialists.

Ask a Tech Specialist Online

On this page, you will find more information about the most common causes and most relevant solutions for the Microsoft Visio error ‘1532 dos sharing violation’. Do you need help straight away? Visit our support page.

Let’s get started

It has never been easier to solve error «1532 dos sharing violation».

View list of solutions
Contact an expert

Error information

How to solve Microsoft Visio error 1532 dos sharing violation

We’ve created a list of solutions which you can follow if you want to solve this Microsoft Visio problem yourself. Do you need more help? Visit our support page if you need professional support with Microsoft Visio right away.

Tech Support 24/7

Ask a Tech Specialist Online

Connect with the Expert via email, text or phone. Include photos, documents, and more. Get step-by-step instructions from verified Tech Support Specialists.

Ask a Tech Specialist Online

Verified solution

The software is used in different industries such as engineering, architecture, construction and healthcare. Microsoft Visio is compatible with Windows Vista or later versions of Windows. However, there are many errors that can occur when you try to use the software properly. One of the most common errors is Microsoft Visio 1532 dos Sharing Violation error code. This error occurs when you try to use Microsoft Visio on your computer or when you try to install the software properly on your computer.

The problem can be caused by an issue with your computer or it can be caused by an issue with the operating system installed on your computer. Sometimes, problems with the operating system itself are responsible for this error code because these errors are usually caused by Windows updates or other programs installed on your computer that affect how other applications work properly. You might also encounter this error if other applications are interfering with the proper functioning of Microsoft Visio on your computer or if you have malware installed on your computer. To fix this error, you need to try a few solutions.

First of all, you might be using Windows Defender on your computer. If you are, it is recommended that you disable this program because it can cause a lot of problems on Microsoft Visio on your computer. You can also try to go to the Settings, select Update & security > Windows Defender. Then, exclude a file extension. After that, enter the file type for Visio and check if the Microsoft Visio 1532 dos Sharing Violation error still occurs.

If the error persists, you might need to update your Microsoft Visio. To do that, you can use the automatic update feature of Microsoft Visio. This feature is available on the Help menu of the software. When you try to update Microsoft Visio, it will detect your operating system and update itself accordingly. Another way to fix this error is to uninstall the software and then reinstall it. After that, check if the error still occurs.

The other thing you can do is to contact the developer for Support and Service to solve this error. You can try contacting them through their customer support number, filling a ticket online, and from their website to start live chat. The customer support will usually ask you to send them the error code that is appearing on your screen.

Have you found a solution yourself, but it is not in the list? Share your solution in the comments below.

Need more help?

Do you need more help?

Tech experts are ready to answer your questions.

Ask a question

Так что я действительно запутался прямо сейчас. Из моего кода я получаю сообщение об ошибке «Нарушение доступа к DOS».

Image with the Error

Это странно, потому что он говорит, что пытается сохранить мой документ, но я просто хочу его открыть.

Это мой код:

Public Sub ReadActivity()
Dim vsoDocument As Visio.Document
Dim vsoPage As Visio.Page

Set vsoDocument = Documents.Open("C:\Users\Philip\Dropbox\Test\Aktivität0.vsdx")
Set vsoPage = vsoDocument.Pages(1)

SvgExport (ActiveDocument.path & "\files_and_images\" & Left(ActiveDocument.name, (InStrRev(ActiveDocument.name, ".", -1, vbTextCompare) - 1)) & ".svg")
CreateCodeActivity

vsoDocument.Close
End Sub

Так как вы можете видеть, что код прост, ничего особенного не происходит. Перед вызовом метода я использую это для кодирования моего текстового файла: VBA: сохранить файл с UTF-8 без спецификации

И две вещи очень странные. Прежде всего, я использовал этот метод два дня подряд для кодирования метода «CreateCodeActivity», и у меня не было никаких проблем. И во-вторых, если я позвоню методу, скажем три раза, то в третий раз все работает отлично…

Где может быть проблема?

Так что я действительно смущен прямо сейчас. Мой код неожиданно выдает ошибку «Нарушение общего доступа к DOS».

Изображение с ошибкой

Это странно, потому что там написано, что я пытаюсь сохранить мой документ, но я просто хочу его открыть.

Это мой код:

Public Sub ReadActivity()
Dim vsoDocument As Visio.Document
Dim vsoPage As Visio.Page


Set vsoDocument = Documents.Open("C:\Users\Philip\Dropbox\Test\Aktivität0.vsdx")
Set vsoPage = vsoDocument.Pages(1)

SvgExport (ActiveDocument.path & "\files_and_images\" & Left(ActiveDocument.name, (InStrRev(ActiveDocument.name, ".", -1, vbTextCompare) - 1)) & ".svg") 
CreateCodeActivity

vsoDocument.Close
End Sub

Итак, как вы можете видеть, код прост, ничего особенного не происходит. Перед вызовом метода я использую это для кодирования моего текстового файла: VBA: сохраните файл с UTF-8 без спецификации

И две вещи очень странные. Прежде всего, я использовал этот метод два дня подряд для кодирования метода «CreateCodeActivity», и у меня не было никаких проблем. А во-вторых, если я вызову метод, скажем, три раза, в третий раз все работает отлично…

Где может быть проблема?

2017-02-09 12:12

1
ответ

Решение

Спасибо @Shmukko за подсказку, это действительно защитник Windows, который дает мне ошибку.

Для Windows 10 решение: перейдите в «Настройки» и выберите «Обновление и безопасность» -> «Защитник Windows». Выберите «Исключить расширение файла» и введите тип файла для Visio.

Вот и все.

2017-02-09 12:44

So I’m really confused right now. Out of the blue my code gets me the error «DOS Sharing violation».

Image with the Error

It’s weird because, it says that is trying to save my document, but I just want to open it.

This is my Code:

Public Sub ReadActivity()
Dim vsoDocument As Visio.Document
Dim vsoPage As Visio.Page


Set vsoDocument = Documents.Open("C:\Users\Philip\Dropbox\Test\Aktivität0.vsdx")
Set vsoPage = vsoDocument.Pages(1)

SvgExport (ActiveDocument.path & "\files_and_images\" & Left(ActiveDocument.name, (InStrRev(ActiveDocument.name, ".", -1, vbTextCompare) - 1)) & ".svg") 
CreateCodeActivity

vsoDocument.Close
End Sub

So as you might see the code is simple nothing special is going on.
Before calling the method I’m using this for encoding my textfile: VBA : save a file with UTF-8 without BOM

And two things are very weird. First of all, I used this method two days in a row for coding the method «CreateCodeActivity» and I didn’t have any problems. And second, if I call the method let’s say three times, on the third time everything works perfectly…

Where might be the problem?

Понравилась статья? Поделить с друзьями:
  • Ошибка 1541 тойота
  • Ошибка 1545 калина как исправить
  • Ошибка 1536 кайрон дизель
  • Ошибка 1541 газель 405 евро 2
  • Ошибка 1532 тойота