Click here to Skip to main content
15,892,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: "An assembly with the same simple name has already been imported" error message Pin
Eddy Vluggen18-Jun-13 9:32
professionalEddy Vluggen18-Jun-13 9:32 
AnswerRe: "An assembly with the same simple name has already been imported" error message Pin
jschell18-Jun-13 7:42
jschell18-Jun-13 7:42 
AnswerRe: "An assembly with the same simple name has already been imported" error message Pin
johannesnestler21-Jun-13 0:20
johannesnestler21-Jun-13 0:20 
GeneralRe: "An assembly with the same simple name has already been imported" error message Pin
impeham21-Jun-13 5:00
impeham21-Jun-13 5:00 
Questionhow do i implement barcode in C# Pin
Resma Rahiman17-Jun-13 0:44
Resma Rahiman17-Jun-13 0:44 
AnswerMy Vote of 1 Pin
Keith Barrow17-Jun-13 1:51
professionalKeith Barrow17-Jun-13 1:51 
QuestionError in WPF Pin
Nick_Frenk16-Jun-13 21:54
Nick_Frenk16-Jun-13 21:54 
AnswerRe: Error in WPF Pin
Keith Barrow16-Jun-13 23:02
professionalKeith Barrow16-Jun-13 23:02 
The most common way for this to happen is for an infinite recursion or loop to happen, e.g. a method calling itself (or calling itself via other method(s)) in such a way that the loop never ends. There is a stack object used by the .net framework when it executes your code (called the call execution stack), this has a finite size. Normally you enter a method (the call is pushed on the stack) and when the method exits the method is removed (popped off) from the stack. When infinite looping happens the method (or methods if a calls b calls c calls a etc) is repeatedly popped onto the stack filling it, then it overflows. As the stack is large this normally takes a few seconds though it can take even longer depending on your intervening code.

One problem with this is that the stack overflow exception doesn't necessarily happen where the actual problem is, so you might not have included the recursive code needed so we can help you in your problem.

I suggest two options:
1) Run the code until the error occurs, then open the stack trace window[^]. You'll see the calls made by your code and by reading through this you'll see the loop and hopefully where you need to break out of it.
2) Put a breakpoint on the code where you are getting the failure, then step through. At some point you'll loop round (hopefully quickly!) again you'll need to decide where you want to break out.

I'd try these two first, the first option is quicker though if you can't spot your problem then the second option will be clearer. There is a possibility that images.Dispatcher.Invoke (ert, new object [] {images, url}); is causing the loop, if ert is either directly or indirectly recursive. The other thing that might be the case (though unlikely) is that you have an non call-stack which is filling, but even this is likely to be filled by an infinite loop.

[Edit]
Me use INglish good and tipe weLL
“Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed”
“One of the greatest problems of our time is that many are schooled but few are educated”


Sir Thomas More (1478 – 1535)

GeneralRe: Error in WPF Pin
Nick_Frenk16-Jun-13 23:56
Nick_Frenk16-Jun-13 23:56 
GeneralRe: Error in WPF Pin
Keith Barrow17-Jun-13 0:17
professionalKeith Barrow17-Jun-13 0:17 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 0:28
Nick_Frenk17-Jun-13 0:28 
GeneralRe: Error in WPF Pin
Keith Barrow17-Jun-13 0:30
professionalKeith Barrow17-Jun-13 0:30 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 0:59
Nick_Frenk17-Jun-13 0:59 
GeneralRe: Error in WPF Pin
Keith Barrow17-Jun-13 1:44
professionalKeith Barrow17-Jun-13 1:44 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 2:43
Nick_Frenk17-Jun-13 2:43 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 2:26
mvePete O'Hanlon17-Jun-13 2:26 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 2:45
Nick_Frenk17-Jun-13 2:45 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 3:09
mvePete O'Hanlon17-Jun-13 3:09 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 3:18
Nick_Frenk17-Jun-13 3:18 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 3:31
mvePete O'Hanlon17-Jun-13 3:31 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 3:46
Nick_Frenk17-Jun-13 3:46 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 5:54
mvePete O'Hanlon17-Jun-13 5:54 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 21:22
Nick_Frenk17-Jun-13 21:22 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 21:27
mvePete O'Hanlon17-Jun-13 21:27 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 21:33
Nick_Frenk17-Jun-13 21:33 

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.