Web Connection
Exe Version in COM mode
Gravatar is a globally recognized avatar based on your email address. Exe Version in COM mode
  Marcel DESMET
  All
  Dec 8, 2018 @ 03:55am

Hello,

Just move from FILE mode to COM mode and have a problem to retreive exe version in COM mode

It work's at 7:23:00 and failed at 7:24:51 ??

Here is the code in the server ONLOAD method

DIMENSION laVersion[1]
AGETFILEVERSION(laVersion,SYS(16,0))
IF TYPE('laVersion[4]') ="C"
  THIS.cVersion = laVersion[4]
ELSE	
  THIS.cVersion = "unknown"
ENDIF 
Gravatar is a globally recognized avatar based on your email address. re: Exe Version in COM mode
  Rick Strahl
  Marcel DESMET
  Dec 8, 2018 @ 11:25am

No idea...

But if I had to guess some sort of access problem - permissions (reading the EXE?) or contention (multiple instances reading the exe at the same time)...

Set up a Web Connection request and spit back the version from there.

+++ Rick ---

© 1996-2024