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

Managed C++/CLI

 
AnswerRe: Problem with SqlDataReader::GetBytes Pin
prasad_som29-Jan-07 7:15
prasad_som29-Jan-07 7:15 
QuestionFirst-Chance exception Pin
uusheikh28-Jan-07 21:53
uusheikh28-Jan-07 21:53 
QuestionException handling Pin
shivapriyak28-Jan-07 18:31
shivapriyak28-Jan-07 18:31 
AnswerRe: Exception handling Pin
Christian Graus28-Jan-07 21:54
protectorChristian Graus28-Jan-07 21:54 
QuestionMy app get's hung up and is not responding. Pin
zoleero28-Jan-07 14:16
zoleero28-Jan-07 14:16 
AnswerRe: My app get's hung up and is not responding. Pin
Christian Graus28-Jan-07 15:02
protectorChristian Graus28-Jan-07 15:02 
GeneralRe: My app get's hung up and is not responding. Pin
zoleero29-Jan-07 2:38
zoleero29-Jan-07 2:38 
GeneralRe: My app get's hung up and is not responding. Pin
Christian Graus29-Jan-07 8:48
protectorChristian Graus29-Jan-07 8:48 
AAsterlund wrote:
So instead of moralizing about what is the right place or not for me to start developing my little interest in programming, it would be a lot more helpful and less timeconsuming for both me and you if you just could give me answers to my questions!

I'm sorry, I'm just trying to help.  C++/CLI is a lot harder than C#, and not widely supported.  If you follow this path, you'll find it hard to get much help, which is why I commented.

AAsterlund wrote:
Maybe it is foolish of me not to use it, but if I got more time left over I would try to learn it.

Using the debugger is a basic skill, you're not going to get far without it.  Just press F9 or right click to set a breakpoint.  Then press F5 and the code will stop at the breakpoint, you can then single step through code, and type in variable names and expressions in the Watch window to see what your program is doing.  Until you learn that, you're just stabbing in the dark

AAsterlund wrote:
I put a messagebox before and after this particular code snippet and only the one before showed up before the application got hung up.

OK, then it's getting stuck in the loop.  If you press the break all under the debug menu, you'll see which line it's on, and be able to see the values of your various variables.  You can also put console.writeline statements inside the loop and they will appear in the output window.

AAsterlund wrote:
don't you think??

I had no doubt, I was advocating you step into the code to work out *why*

AAsterlund wrote:
I think I must run the code in another thread

It shouldn't take very long, this code.  You don't need another thread every time you write a nested loop

AAsterlund wrote:
Should I run the dialog with the progressbar in the same thread as the one I am generating calculations in??


No, all UI must be in the same thread, that's the point.  The UI remains responsive while the background thread does the work.

AAsterlund wrote:
I am little confused about how to think here...

I'm sure if you step into the code with the debugger, you can solve this in less time than it took you to reply to my post.



Christian Graus - C++ MVP

'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

GeneralRe: My app get's hung up and is not responding. [modified] Pin
zoleero6-Feb-07 5:51
zoleero6-Feb-07 5:51 
AnswerRe: My app get's hung up and is not responding. Pin
Michael Dunn28-Jan-07 19:16
sitebuilderMichael Dunn28-Jan-07 19:16 
GeneralRe: My app get's hung up and is not responding. Pin
Christian Graus28-Jan-07 21:52
protectorChristian Graus28-Jan-07 21:52 
Questionpartial class Pin
Bartosz Bien28-Jan-07 6:30
Bartosz Bien28-Jan-07 6:30 
AnswerRe: partial class Pin
George L. Jackson28-Jan-07 7:36
George L. Jackson28-Jan-07 7:36 
GeneralRe: partial class Pin
Bartosz Bien31-Jan-07 4:38
Bartosz Bien31-Jan-07 4:38 
GeneralRe: partial class Pin
George L. Jackson1-Feb-07 5:18
George L. Jackson1-Feb-07 5:18 
GeneralRe: partial class Pin
Bartosz Bien13-Feb-07 10:47
Bartosz Bien13-Feb-07 10:47 
GeneralRe: partial class Pin
George L. Jackson13-Feb-07 12:07
George L. Jackson13-Feb-07 12:07 
AnswerRe: partial class Pin
Christian Graus28-Jan-07 9:46
protectorChristian Graus28-Jan-07 9:46 
GeneralRe: partial class Pin
George L. Jackson28-Jan-07 14:06
George L. Jackson28-Jan-07 14:06 
GeneralRe: partial class Pin
Christian Graus28-Jan-07 15:05
protectorChristian Graus28-Jan-07 15:05 
GeneralRe: partial class Pin
George L. Jackson28-Jan-07 21:54
George L. Jackson28-Jan-07 21:54 
GeneralRe: partial class Pin
Bartosz Bien31-Jan-07 4:47
Bartosz Bien31-Jan-07 4:47 
Questionc++ Pin
jeevirajan28-Jan-07 5:57
jeevirajan28-Jan-07 5:57 
AnswerRe: c++ Pin
George L. Jackson28-Jan-07 7:40
George L. Jackson28-Jan-07 7:40 
QuestionC++ MYSQL Checking Pin
iLLeLogicaL28-Jan-07 1:40
iLLeLogicaL28-Jan-07 1:40 

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.