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

Managed C++/CLI

 
GeneralRe: Class intantiation renders app unresponsive Pin
Mark Salsbery14-Dec-07 11:41
Mark Salsbery14-Dec-07 11:41 
GeneralRe: Class intantiation renders app unresponsive Pin
Luc Pattyn14-Dec-07 12:05
sitebuilderLuc Pattyn14-Dec-07 12:05 
GeneralRe: Class intantiation renders app unresponsive Pin
Mark Salsbery14-Dec-07 12:10
Mark Salsbery14-Dec-07 12:10 
GeneralRe: Class intantiation renders app unresponsive Pin
Luc Pattyn14-Dec-07 12:26
sitebuilderLuc Pattyn14-Dec-07 12:26 
GeneralRe: Class intantiation renders app unresponsive Pin
Mark Salsbery14-Dec-07 11:45
Mark Salsbery14-Dec-07 11:45 
GeneralRe: Class intantiation renders app unresponsive Pin
Dewm Solo14-Dec-07 17:54
Dewm Solo14-Dec-07 17:54 
GeneralRe: Class intantiation renders app unresponsive Pin
Jeffrey Walton16-Dec-07 2:28
Jeffrey Walton16-Dec-07 2:28 
GeneralRe: Class intantiation renders app unresponsive Pin
Dewm Solo17-Dec-07 7:41
Dewm Solo17-Dec-07 7:41 
Hello Jeff,

1) Looking at the IL from ildasm does look alright.

2) I changed to assignment as suggested. The ctor now only initiliaze the path string to an empty string. I added a SetFile method that takes a string from the caller and sets our path string.

3) Haven't tried the WinDbg suggestion yet. I'll look at it right after this. I wanted to put an update on here before continuing my search.


BTW! The addition of the SetFile method to assign the path string gave the behavior that I was expecting. When the user clicks the 1st button the dialog now comes up and saves the path into a member of the form class. When click the 2nd button to initialize the class the application hangs. I am just instantiating the object, not even passing the path. Nothing in the constructor, which don't even take a parameter anymore. D'Oh! | :doh: Hmmm typing this is making me realize just how weird this is. Why can't I create an instance of this object with an empty constructor???? WTF | :WTF:

It's the same as if I was to type:
<br />
String^ m_Path = gcnew String();<br />

and the application would become unresponsive. That couldn't happen any more than snow in Africa.


I think I'll try a little experiment. I'll add another class to the DLL of my CFileTemplate class. And see if I can instantiate that one. Just an empty object....


If anyones wants the new code or anything let me know. At this point I'm ready to post anything. I really have to get this out the door. Frown | :( Always happens this way, doesn't it? lol
Dewm Solo - Managed C++ Developer

GeneralConfusion Pin
Dewm Solo17-Dec-07 8:25
Dewm Solo17-Dec-07 8:25 
GeneralRe: Confusion Pin
Dewm Solo17-Dec-07 9:21
Dewm Solo17-Dec-07 9:21 
GeneralRe: Confusion Pin
Dewm Solo18-Dec-07 5:26
Dewm Solo18-Dec-07 5:26 
QuestionI'm lost [modified] Pin
Dewm Solo18-Dec-07 5:41
Dewm Solo18-Dec-07 5:41 
GeneralOnPaint paints over objects Pin
BuckBrown14-Dec-07 9:27
BuckBrown14-Dec-07 9:27 
GeneralRe: OnPaint paints over objects Pin
Christian Graus14-Dec-07 11:21
protectorChristian Graus14-Dec-07 11:21 
QuestionHow do you set fill to none or clear? Pin
BuckBrown14-Dec-07 7:59
BuckBrown14-Dec-07 7:59 
AnswerRe: How do you set fill to none or clear? Pin
BuckBrown14-Dec-07 9:20
BuckBrown14-Dec-07 9:20 
AnswerRe: How do you set fill to none or clear? Pin
Mark Salsbery14-Dec-07 10:14
Mark Salsbery14-Dec-07 10:14 
GeneralResizing Forms Pin
mikobi14-Dec-07 4:33
mikobi14-Dec-07 4:33 
QuestionHow to get a function pointer ? Pin
Ky Nam13-Dec-07 6:02
Ky Nam13-Dec-07 6:02 
AnswerRe: How to get a function pointer ? Pin
dkaatz13-Dec-07 7:35
dkaatz13-Dec-07 7:35 
GeneralRe: How to get a function pointer ? Pin
Ky Nam13-Dec-07 14:46
Ky Nam13-Dec-07 14:46 
GeneralRe: How to get a function pointer ? Pin
Luc Pattyn13-Dec-07 15:05
sitebuilderLuc Pattyn13-Dec-07 15:05 
AnswerRe: How to get a function pointer ? Pin
Ky Nam13-Dec-07 17:42
Ky Nam13-Dec-07 17:42 
AnswerRe: How to get a function pointer ? Pin
George L. Jackson14-Dec-07 3:59
George L. Jackson14-Dec-07 3:59 
GeneralNET controls Pin
mikobi13-Dec-07 3:55
mikobi13-Dec-07 3:55 

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.