473,320 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Writing the output window to a file

seraieis
Does anyone know if it's possible to get the contents of the output window in Visual Studio while the program is debugging? I have my application using a trace function that writes the information to a file, but I'd like to have the library status included in this file.

And ideas?
Nov 6 '08 #1
11 1896
Plater
7,872 Expert 4TB
At any point in time I think you can choose to save it from the visual studio interface
Nov 6 '08 #2
At any point in time I think you can choose to save it from the visual studio interface
This is true, however I was hoping to see how the timing of the libraries and thread starts/exits while the application is running.
Nov 6 '08 #3
Frinavale
9,735 Expert Mod 8TB
This is true, however I was hoping to see how the timing of the libraries and thread starts/exits while the application is running.
Implement functionality that records this information for you while the application is running.
Nov 6 '08 #4
Implement functionality that records this information for you while the application is running.
I know that this is what I need to do, however after spending about 3 hours trying to find an article that could point me in the right direction, I decided it was time to ask the experts. I'm at a loss as to what library or object I would use to capture that output. This is the first time I have attempted anything of this nature.
Nov 6 '08 #5
Plater
7,872 Expert 4TB
I am not sure there is a nice way to do it.
I suspect you would need to use win32API to watch the process object for changes in thread count/state and modules loaded.
Nov 6 '08 #6
Frinavale
9,735 Expert Mod 8TB
I am not sure there is a nice way to do it.
I suspect you would need to use win32API to watch the process object for changes in thread count/state and modules loaded.
What Win32API are you talking about??
In my mind the OP could just output this anywhere... text file, database, event log, xml file....anywhere...just code a function that records a description of the event, the time that the event happened at ...etc etc. and call this function every time they want to record something.

<edit> Oh I think I see why this is a problem...does the OP have access to the Library's source code?</edit>

-Frinny
Nov 6 '08 #7
Plater
7,872 Expert 4TB
I figured the OP was reffering to the output window contents like this:
'DataInsertionManager.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServi ces\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseSer vices.Wrapper.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'DataInsertionManager.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration \2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dl l', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x115c has exited with code 0 (0x0).
The thread '<No Name>' (0xbb0) has exited with code 0 (0x0).
The thread 0xac4 has exited with code 0 (0x0).
The program '[2396] DataInsertionManager.vshost.exe: Managed' has exited with code 0 (0x0).
Nov 6 '08 #8
Frinavale
9,735 Expert Mod 8TB
I figured the OP was reffering to the output window contents like this:
This output information wont be available when the application's running out side of the debugger though....
Nov 6 '08 #9
Plater
7,872 Expert 4TB
It would be with win32 API
The ProcessExplorer application updates its display in "real time" about when modules are loaded/unloaded from threads/processes. It even has its own section specific to .NET applications managed code, so there's bound to be a way to have it log to a file.
Nov 6 '08 #10
Frinavale
9,735 Expert Mod 8TB
It would be with win32 API
The ProcessExplorer application updates its display in "real time" about when modules are loaded/unloaded from threads/processes. It even has its own section specific to .NET applications managed code, so there's bound to be a way to have it log to a file.
Cool!
I had no idea about this :)

Thanks
Nov 6 '08 #11
It would be with win32 API
The ProcessExplorer application updates its display in "real time" about when modules are loaded/unloaded from threads/processes. It even has its own section specific to .NET applications managed code, so there's bound to be a way to have it log to a file.
I have never seen this program before, but I have a feeling it's going to be my new best friend! Thank you so much for show this to us!
Nov 7 '08 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Miktor | last post by:
At the minute I am using the following rather unwieldy function to prevent the console window in Dev C++ from closing before I can see the output from my program: // function to prevent the...
6
by: hpy_awad | last post by:
I am writing stings ((*cust).name),((*cust).address)to a file using fgets but rabish is being wrote to that file ? Look to my source please and help me finding the reason why this rabish is being...
7
by: Thomas Pecha | last post by:
Sorry for all who think this is easy, I was not able to handle this Coming from VB6 where with simple debug.print strAString you could write to debug window, I am totalling failing in vb.net...
6
by: Alec MacLean | last post by:
Hi, I've created a small application for our company extranet (staff bulletins) that outputs a list of links to PDF's that are stored in a SQL table. The user clicks a link and the PDF is...
5
by: grinder | last post by:
first off, i am an extreme newbie to C. i am an undergrad research assistant and i have been shifted to a project that involves building a fairly involved c program. The part that i am stuck on now...
16
by: Claudio Grondi | last post by:
I have a 250 Gbyte file (occupies the whole hard drive space) and want to change only eight bytes in this file at a given offset of appr. 200 Gbyte (all other data in that file should remain...
4
by: FingerDemon | last post by:
I'm guessing I'm missing something obvious here, but I have searched around and re-read my Python books and references on simple file writing and I can't see the answer. I am running this in Windows...
0
by: shintu | last post by:
Hallo, I am trying to write french accented characters é è ê in Excel worksheet using my perl script , But I am stuck here as I couldnt find a way of writing it !: My code: use strict;...
0
by: Steve Holden | last post by:
Mohsen Akbari wrote: Then, later:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.