468,514 Members | 1,029 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,514 developers. It's quick & easy.

HELP!!

I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

The program compiles fine with no errors or warning on the machine it
was written on.
Dec 4 '06 #1
6 1362
On Tue, 05 Dec 2006 00:23:46 +0100, <He****@aol.comwrote:
I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost
This is like diagnosing a disease of someone just claiming to be sick
without telling anything else. You need to provide far more information
for us to even guess what might be wrong.
On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck
When you say you are unable to install your program, are you unable to
install it, or does it install just fine, but does not run.
The program compiles fine with no errors or warning on the machine it
was written on.
Well, if it didn't compile, you would probably not install it elsewhere.
A compiled program may crash just fine without giving any compiler
warnings.
--
Happy Coding!
Morten Wennevik [C# MVP]
Dec 5 '06 #2

<He****@aol.comwrote in message
news:2t********************************@4ax.com...
>I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

The program compiles fine with no errors or warning on the machine it
was written on.
What is your program actually attempting to do?
Does it crash as soon as you run it, or at some point later?
You could try putting some MessageBoxes in to try and see where it is
crashing, better still, add some code to write to a textfile/log so you can
see what is going on...
Dec 5 '06 #3
You are correct about the diagnosis without symptoms. Unfortunately
the only symptom I have is what I told you. You can thank MS for that

So I have an app that works fine somethime and other times after small
alterations in code produce that cryptic message on a few machines
(not just one) in the office. The "crash" is sporatice and not
corrected with rebooting.

The app is similar to a chat program over the internal network. I have
check firewalls and antivirus. Not sure how to isolate the problem

Date: Tue, 05 Dec 2006 07:18:38 +0100
Subject: Re: HELP!!
From: "Morten Wennevik" <Mo************@hotmail.com>
Content-Type: text/plain; format=flowed; delsp=yes;
charset=iso-8859-15
MIME-Version: 1.0
References: <2t********************************@4ax.com>
Content-Transfer-Encoding: 7bit
Message-ID: <op***************@tr024.bouvet.no>
User-Agent: Opera Mail/9.01 (Win32)
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: alcanet-gw.online.no 193.212.3.130
Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
Lines: 1

On Tue, 05 Dec 2006 00:23:46 +0100, <He****@aol.comwrote:
I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost
This is like diagnosing a disease of someone just claiming to be sick
without telling anything else. You need to provide far more
information
for us to even guess what might be wrong.
On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck
When you say you are unable to install your program, are you unable to
install it, or does it install just fine, but does not run.
The program compiles fine with no errors or warning on the machine it
was written on.
Well, if it didn't compile, you would probably not install it
elsewhere.
A compiled program may crash just fine without giving any compiler
warnings.
--
Happy Coding!
Morten Wennevik [C# MVP]
On Tue, 5 Dec 2006 11:42:07 -0000, "ChrisM"
<ch**************@suedeyahoo.comwrote:
>
<He****@aol.comwrote in message
news:2t********************************@4ax.com.. .
>>I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

The program compiles fine with no errors or warning on the machine it
was written on.

What is your program actually attempting to do?
Does it crash as soon as you run it, or at some point later?
You could try putting some MessageBoxes in to try and see where it is
crashing, better still, add some code to write to a textfile/log so you can
see what is going on...
Dec 6 '06 #4
Well, all I can do is repeat my suggestion that you create a 'debugging'
version of the program that displays a MessageBox, or writes to a log before
each main thing that it does, and see if you can work out what happens just
before it falls over.

If you're feeling really smart, you can attach the debugger to a remote
process and acutally step through the running code to see what is going on.

I assume that it never crashes when running it in debug mode on your
development machine...?

Chris.

<He****@aol.comwrote in message
news:iv********************************@4ax.com...
You are correct about the diagnosis without symptoms. Unfortunately
the only symptom I have is what I told you. You can thank MS for that

So I have an app that works fine somethime and other times after small
alterations in code produce that cryptic message on a few machines
(not just one) in the office. The "crash" is sporatice and not
corrected with rebooting.

The app is similar to a chat program over the internal network. I have
check firewalls and antivirus. Not sure how to isolate the problem

Date: Tue, 05 Dec 2006 07:18:38 +0100
Subject: Re: HELP!!
From: "Morten Wennevik" <Mo************@hotmail.com>
Content-Type: text/plain; format=flowed; delsp=yes;
charset=iso-8859-15
MIME-Version: 1.0
References: <2t********************************@4ax.com>
Content-Transfer-Encoding: 7bit
Message-ID: <op***************@tr024.bouvet.no>
User-Agent: Opera Mail/9.01 (Win32)
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: alcanet-gw.online.no 193.212.3.130
Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
Lines: 1
Xref: TK2MSFTNGP01.phx.gbl microsoft.public.dotnet.general:219629

On Tue, 05 Dec 2006 00:23:46 +0100, <He****@aol.comwrote:
>I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

This is like diagnosing a disease of someone just claiming to be sick
without telling anything else. You need to provide far more
information
for us to even guess what might be wrong.
>On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

When you say you are unable to install your program, are you unable to
install it, or does it install just fine, but does not run.
>The program compiles fine with no errors or warning on the machine it
was written on.

Well, if it didn't compile, you would probably not install it
elsewhere.
A compiled program may crash just fine without giving any compiler
warnings.
--
Happy Coding!
Morten Wennevik [C# MVP]
On Tue, 5 Dec 2006 11:42:07 -0000, "ChrisM"
<ch**************@suedeyahoo.comwrote:
>>
<He****@aol.comwrote in message
news:2t********************************@4ax.com. ..
>>>I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

The program compiles fine with no errors or warning on the machine it
was written on.

What is your program actually attempting to do?
Does it crash as soon as you run it, or at some point later?
You could try putting some MessageBoxes in to try and see where it is
crashing, better still, add some code to write to a textfile/log so you
can
see what is going on...

Dec 6 '06 #5
You are correct it never crashs on the devlopment machine. I am not
smart enough to know how to attach a debugger to a remote process.
and am not sure what it means ( I have only been coding in Vb.net for
a short time) Could you provide me with some info??

On Wed, 6 Dec 2006 10:49:05 -0000, "ChrisM"
<ch**************@suedeyahoo.comwrote:
>Well, all I can do is repeat my suggestion that you create a 'debugging'
version of the program that displays a MessageBox, or writes to a log before
each main thing that it does, and see if you can work out what happens just
before it falls over.

If you're feeling really smart, you can attach the debugger to a remote
process and acutally step through the running code to see what is going on.

I assume that it never crashes when running it in debug mode on your
development machine...?

Chris.

<He****@aol.comwrote in message
news:iv********************************@4ax.com.. .
>You are correct about the diagnosis without symptoms. Unfortunately
the only symptom I have is what I told you. You can thank MS for that

So I have an app that works fine somethime and other times after small
alterations in code produce that cryptic message on a few machines
(not just one) in the office. The "crash" is sporatice and not
corrected with rebooting.

The app is similar to a chat program over the internal network. I have
check firewalls and antivirus. Not sure how to isolate the problem

Date: Tue, 05 Dec 2006 07:18:38 +0100
Subject: Re: HELP!!
From: "Morten Wennevik" <Mo************@hotmail.com>
Content-Type: text/plain; format=flowed; delsp=yes;
charset=iso-8859-15
MIME-Version: 1.0
References: <2t********************************@4ax.com>
Content-Transfer-Encoding: 7bit
Message-ID: <op***************@tr024.bouvet.no>
User-Agent: Opera Mail/9.01 (Win32)
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: alcanet-gw.online.no 193.212.3.130
Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
Lines: 1
Xref: TK2MSFTNGP01.phx.gbl microsoft.public.dotnet.general:219629

On Tue, 05 Dec 2006 00:23:46 +0100, <He****@aol.comwrote:
>>I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

This is like diagnosing a disease of someone just claiming to be sick
without telling anything else. You need to provide far more
information
for us to even guess what might be wrong.
>>On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

When you say you are unable to install your program, are you unable to
install it, or does it install just fine, but does not run.
>>The program compiles fine with no errors or warning on the machine it
was written on.

Well, if it didn't compile, you would probably not install it
elsewhere.
A compiled program may crash just fine without giving any compiler
warnings.
--
Happy Coding!
Morten Wennevik [C# MVP]
On Tue, 5 Dec 2006 11:42:07 -0000, "ChrisM"
<ch**************@suedeyahoo.comwrote:
>>>
<He****@aol.comwrote in message
news:2t********************************@4ax.com ...
I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

The program compiles fine with no errors or warning on the machine it
was written on.

What is your program actually attempting to do?
Does it crash as soon as you run it, or at some point later?
You could try putting some MessageBoxes in to try and see where it is
crashing, better still, add some code to write to a textfile/log so you
can
see what is going on...
Dec 6 '06 #6
Don't worry about debugging remote processes for now. If you want to find
out how to do that, you're best off reading the online help, or 'asking'
Google.

What I'd do in your position is go through the program, and identify the
main things that happen (eg opening a file, creating a connection to a
database, creating a large object etc etc) and putting a MessageBox in that
says what is happening. Then you can run the program, you will have to keep
clicking on Messageboxes to keep it running, but when the program crashes,
you should be able to have some idea where it went wrong by the last
messagebox that you saw. I'd put just a few Messagesboxes in at first then
once you have identified the rough area causing the problem, you can add
more in that area to pin it down more specifically.

An improvement to the above could be to open a Textfile at the start of the
program, then rather than putting MessageBoxes in your code, you could just
write lines to this TextFile then when the program crashes, looking back
through the file should again help you to pin down where it is going
wrong...

Chris.

<He****@aol.comwrote in message
news:2t********************************@4ax.com...
You are correct it never crashs on the devlopment machine. I am not
smart enough to know how to attach a debugger to a remote process.
and am not sure what it means ( I have only been coding in Vb.net for
a short time) Could you provide me with some info??

On Wed, 6 Dec 2006 10:49:05 -0000, "ChrisM"
<ch**************@suedeyahoo.comwrote:
>>Well, all I can do is repeat my suggestion that you create a 'debugging'
version of the program that displays a MessageBox, or writes to a log
before
each main thing that it does, and see if you can work out what happens
just
before it falls over.

If you're feeling really smart, you can attach the debugger to a remote
process and acutally step through the running code to see what is going
on.

I assume that it never crashes when running it in debug mode on your
development machine...?

Chris.

<He****@aol.comwrote in message
news:iv********************************@4ax.com. ..
>>You are correct about the diagnosis without symptoms. Unfortunately
the only symptom I have is what I told you. You can thank MS for that

So I have an app that works fine somethime and other times after small
alterations in code produce that cryptic message on a few machines
(not just one) in the office. The "crash" is sporatice and not
corrected with rebooting.

The app is similar to a chat program over the internal network. I have
check firewalls and antivirus. Not sure how to isolate the problem

Date: Tue, 05 Dec 2006 07:18:38 +0100
Subject: Re: HELP!!
From: "Morten Wennevik" <Mo************@hotmail.com>
Content-Type: text/plain; format=flowed; delsp=yes;
charset=iso-8859-15
MIME-Version: 1.0
References: <2t********************************@4ax.com>
Content-Transfer-Encoding: 7bit
Message-ID: <op***************@tr024.bouvet.no>
User-Agent: Opera Mail/9.01 (Win32)
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: alcanet-gw.online.no 193.212.3.130
Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
Lines: 1
Xref: TK2MSFTNGP01.phx.gbl microsoft.public.dotnet.general:219629

On Tue, 05 Dec 2006 00:23:46 +0100, <He****@aol.comwrote:

I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost
This is like diagnosing a disease of someone just claiming to be sick
without telling anything else. You need to provide far more
information
for us to even guess what might be wrong.

On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck
When you say you are unable to install your program, are you unable to
install it, or does it install just fine, but does not run.

The program compiles fine with no errors or warning on the machine it
was written on.

Well, if it didn't compile, you would probably not install it
elsewhere.
A compiled program may crash just fine without giving any compiler
warnings.
--
Happy Coding!
Morten Wennevik [C# MVP]
On Tue, 5 Dec 2006 11:42:07 -0000, "ChrisM"
<ch**************@suedeyahoo.comwrote:
<He****@aol.comwrote in message
news:2t********************************@4ax.co m...
>I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says
>
My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.
>
If you were in the middle of something, the information you were
working on might be lost
>
On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck
>
The program compiles fine with no errors or warning on the machine it
was written on.

What is your program actually attempting to do?
Does it crash as soon as you run it, or at some point later?
You could try putting some MessageBoxes in to try and see where it is
crashing, better still, add some code to write to a textfile/log so you
can
see what is going on...


Dec 6 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Tom | last post: by
6 posts views Thread by wukexin | last post: by
3 posts views Thread by Colin J. Williams | last post: by
7 posts views Thread by Corepaul | last post: by
5 posts views Thread by Steve | last post: by
8 posts views Thread by Mark | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.