APP - 58 APP - 58
MELSOFT
A
PPENDICES
(5) Displaying a Designer Ends Visual Studio
R
in Error
(a) Symptom
If a form including an ACT control is opened with the designer when a
Visual Studio
R
.NET project program is created, the following dialog box
appears and Visual Studio
R
ends in error.
If a Visual Studio
R
.NET project program including a form with an ACT
control is debugged, an exception may occur (0xC0000005:Access
violation) and the program may be closed. (For distinguishing Visual
Studio
R
.NET projects, refer to "Appendix 9.6 Distinguishing Types of
Projects".)
(b) Occurrence Cause
The problem occurs if a form including an ACT control is opened with the
designer in a Visual Studio
R
.NET project while DEP is enabled to ACT
controls.
The following shows the cases that DEP is enabled.
DEP Configuration
Creation environment
OptIn, OptOut AlwaysOn
Windows Vista
R
,
32-bit Windows
R
7
Visual Studio
R
2010
Windows
R
XP
Visual Studio
R
2010 -
: Causes problems -: Does not causes problems
(c) Workaround
To workaround this problem, change the DEP configuration as follows.
Creation environment DEP Configuration
Windows Vista
R
,
32-bit Windows
R
7
Visual Studio
R
2010 AlwaysOff
Windows
R
XP Visual Studio
R
2010
Other than AlwaysOn
(When AlwaysOn:
Change to OptIn,
When other than AlwaysOn:
No change necessary)
When the DEP configuration cannot be changed, this problem can be
avoided by creating a program using an ACT control without pasting it to a
form (Reference).