Quantcast
Channel: Microsoft Connect: Recently Modified Feedback - Visual Studio and .NET Framework
Viewing all 38750 articles
Browse latest View live

Can not get size of static array defined in class template

$
0
0
Just curious why the following does not work under Visual Studio (it does under gcc). // ConsoleApplication1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include // *********************************************************** /** Macro to count the number of items in an array */ #define m_COUNT1(x) (sizeof(x)/sizeof(x[0])) // *********************************************************** template std::size_t GetArr...

Status: Closed, Resolution: Deferred, 4 Up-Votes, 0 Down-Votes, 2 validations, 0 workarounds, 4 comments, feedback id: 759407

The “Report data” is disabled When I choose the RDLC report

$
0
0
After I repair the MSSQL2014, the "Report data"can not be used

Status: Active, 0 Up-Votes, 0 Down-Votes, 0 validations, 0 workarounds, 2 comments, feedback id: 1330744

decltype is buggy in VS 2012

$
0
0
See: http://stackoverflow.com/questions/14085274/c-decltype-fails-to-deduce-type Try to use decltype on the address of a function template specialization and it will fail. It should work.

Status: Closed, Resolution: Deferred, 4 Up-Votes, 0 Down-Votes, 2 validations, 0 workarounds, 5 comments, feedback id: 775434

Calling a function that returns a reference to an incomplete type fails if the return value is not assigned

$
0
0
The following code produces an error: class Foo; Foo& CreateFoo(); void foobar() { CreateFoo(); } --- The following change compiles fine: Foo& foo = CreateFoo(); --- The documentation for compiler error C2027 states "Visual C++ does not allow a reference to an undefined type." and provides an example very similar to this one. In reality, undefined types work fine in most cases, just not this particular case. --- It seems like the problem may be that undefined types cannot be convert...

Status: Closed, Resolution: Deferred, 2 Up-Votes, 0 Down-Votes, 0 validations, 0 workarounds, 4 comments, feedback id: 757831

Move ctor in lambda

$
0
0
See the code: #include #include struct Copy { Copy(){} Copy(const Copy&) { std::cout << "Copied!\n"; } Copy(Copy&&) { std::cout << "Moved!\n"; } }; int main() { Copy copy; std::function func = [=]() {(void)copy;}; return 0; } It does print "Copied!" 2 times and GCC with CLang print "Copied!\nMoved!"

Status: Closed, Resolution: Deferred, 3 Up-Votes, 0 Down-Votes, 2 validations, 0 workarounds, 4 comments, feedback id: 777256

Correct code doesn't compile

$
0
0
// This code fails to compile in Visual Studio 2010 and Visual Studio 2012 struct S { template inline operator T () const { return T (); } }; int main () { S () || false; return 0; }

Status: Closed, Resolution: Deferred, 2 Up-Votes, 0 Down-Votes, 2 validations, 0 workarounds, 3 comments, feedback id: 771509

Wrong underlying type of C++11 unscoped enumerations

$
0
0
I am currently trying new C++11 feature, and in particular its support by Visual Studio 2012 (both regular and November 12 CTP releases). I wanted to know how unscoped enumerations with a specified storage class behave with function overloads. The result surprised me, but I thought it was the behavior specified in C++11 standard. So I asked a question to StackOverflow if anyone could tell me the reason. From the answer of GManNickG, it happens that this is a Microsoft compiler bug. Visual Studi...

Status: Closed, Resolution: Deferred, 2 Up-Votes, 0 Down-Votes, 1 validation, 0 workarounds, 3 comments, feedback id: 775916

Incorrect C++11 value-initialization for type with implicitly declared, but non-trivial, default constructor

$
0
0
I'm actually using the VS11 beta rather than VS2012 RC C++ value-initialization is not working as specified in C++11. A type with an implicitly declared, non-trivial default constructor is not being zero-initialized before the constructor is called when value initialization is requested. VS11 appears to still be following C++98 rules

Status: Closed, Resolution: Deferred, 8 Up-Votes, 0 Down-Votes, 3 validations, 0 workarounds, 5 comments, feedback id: 746973

C++ compiler bug - cannot use template parameters inside nested template declaration

$
0
0
Template parameters cannot be used in nested template-template declarations: The following code fails to compile, even though it is well formed (C++): template struct X { // the following line causes the real problem - compiler doesn't correctly recognize T // there. Let's assume the T will always be some integral type. template

warning C4717 'recursive on all control paths error' erroneous

$
0
0
Compiling the code below: #include "StdAfx.h" struct XX {}; struct YY {}; template struct IInterface { virtual T InterfaceFunction() const = 0; }; template class AClassTemplate; template class AClassTemplate : public IInterface { private: T data; public: T InterfaceFunction() const { return(data); } AClassTemplate() {} explicit AClassTemplate(T arg) {} template explicit AClas...

Status: Closed, Resolution: Won't Fix, 12 Up-Votes, 1 Down-Vote, 7 validations, 0 workarounds, 21 comments, feedback id: 522094

Comments are not copied into the bug

$
0
0
1. Run Test 2. Fail one of the Test Step. 3. Add comment to the Test Step 4. Press Create Bug Expected result: Have comment included in test step on the "Steps to Reproduce" of the created Bug Actual Result: The word "Comments" is there but by tester entered comments are not included in the created Bug

Status: Active, 3 Up-Votes, 0 Down-Votes, 0 validations, 0 workarounds, 1 comment, feedback id: 1290710

String reference not set to an instance of a String. Parameter name: s

$
0
0
After upgrading from TFS 2013 Update 4 to TFS 2015 RC we get the following error in Visual Studio 2013: "String reference not set to an instance of a String. Parameter name: s" It happens all the time when doing any of the following in Team Explorer: * Click "Home", "Refresh", then "Builds" * Click "Home", "Refresh", then "Unsynced Commits". It also sometimes happens when clicking on "Fetch" after someone else has pushed some code to the Git Repo.

Status: Active, 1 Up-Vote, 0 Down-Votes, 0 validations, 0 workarounds, 0 comments, feedback id: 1331748

.Net 4.6 RC x64 is twice as slow as x86 (release version)!

$
0
0
https://social.msdn.microsoft.com/Forums/en-US/0fc3e020-e726-44ce-9fae-0ee734c7af1b/net-46-rc-x64-is-twice-as-slow-as-x86-release-version?forum=clr ===================================================================== .Net 4.6 RC x64 is twice as slow as x86 (release version): Consider this piece of code: class SpectralNorm { public static void Main(String[] args) { int n = 5500; if (args.Length > 0) n = Int32.Parse(args[0]); var spec = new SpectralNorm(); var watc...

Status: Active, 3 Up-Votes, 0 Down-Votes, 1 validation, 0 workarounds, 1 comment, feedback id: 1294384

Unable to set User Profile picture

$
0
0
Some of our users are unable to set their User Profile picture in the TFS 2015 RC web interface. The users in question did not have profile pictures before the upgrade. After the upgrade they were able to set their picture, but it went missing (along with some other users') and now they're not able to set new pictures. Clicking on "My Profile", then "Change Picture" brings up the "Profile Image" dialog as expected. A new picture file can be chosen and displays correctly in the "Profile Ima...

Status: Active, 1 Up-Vote, 0 Down-Votes, 0 validations, 0 workarounds, 0 comments, feedback id: 1331780

Windows Kits 10's ucrt doesn't have complete Source

$
0
0
The Universal CRT doesn't pack with corecrt_internal_state_isolation.h and isa_availability.h

Status: Active, 2 Up-Votes, 0 Down-Votes, 0 validations, 0 workarounds, 3 comments, feedback id: 1319846

WebTest Extract Regular Expression Required=False does not work

$
0
0
I created a webtest and added an Extract Regular Expression for a regex that may or may not be found in the response, so I set the Required parameter to false. Even though the regex is found, the Context Parameter is not created. To recreate: Create a webtest Add "Extract Regular Expression" Set the Regular expression to . (this will match any one character) Set the Requiredto False Set the Context Parameter Name to TEST Run the webtest Although the result from the extrac...

Status: Active, 1 Up-Vote, 0 Down-Votes, 0 validations, 0 workarounds, 2 comments, feedback id: 1267015

Test run hangs on start if previous run was interrupted by Shift+F5 / Stop Debugging

$
0
0
I was able to reproduce the issue both locally and on standard Azure VS 2015 RC VM. UPD: it happens only with x86 execution engine. Switching to x64 in Test / Test Settings / Default Processor Architecture seems to be some kind on workaround (as it switches from te.processhost.managed to vstest.executionengine) 1. Create a new C# test project. 2. Set breakpoint on a first test line of UnitTest1.TestMethod1 3. Start a test under debugger 4. When breakpoint is hit, interrupt a test run by Shift+...

Status: Active, 0 Up-Votes, 0 Down-Votes, 0 validations, 0 workarounds, 1 comment, feedback id: 1331662

KB3045171 Crash GDI+ with System.Drawing.Drawing2D.AddString

$
0
0
After installing ΚΒ3045171 System.Drawing.Drawing2D.AddString crashes with some specific characters in some system TTF fonts, like Arial Black, Batang etc. See the code : private void test_Click(object sender, EventArgs e) { string str = ")"; // also strings : ~ ` ! " ( ) [ ] { } = <> have similar problems System.Drawing.FontFamily fontFamily = new System.Drawing.FontFamily("Arial Black"); // Also Arial Black, Batang, BatangC...

Status: Active, 1 Up-Vote, 0 Down-Votes, 0 validations, 0 workarounds, 0 comments, feedback id: 1331855

Asian text in new project dialog

$
0
0
Environment: Microsoft Visual Studio Enterprise 2015 RC (updated from CTP 6) Windows 8.1 x64 englisch (running in VM, all current updates installed) Region settings: Format: German (Austria) Location: Austria non-Unicode Locale: German (Austria) Keyboard layout: German Steps to reproduce: Open "new project dialog", "File->New->Project..." (or "Start Page->New Project..." no difference) Problem: All texts are englisch except for the lable on the checkbox right below the "Create directo...

Status: Active, 1 Up-Vote, 0 Down-Votes, 0 validations, 0 workarounds, 2 comments, feedback id: 1331592

[SBC][Correctness] VC2015: The optimization of ‘Maximize Speed’ in Release mode caused runtime error

$
0
0
Our current work is blocked by below issue, if it is proved to be caused by VS 2015 compiler, do you have any plan to fix it, and which version of VS2015 will include this fix and when can we get this fix? Thanks. Since the contents cannot be displayed correctly in the page, so I attached them in a word filed. Please refer to the attached files. =========Reactive the connect, We have reproduced the issue in Visual studio 2015 CTP 5 and 6. You can find the source code in the attachme...

Status: Active, 1 Up-Vote, 0 Down-Votes, 0 validations, 0 workarounds, 22 comments, feedback id: 1033346
Viewing all 38750 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>