473,888 Members | 1,564 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to attach to a process from a workspace and not lost the works

After I open a workspace I have access to all C++ files of the workspace.

I can put breakpoints. Everything look great...
So I go attach to my process and Visual C++ go close my workspace!

I don't see the goal of closing the workspace...

How can I fix this strange behavior/bug?
Nov 17 '05 #1
3 1491
After I open a workspace I have access to all C++ files of the workspace.

I can put breakpoints. Everything look great...
So I go attach to my process and Visual C++ go close my workspace!

I don't see the goal of closing the workspace...

How can I fix this strange behavior/bug?


Set the following settings in Project properties | Configuration Properties | Debugging:

Attach = "Yes"
Command = "Your executable" (optional, for .EXE projects the default is OK)

With these settings, pressing F5 will attach to the specified executable (if it is running)
instead of launching it, and keep the workspace open.

Regards,
Oleg


Nov 17 '05 #2
I can make it work in Visual Studio 2003 but not with Visual C++ 6.xx. Any
fix on this one?

"Oleg Starodumov" wrote:
After I open a workspace I have access to all C++ files of the workspace.

I can put breakpoints. Everything look great...
So I go attach to my process and Visual C++ go close my workspace!

I don't see the goal of closing the workspace...

How can I fix this strange behavior/bug?


Set the following settings in Project properties | Configuration Properties | Debugging:

Attach = "Yes"
Command = "Your executable" (optional, for .EXE projects the default is OK)

With these settings, pressing F5 will attach to the specified executable (if it is running)
instead of launching it, and keep the workspace open.

Regards,
Oleg


Nov 17 '05 #3
I can make it work in Visual Studio 2003 but not with Visual C++ 6.xx. Any
fix on this one?


After you have attached for the first time (and lost your workspace),
open the needed source files, set breakpoints, etc., and save the workspace
(File | Save Workspace). This will create an .OPT file associated with
the given executable.

Next time you want to debug the executable, open the .EXE file in
File | Open Workspace dialog. This will load the .OPT file created
in the previous step, and that workspace will not be closed when
you attach to the running executable.

Oleg

Nov 17 '05 #4

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

Similar topics

1
9052
by: deko | last post by:
I need to create and reference a Workspace (kinda new at this...) Here's how it works with the current db: Dim wrk As DAO.Workspace Set wrk = DBEngine.Workspaces(0) wrk.BeginTrans This works fine, but if I want to use another database:
0
1724
by: Ryan | last post by:
Hello, HELP! I have TWO questions: First, I am trying to execute a SQL pass-through query in Access VBA. According to MSAccess help, I should be able to use the following syntax after Creating an MSJet Workspace: wrkJet.OpenDatabase("Publishers", dbDriverCompleteRequired, True, _
1
12702
by: vijaygparikh | last post by:
HI i am writting a code for open default mail client and it works fine. i want to attach a file with the default mail client but file is not attached with "mailto:" option. If any one has idea about open default mail client with attach files using "mailto:" then pls reply me. Thanks in Advance. regards
7
5081
by: Devron Blatchford | last post by:
Hi there, I am trying to develop a small menu application to run on an RF network, we are using a wavelink server to communicate with our rf scanners and run VB.NET applications on our server that repond to the scanner requests. I would like to know if there is a way that I can spawn a process on the server and attach it to the current thread (allow it to take control of the server requests)? Once this spawned app exits it will return...
7
2765
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at below). Please help me get through this!!! I'm having some serious problems attaching a .mdf file and accessing it. I have a WroxUntied.mdf that I want to attach and then run the website that uses it. This is a .mdf file from wrox books. This file...
9
6951
by: ME | last post by:
I have a application that someone else has wrote that runs in a console window. It does not take parameters, but when running it asks three questions and then exits. I would like to write a small utility to attach to the console app, send the necessary answers (typically typing the letter "y" and enter) and then leave. Is this a possiblity for .net? If so what would be the best approach? Thanks, Matt
1
2116
by: Martin Simard | last post by:
Hi all, In VS 2003, when I attach to a remote process for debugging, I can see the list of modules loaded by the process before attaching to it. This list is not there anymore in VS 2005. Instead, I just have a warning for security reasons and 2 buttons (Attach | Don't attach). Let me explain a bit... I have several web applications running on different servers. All servers are XP 2003 Servers with IIS 6. My applications runs in...
1
2155
by: SenthilVel | last post by:
Hi I have a question when debugging dotnet code when attaching vb6.exe code to this process. i get an error like : unable to attach the process. there is no managed code running in the process. INorder to attach a process with the .NET Debugger, managed code must be running in the process before attaching.
6
3233
by: GaryDean | last post by:
I see some references on debugging by attaching to a process. There are MSDN articles that show how to attach to a process for debugging. However, I can find no info on how exactly to get the debugging to work. I have a wizard page in the anonymous section of my website. If I run it as the startup page in VS it runs fine. But if I link to it from an external link, it gets "object reference not set to an instance of an object" when I...
0
9800
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11182
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10778
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10886
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
7990
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7148
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5824
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4642
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
3
3252
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.