Click here to Skip to main content
15,925,371 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow can I programmatically scroll a TextBox? Pin
NicHeuser18-May-06 6:31
NicHeuser18-May-06 6:31 
AnswerRe: How can I programmatically scroll a TextBox? Pin
Robert Rohde18-May-06 6:54
Robert Rohde18-May-06 6:54 
GeneralRe: How can I programmatically scroll a TextBox? Pin
NicHeuser18-May-06 11:57
NicHeuser18-May-06 11:57 
GeneralRe: How can I programmatically scroll a TextBox? Pin
Robert Rohde18-May-06 21:00
Robert Rohde18-May-06 21:00 
GeneralRe: How can I programmatically scroll a TextBox? Pin
NicHeuser19-May-06 3:11
NicHeuser19-May-06 3:11 
Questionhow can i use CVS with windows repository Pin
DineshSharma17-May-06 1:37
DineshSharma17-May-06 1:37 
AnswerRe: how can i use CVS with windows repository Pin
Ed.Poore21-May-06 12:07
Ed.Poore21-May-06 12:07 
QuestionUndo Operation Encountered Exception Pin
hammerstein0516-May-06 23:22
hammerstein0516-May-06 23:22 
I have created an application using asynchronous sockets that starts a local server, allows clients to connect to it. When the server starts, it creates an inherited version of my client class to create a connection to a unix server. There is no real difference in the connection, only the way data is handled when it comes back. When the server starts, the unix client creates a connection through to the remote point, sends a message and receives a response. This works fine. When my windows based client connects to the server, it sends a message on connect as well, the server receives this and then forwards a message to the unix client to tell it to forward a wakeup to the unix system. On receipt of the message back from unix acknowledging this, the server crashes with the following message.

System.InvalidOperationException was unhandled
Message="The Undo operation encountered a context that is different from what was applied in the corresponding Set operation. The possible cause is that a context was Set on the thread and not reverted(undone)."
Source="mscorlib"
StackTrace:
at System.Threading.SynchronizationContextSwitcher.Undo()
at System.Threading.ExecutionContextSwitcher.Undo()
at System.Threading.ExecutionContext.runFinallyCode(Object userData, Boolean exceptionThrown)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteBackoutCodeHelper(Object backoutCode, Object userData, Boolean exceptionThrown)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

There is no indication of whereabouts in the program this happens, and the only other references to this problem I can find (forums.microsoft.com/msdn) have either no solution, or the solution makes no sense within my application.

In my send method, I set a waiting state, and within that loop I have an event in which I have Application.DoEvents( ) (I found it hangs otherwise and won't output anything until things have finished) removing that doesn't fix things. And any interaction I am having with the GUI at all I have wrapped in invoke (i only output log data to a richtext box). I'm at a loss as to how to proceed with this problem, and I don't know what I can change to fix it!

Any help appreciated.
AnswerRe: Undo Operation Encountered Exception Pin
hammerstein0517-May-06 22:10
hammerstein0517-May-06 22:10 
QuestionIntegtrating ASP.NET and Windows Forms Pin
C Flat16-May-06 13:57
C Flat16-May-06 13:57 
Question.NET IMROVEMENT Pin
imnaveed16-May-06 5:03
imnaveed16-May-06 5:03 
AnswerRe: .NET IMROVEMENT Pin
Josh Smith16-May-06 6:17
Josh Smith16-May-06 6:17 
QuestionBiztalk - Certificates and Parties Pin
Stefan R15-May-06 22:56
Stefan R15-May-06 22:56 
QuestionSecurity prob - my network share is Internet Zone? Pin
Per Erik Stendahl15-May-06 5:30
Per Erik Stendahl15-May-06 5:30 
QuestionHOWTO,take a printer device context in .NET framework Pin
RezaAsAdi15-May-06 0:06
RezaAsAdi15-May-06 0:06 
QuestionDll problem Pin
Nithya Jayaker14-May-06 23:40
Nithya Jayaker14-May-06 23:40 
AnswerRe: Dll problem Pin
Sebastian Schneider15-May-06 0:49
Sebastian Schneider15-May-06 0:49 
AnswerRe: Dll problem Pin
sathish s15-May-06 1:15
sathish s15-May-06 1:15 
GeneralRe: Dll problem Pin
Nithya Jayaker15-May-06 2:11
Nithya Jayaker15-May-06 2:11 
GeneralRe: Dll problem Pin
Robert Rohde15-May-06 3:35
Robert Rohde15-May-06 3:35 
GeneralRe: Dll problem Pin
sathish s15-May-06 3:55
sathish s15-May-06 3:55 
QuestionWhy can not integrate .NET Framework 2.0 With MSVS 2003 ..? Pin
lin_xen_mung14-May-06 16:37
lin_xen_mung14-May-06 16:37 
AnswerRe: Why can not integrate .NET Framework 2.0 With MSVS 2003 ..? Pin
Super Lloyd14-May-06 19:11
Super Lloyd14-May-06 19:11 
AnswerRe: Why can not integrate .NET Framework 2.0 With MSVS 2003 ..? Pin
Dave Kreskowiak15-May-06 4:43
mveDave Kreskowiak15-May-06 4:43 
QuestionAnybody analysing WikiPedia dump? Pin
Super Lloyd14-May-06 4:47
Super Lloyd14-May-06 4:47 

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.