Unwanted messagebox

Unwanted messagebox

Daan_M
Collaborator Collaborator
212 Views
1 Reply
Message 1 of 2

Unwanted messagebox

Daan_M
Collaborator
Collaborator

Hi,

 

I have some automated configurators running on a server that trigger by placing a .csv file with paramaters in a certrain folder using

Dim oSourceFile As String = RuleArguments("SourceFile")

 

I applied some changes throughout time and i ran into a problem i haven't encountered before;

 

Suddenly there is a messagebox popup

 

The configurator basically stops functioning because i have to manually log on to the server and press 'OK' on the messagebox. At first i thought i left a msgbox() somewhere in my code but this wasn't the case.

 

The messagebox popup looks like this;

Daan_M_0-1667809702190.png

 

The messagebox title makes no sense to me (yellow)

The messagebox message is one of the variable parameters in my .csv files which will later be the export STP file name.

 

Does anyone have an idea why this keeps popping up? Or better yet, how to avoid this popping up

 

Thanks in advance

 

 

0 Likes
213 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

Hi @Daan_M.  I can't be 100% sure, but have you tried implementing performance enhancing tools like turning on 'SilentOperation', and turning off 'ScreenUpdating' while a bunch of processing happens, then reverse those settings after the processing is done?

ThisApplication.ScreenUpdating = False
ThisApplication.SilentOperation = True
'do a bunch of stuff here
ThisApplication.ScreenUpdating = True
ThisApplication.SilentOperation = False

Also, when using a MsgBox function, if you do not specify a Title, it will automatically fill in its Title with some text that makes no sense, which is why I usually supply an empty String, even if I do not care about its title.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes