• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Notifying a message in Action center.


Commit MetaInfo

Revision042297e3634806d38b425083be4ec6bb1d7ca825 (tree)
Time2015-01-20 10:50:02
AuthorJeffyTS <JeffyTS@outl...>
CommiterJeffyTS

Log Message

Improved error messages.

Change Summary

Incremental Difference

--- a/CtrlVIX/CtrlVix.cs
+++ b/CtrlVIX/CtrlVix.cs
@@ -679,8 +679,117 @@ namespace CtrlVix
679679 + IVixLib.GetErrorText(err, null),
680680 "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
681681 #else
682+ string errMsg;
683+ switch (err)
684+ {
685+ case VixCOM.Constants.VIX_E_TIMEOUT_WAITING_FOR_TOOLS: // 3000
686+ errMsg = "VIX_E_TIMEOUT_WAITING_FOR_TOOLS";
687+ break;
688+ case VixCOM.Constants.VIX_E_UNRECOGNIZED_COMMAND: // 3001
689+ errMsg = "VIX_E_UNRECOGNIZED_COMMAND";
690+ break;
691+ case VixCOM.Constants.VIX_E_OP_NOT_SUPPORTED_ON_GUEST: // 3003
692+ errMsg = "VIX_E_OP_NOT_SUPPORTED_ON_GUEST";
693+ break;
694+ case VixCOM.Constants.VIX_E_PROGRAM_NOT_STARTED: // 3004
695+ errMsg = "VIX_E_PROGRAM_NOT_STARTED";
696+ break;
697+ case VixCOM.Constants.VIX_E_CANNOT_START_READ_ONLY_VM: // 3005
698+ errMsg = "VIX_E_CANNOT_START_READ_ONLY_VM";
699+ break;
700+ case VixCOM.Constants.VIX_E_VM_NOT_RUNNING: // 3006
701+ errMsg = "VIX_E_VM_NOT_RUNNING";
702+ break;
703+ case VixCOM.Constants.VIX_E_VM_IS_RUNNING: // 3007
704+ errMsg = "VIX_E_VM_IS_RUNNING";
705+ break;
706+ case VixCOM.Constants.VIX_E_CANNOT_CONNECT_TO_VM: // 3008
707+ errMsg = "VIX_E_CANNOT_CONNECT_TO_VM";
708+ break;
709+ case VixCOM.Constants.VIX_E_POWEROP_SCRIPTS_NOT_AVAILABLE: // 3009
710+ errMsg = "VIX_E_POWEROP_SCRIPTS_NOT_AVAILABLE";
711+ break;
712+ case VixCOM.Constants.VIX_E_NO_GUEST_OS_INSTALLED: // 3010
713+ errMsg = "VIX_E_NO_GUEST_OS_INSTALLED";
714+ break;
715+ case VixCOM.Constants.VIX_E_VM_INSUFFICIENT_HOST_MEMORY: // 3011
716+ errMsg = "VIX_E_VM_INSUFFICIENT_HOST_MEMORY";
717+ break;
718+ case VixCOM.Constants.VIX_E_SUSPEND_ERROR: // 3012
719+ errMsg = "VIX_E_SUSPEND_ERROR";
720+ break;
721+ case VixCOM.Constants.VIX_E_VM_NOT_ENOUGH_CPUS: // 3013
722+ errMsg = "VIX_E_VM_NOT_ENOUGH_CPUS";
723+ break;
724+ case VixCOM.Constants.VIX_E_HOST_USER_PERMISSIONS: // 3014
725+ errMsg = "VIX_E_HOST_USER_PERMISSIONS";
726+ break;
727+ case VixCOM.Constants.VIX_E_GUEST_USER_PERMISSIONS: // 3015
728+ errMsg = "VIX_E_GUEST_USER_PERMISSIONS";
729+ break;
730+ case VixCOM.Constants.VIX_E_TOOLS_NOT_RUNNING: // 3016
731+ errMsg = "VIX_E_TOOLS_NOT_RUNNING";
732+ break;
733+ case VixCOM.Constants.VIX_E_GUEST_OPERATIONS_PROHIBITED: // 3017
734+ errMsg = "VIX_E_GUEST_OPERATIONS_PROHIBITED";
735+ break;
736+ case VixCOM.Constants.VIX_E_ANON_GUEST_OPERATIONS_PROHIBITED: // 3018
737+ errMsg = "VIX_E_ANON_GUEST_OPERATIONS_PROHIBITED";
738+ break;
739+ case VixCOM.Constants.VIX_E_ROOT_GUEST_OPERATIONS_PROHIBITED: // 3019
740+ errMsg = "VIX_E_ROOT_GUEST_OPERATIONS_PROHIBITED";
741+ break;
742+ case VixCOM.Constants.VIX_E_MISSING_ANON_GUEST_ACCOUNT: // 3023
743+ errMsg = "VIX_E_MISSING_ANON_GUEST_ACCOUNT";
744+ break;
745+ case VixCOM.Constants.VIX_E_CANNOT_AUTHENTICATE_WITH_GUEST: // 3024
746+ errMsg = "VIX_E_CANNOT_AUTHENTICATE_WITH_GUEST";
747+ break;
748+ case VixCOM.Constants.VIX_E_UNRECOGNIZED_COMMAND_IN_GUEST: // 3025
749+ errMsg = "VIX_E_UNRECOGNIZED_COMMAND_IN_GUEST";
750+ break;
751+ case VixCOM.Constants.VIX_E_CONSOLE_GUEST_OPERATIONS_PROHIBITED: // 3026
752+ errMsg = "VIX_E_CONSOLE_GUEST_OPERATIONS_PROHIBITED";
753+ break;
754+ case VixCOM.Constants.VIX_E_MUST_BE_CONSOLE_USER: // 3027
755+ errMsg = "VIX_E_MUST_BE_CONSOLE_USER";
756+ break;
757+ case VixCOM.Constants.VIX_E_VMX_MSG_DIALOG_AND_NO_UI: // 3028
758+ errMsg = "VIX_E_VMX_MSG_DIALOG_AND_NO_UI";
759+ break;
760+ case VixCOM.Constants.VIX_E_OPERATION_NOT_ALLOWED_FOR_LOGIN_TYPE: // 3031
761+ errMsg = "VIX_E_OPERATION_NOT_ALLOWED_FOR_LOGIN_TYPE";
762+ break;
763+ case VixCOM.Constants.VIX_E_LOGIN_TYPE_NOT_SUPPORTED: // 3032
764+ errMsg = "VIX_E_LOGIN_TYPE_NOT_SUPPORTED";
765+ break;
766+ case VixCOM.Constants.VIX_E_EMPTY_PASSWORD_NOT_ALLOWED_IN_GUEST: // 3033
767+ errMsg = "VIX_E_EMPTY_PASSWORD_NOT_ALLOWED_IN_GUEST";
768+ break;
769+ case VixCOM.Constants.VIX_E_INTERACTIVE_SESSION_NOT_PRESENT: // 3034
770+ errMsg = "VIX_E_INTERACTIVE_SESSION_NOT_PRESENT";
771+ break;
772+ case VixCOM.Constants.VIX_E_INTERACTIVE_SESSION_USER_MISMATCH: // 3035
773+ errMsg = "VIX_E_INTERACTIVE_SESSION_USER_MISMATCH";
774+ break;
775+ case VixCOM.Constants.VIX_E_CANNOT_POWER_ON_VM: // 3041
776+ errMsg = "VIX_E_CANNOT_POWER_ON_VM";
777+ break;
778+ case VixCOM.Constants.VIX_E_NO_DISPLAY_SERVER: // 3043
779+ errMsg = "VIX_E_NO_DISPLAY_SERVER";
780+ break;
781+ case VixCOM.Constants.VIX_E_TOO_MANY_LOGONS: // 3046
782+ errMsg = "VIX_E_TOO_MANY_LOGONS";
783+ break;
784+ case VixCOM.Constants.VIX_E_INVALID_AUTHENTICATION_SESSION: // 3047
785+ errMsg = "VIX_E_INVALID_AUTHENTICATION_SESSION";
786+ break;
787+ default:
788+ errMsg = "Inside VIX error.";
789+ break;
790+ }
682791 MessageBox.Show("Inside VIX error: " + IVixLib.ErrorCode(err).ToString("D")
683- + " : Inside VIX error.",
792+ + " : " + errMsg,
684793 "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
685794 #endif
686795 }
--- a/CtrlVIX/Properties/AssemblyInfo.cs
+++ b/CtrlVIX/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
3232 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
3333 // 既定値にすることができます:
3434 // [assembly: AssemblyVersion("1.0.*")]
35-[assembly: AssemblyVersion("1.0.3.0")]
36-[assembly: AssemblyFileVersion("1.0.3.0")]
35+[assembly: AssemblyVersion("1.0.4.0")]
36+[assembly: AssemblyFileVersion("1.0.4.0")]
--- a/VMwPlayerTaskTray/Properties/AssemblyInfo.cs
+++ b/VMwPlayerTaskTray/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
3232 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
3333 // 既定値にすることができます:
3434 // [assembly: AssemblyVersion("1.0.*")]
35-[assembly: AssemblyVersion("1.0.4.*")]
36-[assembly: AssemblyFileVersion("1.0.4.0")]
35+[assembly: AssemblyVersion("1.0.5.*")]
36+[assembly: AssemblyFileVersion("1.0.5.0")]
--- a/readme.txt
+++ b/readme.txt
@@ -38,6 +38,7 @@ Rlease & modify
3838 2015/01/06 1.0.2 Improved IO exception and fixed some bugs.
3939 2015/01/07 1.0.3 Changed to not check .vmx file existing when started and running.
4040 2015/01/10 1.0.4 Separated source files.
41+ 2015/01/20 1.0.5 Improved error messages.
4142
4243
4344