I'm writing my first debugger visualiser, and I'm having to provide my own
serialisation as the object I'm examining is not serializable. I also want
to be able to modify the object via my visualizer, so I have overridden
VisualizerObjectSource.TransferData(object target, Stream incomingData,
Stream outgoingData). However the documentation available for this method is
somewhat poor and confusing, and I am blundering about in the dark on this
one.
I have tried deserialising the incomingData stream and modifying the target
object accordingly (and not doing anything with the outgoingData stream).
Now this seems to work, except that several seconds after closing my
visualizer I also get an error message box within Visual Studio:
System.Exception: Function evaluation timed out.
at
Microsoft.VisualStudio.DebuggerVisualizers.DebugVi ewerShim.PrivateCallback.MaybeDeserializeAndThrowE xception(Byte[]
data)
at
Microsoft.VisualStudio.DebuggerVisualizers.DebugVi ewerShim.PrivateCallback.WriteDataToStreamAndThrow OnException(Byte[]
data, Stream dataStream)
at
Microsoft.VisualStudio.DebuggerVisualizers.DebugVi ewerShim.PrivateCallback.Microsoft.VisualStudio.De buggerVisualizers.IVisualizerObjectProvider.Transf erData(Stream
outgoingData)
at
Digita.AccountsPro.DebuggerVisualizers.NominalSubC odeTotalCollectionVisualizer.Show(IDialogVisualize rService
windowService, IVisualizerObjectProvider objectProvider)
at
Microsoft.VisualStudio.DebuggerVisualizers.DebugVi ewerShim.ManagedShim.DelegatedHost.CreateViewer(In tPtr
hwnd, HostServicesHelper hsh, SafeProxyWrapper proxy)
After clicking continue everything continues to run fine.
Does anyone have any idea as to why this is happening? And does anyone know
of any decent documentation about implementing an override of this method? 1 2062
It seems that the timeouts occur because the TransferData is taking too
long. After optmising my code to modify the original object, the exceptions
disappeared.
I would still like to see some thorough documentation about the TransferData
method though.
"Clive Dixon" <clived at digita dot comwrote in message
news:OI**************@TK2MSFTNGP03.phx.gbl...
I'm writing my first debugger visualiser, and I'm having to provide my own
serialisation as the object I'm examining is not serializable. I also want
to be able to modify the object via my visualizer, so I have overridden
VisualizerObjectSource.TransferData(object target, Stream incomingData,
Stream outgoingData). However the documentation available for this method
is somewhat poor and confusing, and I am blundering about in the dark on
this one.
I have tried deserialising the incomingData stream and modifying the
target object accordingly (and not doing anything with the outgoingData
stream). Now this seems to work, except that several seconds after closing
my visualizer I also get an error message box within Visual Studio:
System.Exception: Function evaluation timed out.
at
Microsoft.VisualStudio.DebuggerVisualizers.DebugVi ewerShim.PrivateCallback.MaybeDeserializeAndThrowE xception(Byte[]
data)
at
Microsoft.VisualStudio.DebuggerVisualizers.DebugVi ewerShim.PrivateCallback.WriteDataToStreamAndThrow OnException(Byte[]
data, Stream dataStream)
at
Microsoft.VisualStudio.DebuggerVisualizers.DebugVi ewerShim.PrivateCallback.Microsoft.VisualStudio.De buggerVisualizers.IVisualizerObjectProvider.Transf erData(Stream
outgoingData)
at
Digita.AccountsPro.DebuggerVisualizers.NominalSubC odeTotalCollectionVisualizer.Show(IDialogVisualize rService
windowService, IVisualizerObjectProvider objectProvider)
at
Microsoft.VisualStudio.DebuggerVisualizers.DebugVi ewerShim.ManagedShim.DelegatedHost.CreateViewer(In tPtr
hwnd, HostServicesHelper hsh, SafeProxyWrapper proxy)
After clicking continue everything continues to run fine.
Does anyone have any idea as to why this is happening? And does anyone
know of any decent documentation about implementing an override of this
method?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Scott Nonnenberg [MSFT] |
last post by:
"The Visual Studio Debugger
Do you have some burning questions or comments about SQL, C#, VB, C++, or
script debugging support in Visual Studio? Want to know more about Visual
Studio 2005's...
|
by: Scott Nonnenberg [MSFT] |
last post by:
We'd love to see you there!
The Visual Studio Debugger
"Do you have some burning questions or comments about SQL, C#, VB, C++, or
script debugging support in Visual Studio? Want to know more...
|
by: Scott Nonnenberg [MSFT] |
last post by:
The Visual Studio Debugger
"Do you have some burning questions or comments about SQL, C#, VB, C++, or
script debugging support in Visual Studio? Want to know more about Visual
Studio 2005's...
|
by: Scott Nonnenberg [MSFT] |
last post by:
The Visual Studio Debugger
"Do you have some burning questions or comments about SQL, C#, VB, C++, or
script debugging support in Visual Studio? Want to know more about Visual
Studio 2005's...
|
by: Scott Nonnenberg [MSFT] |
last post by:
The Visual Studio Debugger
"Do you have some burning questions or comments about SQL, C#, VB, C++, or
script debugging support in Visual Studio? Want to know more about Visual
Studio 2005's...
|
by: Udi |
last post by:
Hi,
I have a simple example of a color visualizer and it works fine.
I've tried to add another (new) color visualizer
(an exact copy of the example) in a different (new) solution,
but for...
|
by: Joanna Carter [TeamB] |
last post by:
Hi folks
If I write a KeyDown handler and check the KeyCode for Keys.Insert, the
debugger shows the value as Keys.LButton | Keys.MButton | Keys Back |
Keys.Space.
This is perfectly...
|
by: Clive Dixon |
last post by:
Recently the solution my team is working on has sometimes been running like
mloasses under the debugger. Pressing F10 to go to the next statement, even
if that step apparently does nothing (e.g....
|
by: Clive Dixon |
last post by:
I'm becoming increasingly frustrated with debugger visualizers (VS 2005). It
seems virtually impossible to write one which doesn't cause a timeout when
trying to view the data.
I'm guessing that...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |