[Dropped] CreateObject block my app

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Locked
catiaremigio
Posts: 3
Joined: Wed Oct 01, 2025 3:49 pm
Location: Portugal

[Dropped] CreateObject block my app

Post by catiaremigio »

Hi everyone,

On a vb.net app, i have code to open ods file, and i have this code working since 2018.
Today, stop working and blocked my app.

Can you tell if there is something wrong?

Dim myDoc, mySheet, myCell As Object
Dim OpenOffice As Object = CreateObject("com.sun.star.ServiceManager") // block on this line on createObject
Dim StarDesktop As Object = OpenOffice.createinstance("com.sun.star.frame.Desktop")

Thanks
Last edited by MrProgrammer on Sun Oct 19, 2025 4:14 pm, edited 2 times in total.
Reason: Dropped: No reply from catiaremigio
OpenOffice 4.1.15 on windows 11 Pro, 64 bits
Bidouille
Volunteer
Posts: 660
Joined: Mon Nov 19, 2007 10:58 am
Location: France

Re: CreateObject block my app

Post by Bidouille »

catiaremigio wrote: Wed Oct 01, 2025 4:50 pm Today, stop working and blocked my app.
And what happened yesterday?
If you program in VB.Net, there is no need to use Calc to open a document.
An ODS is a ZIP file that contains XML that you can handling directly.
catiaremigio
Posts: 3
Joined: Wed Oct 01, 2025 3:49 pm
Location: Portugal

Re: CreateObject block my app

Post by catiaremigio »

Nothing happened, just stop working, just block.
If i open a new file, not editing one, i need to add some information on the sheets.
OpenOffice 4.1.15 on windows 11 Pro, 64 bits
Bidouille
Volunteer
Posts: 660
Joined: Mon Nov 19, 2007 10:58 am
Location: France

Re: CreateObject block my app

Post by Bidouille »

Have you observed the same behaviour with a Basic macro?
catiaremigio
Posts: 3
Joined: Wed Oct 01, 2025 3:49 pm
Location: Portugal

Re: CreateObject block my app

Post by catiaremigio »

With a Basic Macro i didn't try.
At this moment, i resolve with cleannig all the processes on the task manager. But if i open a several copies of this template, stays on the same way.
OpenOffice 4.1.15 on windows 11 Pro, 64 bits
Bidouille
Volunteer
Posts: 660
Joined: Mon Nov 19, 2007 10:58 am
Location: France

Re: CreateObject block my app

Post by Bidouille »

catiaremigio wrote: Mon Oct 06, 2025 12:09 pm With a Basic Macro i didn't try.
So can you test it and give us the result?
Locked