Click here to Skip to main content
15,911,141 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: How to run project in c++ in .net Pin
Imran Khan Pathan15-Jan-07 20:46
Imran Khan Pathan15-Jan-07 20:46 
GeneralRe: How to run project in c++ in .net Pin
Christian Graus16-Jan-07 8:25
protectorChristian Graus16-Jan-07 8:25 
QuestionWhich contains what?? Pls help Pin
nills_here15-Jan-07 8:02
nills_here15-Jan-07 8:02 
AnswerRe: Which contains what?? Pls help Pin
Mark Salsbery15-Jan-07 8:25
Mark Salsbery15-Jan-07 8:25 
Questionfile creation directory Pin
dellthinker14-Jan-07 19:04
dellthinker14-Jan-07 19:04 
AnswerRe: file creation directory Pin
Christian Graus15-Jan-07 0:09
protectorChristian Graus15-Jan-07 0:09 
QuestionHelp. C++ newbie has problems :p Pin
gumi_r@msn.com13-Jan-07 14:57
gumi_r@msn.com13-Jan-07 14:57 
AnswerRe: Help. C++ newbie has problems :p Pin
Christian Graus13-Jan-07 15:41
protectorChristian Graus13-Jan-07 15:41 
gumi_r@msn.com wrote:
well allthough I'm new to C++ I've done my share of development in more user friendly environments, mainly C#.


This is the C++/CLI forum. IF you want to learn C++, you need the visual C++ forum. C++/CLI is .NET C++.

<br />
FMatrix *a=new FMatrix(5);	<br />
cout << "A is a [" << a->GetRowCount() << "x" << a->GetColumnCount() << "] matrix." << endl;	<br />
delete a;<br />


Why create it as a pointer at all ?

Your destructor is obviously causing the error. Set a breakpoint and step through to see what it is. I can't see the initMatrix method, but for a starter, any constructor should set all pointers to NULL. A pointer that was not set by initMatrix and was not set to NULL is a very likely cause of this error.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

GeneralRe: Help. C++ newbie has problems :p Pin
gumi_r@msn.com13-Jan-07 16:44
gumi_r@msn.com13-Jan-07 16:44 
GeneralRe: Help. C++ newbie has problems :p Pin
Christian Graus13-Jan-07 17:37
protectorChristian Graus13-Jan-07 17:37 
GeneralRe: Help. C++ newbie has problems :p Pin
gumi_r@msn.com13-Jan-07 17:43
gumi_r@msn.com13-Jan-07 17:43 
GeneralRe: Help. C++ newbie has problems :p Pin
Christian Graus13-Jan-07 17:52
protectorChristian Graus13-Jan-07 17:52 
GeneralRe: Help. C++ newbie has problems :p Pin
gumi_r@msn.com13-Jan-07 17:59
gumi_r@msn.com13-Jan-07 17:59 
GeneralRe: Help. C++ newbie has problems :p Pin
Christian Graus13-Jan-07 18:11
protectorChristian Graus13-Jan-07 18:11 
GeneralRe: Help. C++ newbie has problems :p Pin
gumi_r@msn.com14-Jan-07 2:12
gumi_r@msn.com14-Jan-07 2:12 
GeneralRe: Help. C++ newbie has problems :p Pin
gumi_r@msn.com14-Jan-07 2:47
gumi_r@msn.com14-Jan-07 2:47 
GeneralRe: Help. C++ newbie has problems :p Pin
Christian Graus15-Jan-07 0:08
protectorChristian Graus15-Jan-07 0:08 
QuestionSql String Connection Error Pin
Ahmed EL Gendy13-Jan-07 11:56
Ahmed EL Gendy13-Jan-07 11:56 
AnswerRe: Sql String Connection Error Pin
Mark Salsbery13-Jan-07 12:35
Mark Salsbery13-Jan-07 12:35 
QuestionProblem with Datasets in C++/CLI ? Pin
Vinod Sankaranarayanan13-Jan-07 1:26
Vinod Sankaranarayanan13-Jan-07 1:26 
AnswerRe: Problem with Datasets in C++/CLI ? Pin
George L. Jackson13-Jan-07 3:57
George L. Jackson13-Jan-07 3:57 
GeneralRe: Problem with Datasets in C++/CLI ? Pin
Vinod Sankaranarayanan15-Jan-07 19:07
Vinod Sankaranarayanan15-Jan-07 19:07 
GeneralRe: Problem with Datasets in C++/CLI ? Pin
George L. Jackson17-Jan-07 15:45
George L. Jackson17-Jan-07 15:45 
QuestionManaged stream to unmanaged VARIANT Pin
picazo12-Jan-07 6:40
picazo12-Jan-07 6:40 
AnswerRe: Managed stream to unmanaged VARIANT Pin
led mike12-Jan-07 7:15
led mike12-Jan-07 7:15 

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.