473,573 Members | 3,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugger visualizers & VisualizerObjec tSource.Transfe rData

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
VisualizerObjec tSource.Transfe rData(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.Exceptio n: Function evaluation timed out.
at
Microsoft.Visua lStudio.Debugge rVisualizers.De bugViewerShim.P rivateCallback. MaybeDeserializ eAndThrowExcept ion(Byte[]
data)
at
Microsoft.Visua lStudio.Debugge rVisualizers.De bugViewerShim.P rivateCallback. WriteDataToStre amAndThrowOnExc eption(Byte[]
data, Stream dataStream)
at
Microsoft.Visua lStudio.Debugge rVisualizers.De bugViewerShim.P rivateCallback. Microsoft.Visua lStudio.Debugge rVisualizers.IV isualizerObject Provider.Transf erData(Stream
outgoingData)
at
Digita.Accounts Pro.DebuggerVis ualizers.Nomina lSubCodeTotalCo llectionVisuali zer.Show(IDialo gVisualizerServ ice
windowService, IVisualizerObje ctProvider objectProvider)
at
Microsoft.Visua lStudio.Debugge rVisualizers.De bugViewerShim.M anagedShim.Dele gatedHost.Creat eViewer(IntPtr
hwnd, HostServicesHel per hsh, SafeProxyWrappe r 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?
Aug 19 '08 #1
1 2070
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******** ******@TK2MSFTN GP03.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
VisualizerObjec tSource.Transfe rData(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.Exceptio n: Function evaluation timed out.
at
Microsoft.Visua lStudio.Debugge rVisualizers.De bugViewerShim.P rivateCallback. MaybeDeserializ eAndThrowExcept ion(Byte[]
data)
at
Microsoft.Visua lStudio.Debugge rVisualizers.De bugViewerShim.P rivateCallback. WriteDataToStre amAndThrowOnExc eption(Byte[]
data, Stream dataStream)
at
Microsoft.Visua lStudio.Debugge rVisualizers.De bugViewerShim.P rivateCallback. Microsoft.Visua lStudio.Debugge rVisualizers.IV isualizerObject Provider.Transf erData(Stream
outgoingData)
at
Digita.Accounts Pro.DebuggerVis ualizers.Nomina lSubCodeTotalCo llectionVisuali zer.Show(IDialo gVisualizerServ ice
windowService, IVisualizerObje ctProvider objectProvider)
at
Microsoft.Visua lStudio.Debugge rVisualizers.De bugViewerShim.M anagedShim.Dele gatedHost.Creat eViewer(IntPtr
hwnd, HostServicesHel per hsh, SafeProxyWrappe r 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?


Aug 20 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1482
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 enhanced datatips, improved interop debugging, Managed Debugging Assistants, debugger visualizers or Just My Code? Join the Visual Studio Debugger team to...
0
1251
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 about Visual Studio 2005's enhanced datatips, improved interop debugging, Managed Debugging Assistants, debugger visualizers or Just My Code? Join...
2
1906
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 enhanced datatips, improved interop debugging, Managed Debugging Assistants, debugger visualizers or Just My Code? Join the Visual Studio Debugger team to...
0
980
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 enhanced datatips, improved interop debugging, Managed Debugging Assistants, debugger visualizers or Just My Code? Join the Visual Studio Debugger team to...
0
1309
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 enhanced datatips, improved interop debugging, Managed Debugging Assistants, debugger visualizers or Just My Code? Join the Visual Studio Debugger team to...
1
2074
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 some reason I can't see my new visualizer while debugging. (see code below)
2
1704
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 understandable since Keys.Insert = 45 and 1 + 4 + 8 + 32 also equals 45. However, it would be really nice if the debugger showed both the combined value as...
1
1237
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. going from the opening brace of a method or property accessor to the first actual code statement) can sometimes take 20-30 seconds. Now the only thing...
2
3542
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 part of the problem may be the time required to generate the temporary serialization assemblies. So, he thinks, set the project flag to build...
0
7661
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7730
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6347
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5252
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2163
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1256
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
984
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.