Click here to Skip to main content
14,302,993 members

Managed C++/CLI

 
GeneralRe: C++ Debug Error Pin
Member 120351389-Nov-15 22:58
memberMember 120351389-Nov-15 22:58 
GeneralRe: C++ Debug Error Pin
Member 120351389-Nov-15 23:03
memberMember 120351389-Nov-15 23:03 
GeneralRe: C++ Debug Error Pin
Richard MacCutchan9-Nov-15 23:06
protectorRichard MacCutchan9-Nov-15 23:06 
GeneralRe: C++ Debug Error Pin
Member 120351389-Nov-15 23:08
memberMember 120351389-Nov-15 23:08 
GeneralRe: C++ Debug Error Pin
Richard MacCutchan9-Nov-15 23:39
protectorRichard MacCutchan9-Nov-15 23:39 
AnswerRe: C++ Debug Error Pin
Jochen Arndt9-Nov-15 23:35
mveJochen Arndt9-Nov-15 23:35 
GeneralRe: C++ Debug Error Pin
Member 1203513810-Nov-15 11:40
memberMember 1203513810-Nov-15 11:40 
NewsBug with unique_ptr and /clr code in Visual Studio 2015 Pin
John Schroedl7-Nov-15 16:22
professionalJohn Schroedl7-Nov-15 16:22 
FYI - I have found and reported a bug with std::unique_ptr when used in code built with /clr in VS 2015.

Consider this code:

void accept_ownership( std::unique_ptr<MyClass> ptr ) { ... }

void test() {
   std::unique_ptr<MyClass> mc = std::make_unique<MyClass>( args );

   accept_ownership( std::move(mc) );
}


When accept_ownership is called in C++/CLI code, mc will be destructed and accept_ownership receives a unique_ptr pointing to freed memory. There will be a double-free at exit as well.

I've reported the bug with send-a-frown and it is NOT fixed in the Update 1 RC. Let's hope it's fixed in Update 1 RTM.

The code works as expected when not built with /clr.

John
QuestionRendering problems with DirectWrite Pin
paul116713-Oct-15 22:25
memberpaul116713-Oct-15 22:25 
AnswerRe: Rendering problems with DirectWrite Pin
Richard MacCutchan13-Oct-15 22:48
protectorRichard MacCutchan13-Oct-15 22:48 
GeneralRe: Rendering problems with DirectWrite Pin
paul116714-Oct-15 3:26
memberpaul116714-Oct-15 3:26 
GeneralRe: Rendering problems with DirectWrite Pin
Richard MacCutchan14-Oct-15 4:57
protectorRichard MacCutchan14-Oct-15 4:57 
GeneralRe: Rendering problems with DirectWrite Pin
paul116715-Oct-15 19:05
memberpaul116715-Oct-15 19:05 
SuggestionRe: Rendering problems with DirectWrite Pin
Richard MacCutchan15-Oct-15 23:01
protectorRichard MacCutchan15-Oct-15 23:01 
AnswerRe: Rendering problems with DirectWrite Pin
paul116715-Oct-15 23:44
memberpaul116715-Oct-15 23:44 
GeneralRe: Rendering problems with DirectWrite Pin
Richard MacCutchan14-Oct-15 7:15
protectorRichard MacCutchan14-Oct-15 7:15 
GeneralRe: Rendering problems with DirectWrite Pin
John Schroedl14-Oct-15 8:08
professionalJohn Schroedl14-Oct-15 8:08 
GeneralRe: Rendering problems with DirectWrite Pin
paul116714-Oct-15 19:47
memberpaul116714-Oct-15 19:47 
GeneralRe: Rendering problems with DirectWrite Pin
paul116714-Oct-15 20:05
memberpaul116714-Oct-15 20:05 
NewsRe: Rendering problems with DirectWrite Pin
paul116717-Oct-15 5:36
memberpaul116717-Oct-15 5:36 
Questionflicker issue in Onpaint Pin
Amrit Agr8-Oct-15 0:53
memberAmrit Agr8-Oct-15 0:53 
AnswerRe: flicker issue in Onpaint Pin
John Schroedl8-Oct-15 3:54
professionalJohn Schroedl8-Oct-15 3:54 
NewsDebug Visualizers coming for C++/CLI! Pin
John Schroedl2-Oct-15 2:05
professionalJohn Schroedl2-Oct-15 2:05 
QuestionI have spy ware on this computer I tracked it...... Pin
Member 1198386422-Sep-15 8:54
memberMember 1198386422-Sep-15 8:54 
AnswerRe: I have spy ware on this computer I tracked it...... Pin
Richard Andrew x6422-Sep-15 10:42
professionalRichard Andrew x6422-Sep-15 10:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.