Search

Crash while declairing C++ enum by mauja

Closed
as Fixed Help for as Fixed

2
0
Sign in
to vote
Type: Bug
ID: 537956
Opened: 3/1/2010 6:36:06 PM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
I am working with a DLL project, and get a Visual Studio crash while adding the text "enum eAUTOFOCUS" to a header file.
Details (expand)

Product Language

English

Version

Visual Studio 2010 Release Candidate

Operating System

Windows 7

Operating System Language

English

Steps to Reproduce

1) Create an empty DLL project.
2) Populate the project with a cpp and an h file.
4) Create a function in the cpp and h files, with the following signature:
extern "C" __declspec(dllexport) int _stdcall get_image_sharpness_fft(const void* input_image, const int method, double* sharpness);
5) Attempt to create and enum in the header file
6) Encounter crash.

Actual Results

//
// Module name: Crash_Test.h
//

enum eAUTOFOCUS // Crash occurs while entering this line of text, before the rest of the declariation can be completed.

extern "C" __declspec(dllexport) int _stdcall get_image_sharpness_fft(const void* input_image, const int method, double* sharpness);

Expected Results

//
// Module name: Crash_Test.h
//

enum eAUTOFOCUS
{
    FFT,
    VARIANCE
};

extern "C" __declspec(dllexport) int _stdcall get_image_sharpness_fft(const void* input_image, const int method, double* sharpness);
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 4/30/2010 at 2:59 PM
Thanks for reporting this issue. It will be fixed with the next service pack.
Posted by Microsoft on 3/2/2010 at 1:04 AM
Thanks for your feedback. We were able to reproduce the issue you are seeing. We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 3/1/2010 at 7:06 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.