Originally Posted by
ErosOlmi
Hi Brian,
I'm not sure error occurs due to OS_GetComputerName function.
Maybe parser is not able to exactly determine the precise line/byte where error occurs.
Or maybe some char of the computer name is a wide char (unicode)
Can you create simple a script that does something like the following and see if it is working or not in the computer having problems:
USES "OS"
Global sComputerName As String Value OS_GetComputerName
MsgBox sComputerName
Thanks
Eros
Eros, thanks for the suggestion. Here is the first part of my application code:
Uses "UI"
Uses "CONSOLE"
Uses "COMM"
Uses "WMI"
Uses "OS"
'---Constant declarations
Begin ControlID
%ID_StartUpdateButton
%ID_ExitButton
%ID_CommandOutputTexBox
%IDC_TIMER
End ControlID
%TIMER_DELAY = 100 '---Timer delay (in milliseconds, not very accurate below about 100)
Global hComm As Long
Global nBytes As Long
Global sBuffer As String
Global gPortOpen As Boolean
Global pID As Number
Global vData() As String
Global nItems As Long
Global Counter As Long
Global Position As Long
Global ComputerName As String Value OS_GetComputerName
Global Ports() As String
Global CountATI As Long
Global sHexFilename As String
Global sFirmwareNumber As String
Global bConsole As Boolean
Global bUpdaterConsole As Boolean
Global sCommandLine As String
' Replace the filename in the next two lines to change which HEX file gets programmed
#BUNDLE File "HEX", ".\EBF_v270.hex", "", ReplaceExisting=1
sFirmwareNumber = "2.7.0"
We have already sent this user several different things to try, in order to help us diagnose the problem and try some workarounds, and we haven't received any word back. We're hoping this is a good sign - that one of the things we asked them to try actually worked. (Normally you don't get any support contacts from things that work, only things that don't work, as I'm sure you're well aware.) We're not really able to push harder on them to try more tests at this point.
If they come back and want to try more things, I'll make an .exe and get them to test with your idea.
Until then, we can hope the issue has resolved itself.
Again, thanks, everyone on this forum is so helpful.
Bookmarks