473,324 Members | 2,246 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,324 software developers and data experts.

Error Running Debug

I'm just added a new form to my application for entering information to
a database. To do this I did:
Me.Hide()
Dim Form1 As New Form1
Form1.Show()

When I run debugger, test, and end the software (By clicking the X on
the top right corner) the program ends. Well, when I go to debug mode I
get an error stating that:

"Could not copy temporary files to the output directory."

"The file 'Project.exe' cannot be copied to the run directory. The
process cannot access the file because it is being used by another
process."

The only way I can get back to testing the software is to open Task
Manager and end the process of Project.exe. The only thing I can think
of is that when the user is finished inputting data into Form1 they
press the "Hide Me" button to hide the form. It seems that if this form
is still open and the .exe can't end.

I am somewhat new to windows application development so I really don't
know what to think. Thanks in advance.

Nov 21 '05 #1
7 1332
Hi,

I don't know why you do this, however if it is real as you show and you do
this from form1 than it is not possible that you eat your complete memory
and than everything becomes unpredictable.

Me.Hide()
Dim Form1 As New Form1
Form1.Show()


Can you show it a little bit more exact, by instance in what event you are
using this.

Cor
Nov 21 '05 #2
Yes, you program is not ending, it just happens that the forms are not
visible. Normally you have:

- Non modal forms, shown using form.Show, likely in a MDI form container.
- Modal forms, using form.ShowDialog.

Normally you don´t have "Hide me" buttons, you have "Close" or "OK" +
"Cancel" window dialogs that close the window (not just hiding it).

So, assuming that your app has a form and you want to show another form to
enter data, try with a modal form using:

Dim frm As New Fomr2()
If frm.ShowDialog(...) = DialogResult.OK
' Process data
End If
frm.Dispose()

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

<po*******@gmail.com> escribió en el mensaje
news:11**********************@g43g2000cwa.googlegr oups.com...
I'm just added a new form to my application for entering information to
a database. To do this I did:
Me.Hide()
Dim Form1 As New Form1
Form1.Show()

When I run debugger, test, and end the software (By clicking the X on
the top right corner) the program ends. Well, when I go to debug mode I
get an error stating that:

"Could not copy temporary files to the output directory."

"The file 'Project.exe' cannot be copied to the run directory. The
process cannot access the file because it is being used by another
process."

The only way I can get back to testing the software is to open Task
Manager and end the process of Project.exe. The only thing I can think
of is that when the user is finished inputting data into Form1 they
press the "Hide Me" button to hide the form. It seems that if this form
is still open and the .exe can't end.

I am somewhat new to windows application development so I really don't
know what to think. Thanks in advance.

Nov 21 '05 #3
Cor,

If you would would've read my original post you would have seen that I
am NEW to windows application development. This more than explains the
problem that I am having. It is also very hard to understand what you
are trying to say/ask me. I thought MVP's were supposed to help people
in times of need. Since when did MVP's start taking an elitist
programmer attitude with their condescending remarks?

Carlos,

Thank you very much for your feedback. I will look into this and let
you know if it helped me out.

Nov 21 '05 #4
Ok, let us know if the problem is solved or not and please consider that
neither Cor nor I do speak native English, so our language sometimes is far
from perfect. I am sure that Cor did not intend to show elitist attitudes.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Paul Bush" <po*******@gmail.com> escribió en el mensaje
news:11**********************@g43g2000cwa.googlegr oups.com...
Cor,

If you would would've read my original post you would have seen that I
am NEW to windows application development. This more than explains the
problem that I am having. It is also very hard to understand what you
are trying to say/ask me. I thought MVP's were supposed to help people
in times of need. Since when did MVP's start taking an elitist
programmer attitude with their condescending remarks?

Carlos,

Thank you very much for your feedback. I will look into this and let
you know if it helped me out.

Nov 21 '05 #5
My apologies then.

Sorry Cor.

Nov 21 '05 #6
Carlos,

Thanks for your input. After reading some documentation online I think
I have figured it out.

To show the data entry form I have used:

Dim frmLicenseInfo As New LicenseInfo
frmLicenseInfo.ShowDialog()
And to "hide" this form I have used:

Me.DialogResult = DialogResult.OK

Everything works fine and there is no Project.exe left in Task Manager
when I end the program. Thanks again for your help Carlos!

Nov 21 '05 #7
Yes, "closing" and "hiding" windows are different things. The former
destroyes the window and its resources, the latter only makes the window
invisible but it is still there. I am glad that the problem is solved.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Paul Bush" <po*******@gmail.com> escribió en el mensaje
news:11**********************@f14g2000cwb.googlegr oups.com...
Carlos,

Thanks for your input. After reading some documentation online I think
I have figured it out.

To show the data entry form I have used:

Dim frmLicenseInfo As New LicenseInfo
frmLicenseInfo.ShowDialog()
And to "hide" this form I have used:

Me.DialogResult = DialogResult.OK

Everything works fine and there is no Project.exe left in Task Manager
when I end the program. Thanks again for your help Carlos!

Nov 21 '05 #8

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

Similar topics

5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
10
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
4
by: Stephen Miller | last post by:
Hi, I am running v1.1.4322 on Win2K server and unable to debug a ASP.Net application running locally, using a full URL (ie www.mysite.com). When I hit F5, I get the following error message: ...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
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: 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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.