473,806 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application just run on development-system

Hi,

I just wrote a small simple C# application with a small gui. I was testing
the application continous on my development system. Now i tried to let it
run on another system but it doesn't.
On my system, i start the appl.exe file and the gui appears. there are 4
threads running as the taskmanager shows me. then i click on the start
button and the application starts reading data from a mysql database. the
thread count is going up to 5 and when the connection to the mysql server
happens it goes up to 12. and everything is working normally :-)

On the system on that the application should run i start the appl.exe file.
the gui appaers also with a thread count of 4 in the taskmanager. the the
click on the same button. the thread count goes up to 5 for a short time and
returns to 4. nothing happens anymore. the gui is not frozen, so i can move
it around and so on. some text messages telling me, that the application is
stopping somewhere when it should create a normal object (like Client c =
new Client() ).... What's wrong? Where do i have to search for the problem?
What is the problem?

Thanks for any idea and help

Greetz,
Pascal
Nov 17 '05 #1
3 1240
One option (and often my favorite) is to use remote debugging to connect to
the process on the other machine and be able to step through code on your
development machine to see where things are going.

A far quicker option is to simply throw in some message boxes here and
there, reporting the current location and state of the applications
execution, giving you a high level overview of where the application might be
hanging up. As you learn which paths it is taking and where it is probably
breaking down, you can remove some of the older message boxes and throw in
some new ones.

I would however suggest remote debugging if that is an option for you.

See
http://msdn.microsoft.com/library/de...bugMonitor.asp for some info on how to set it up.

Brendan
"Pascal Frey" wrote:
Hi,

I just wrote a small simple C# application with a small gui. I was testing
the application continous on my development system. Now i tried to let it
run on another system but it doesn't.
On my system, i start the appl.exe file and the gui appears. there are 4
threads running as the taskmanager shows me. then i click on the start
button and the application starts reading data from a mysql database. the
thread count is going up to 5 and when the connection to the mysql server
happens it goes up to 12. and everything is working normally :-)

On the system on that the application should run i start the appl.exe file.
the gui appaers also with a thread count of 4 in the taskmanager. the the
click on the same button. the thread count goes up to 5 for a short time and
returns to 4. nothing happens anymore. the gui is not frozen, so i can move
it around and so on. some text messages telling me, that the application is
stopping somewhere when it should create a normal object (like Client c =
new Client() ).... What's wrong? Where do i have to search for the problem?
What is the problem?

Thanks for any idea and help

Greetz,
Pascal

Nov 17 '05 #2
The problem is solved :-)

at the point where i was creating an instance of the client Client c = new
Client() the thread got an exception, because inside the Client class i was
triying to define some mySQL specific variables like "MySqlConnectio n". And
on the target machine the library (.dll) was missing.

public class Client {
privavte MySqlConnection con = null;
...
public Client() {}
...

There will be thrown an Exception on the "new()"

Thanx for helping
"Brendan Grant" <Br**********@d iscussions.micr osoft.com> wrote in message
news:E0******** *************** ***********@mic rosoft.com...
One option (and often my favorite) is to use remote debugging to connect
to
the process on the other machine and be able to step through code on your
development machine to see where things are going.

A far quicker option is to simply throw in some message boxes here and
there, reporting the current location and state of the applications
execution, giving you a high level overview of where the application might
be
hanging up. As you learn which paths it is taking and where it is probably
breaking down, you can remove some of the older message boxes and throw in
some new ones.

I would however suggest remote debugging if that is an option for you.

See
http://msdn.microsoft.com/library/de...bugMonitor.asp
for some info on how to set it up.

Brendan
"Pascal Frey" wrote:
Hi,

I just wrote a small simple C# application with a small gui. I was
testing
the application continous on my development system. Now i tried to let it
run on another system but it doesn't.
On my system, i start the appl.exe file and the gui appears. there are 4
threads running as the taskmanager shows me. then i click on the start
button and the application starts reading data from a mysql database. the
thread count is going up to 5 and when the connection to the mysql server
happens it goes up to 12. and everything is working normally :-)

On the system on that the application should run i start the appl.exe
file.
the gui appaers also with a thread count of 4 in the taskmanager. the the
click on the same button. the thread count goes up to 5 for a short time
and
returns to 4. nothing happens anymore. the gui is not frozen, so i can
move
it around and so on. some text messages telling me, that the application
is
stopping somewhere when it should create a normal object (like Client c =
new Client() ).... What's wrong? Where do i have to search for the
problem?
What is the problem?

Thanks for any idea and help

Greetz,
Pascal

Nov 17 '05 #3
hi,

obviously it/s a problem with the 5th thread :)

Probably you are getting an exception but as it happens in a worker thread
your app does not finish cause of it.

first of all, use a try/catch in that thread, then either create a log with
this piece of code:
catch( Exception ex)
{
using ( EventLog e= new EventLog("Appli cation",".","CT PWeb") )
{
e.WriteEntry("E rror : " + ex.Message + " ST : " + ex.StackTrace,
EventLogEntryTy pe.Error);
}
}

or maybe display it in the gui ( remember to use Control.Invoke )

probably you have issues connecting to the SQL server
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Pascal Frey" <sk*****@earthl ing.net> wrote in message
news:42******** **************@ news.sunrise.ch ...
Hi,

I just wrote a small simple C# application with a small gui. I was testing
the application continous on my development system. Now i tried to let it
run on another system but it doesn't.
On my system, i start the appl.exe file and the gui appears. there are 4
threads running as the taskmanager shows me. then i click on the start
button and the application starts reading data from a mysql database. the
thread count is going up to 5 and when the connection to the mysql server
happens it goes up to 12. and everything is working normally :-)

On the system on that the application should run i start the appl.exe
file. the gui appaers also with a thread count of 4 in the taskmanager.
the the click on the same button. the thread count goes up to 5 for a
short time and returns to 4. nothing happens anymore. the gui is not
frozen, so i can move it around and so on. some text messages telling me,
that the application is stopping somewhere when it should create a normal
object (like Client c = new Client() ).... What's wrong? Where do i have
to search for the problem? What is the problem?

Thanks for any idea and help

Greetz,
Pascal

Nov 17 '05 #4

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

Similar topics

2
2215
by: Debbie | last post by:
Hi I have developed an application that access an SQL database and installed it on a different machine The installation is successful but when I try to run the application I get the following error Application has generated an exception that could not be handled Process id = 0x610 (1552), Thread id=0x1d0(464)
5
3672
by: Leszek | last post by:
Hello, Could anybody explain what's a difference between a virtual directory and an application root under IIS? I'm a little bit confused. This is mu problem: Let's assume the following directory structure: FileManager (application name a.k.a. virtual directory?)
17
1980
by: Arthur van Dorp | last post by:
Hi all This is a bit off topic but I don't know where else to ask (please tell me if you know). I'm going to build a web application. The choice of the underlying database wasn't difficult. After a few preliminary tests I'm confident that PostgreSQL is absolutely up to the task. But I'm at a loss regarding the "middleware". I know Apache quite well, so I wouldn't mind continuing using it. But what language/application server/whatever do...
15
1842
by: limeydrink | last post by:
Hi all, I want to create a mobile field worker data solution. Let me explain... I work for a company that has some software used by call takers to enter information into a database about faults with electrical appliances they manufacture, sell to customers, and then provide maintenance contracts for.
22
6294
by: Jordan S. | last post by:
SQL Server will be used as the back-end database to a non trivial client application. In question is the choice of client application: I need to be able to speak intelligently about when one client (MS Access vs ..NET Windows Forms) would be preferred over the other. While I have some good arguments on both sides, I would appreciate your points of view on the topic.
2
2017
by: salad | last post by:
Hi. I have some questions regarding the distribution and installation of an application. My current application is written in A97. I figure its time the application is upgraded to A2003 to remove potential installation problems in the future. I have seen references to SageKey and Wise. Are Sage and Wise and single, unique development tool or are they separate applications? Are they the best tools to use when distributing an Access...
1
3075
by: xcelmind | last post by:
Hello Dev. Guru, I want to at this time introduce myself. I am Stanley Ojadovwa by name. I’m a freelance and a newbie in web application development. I’m currently using ASP as my application server technology with Microsoft access as my database source. Just as I have introduced myself, I’m a newbie in web application development. I’m currently working on an application that will allow
1
3519
by: Cramer | last post by:
I'm running XP Pro/SP2 + patches and updates, with Visual Studio Professional 2008 (and no prior installation of Visual Studio ever installed). When attempting to open an ASP.NET Web application project, Visual Studio shuts down immediately and with no error message. I can open Visual Studio - but when subsequently attempting to open the project, Visual Studio immediately shuts down. More specifically:
6
2269
by: Tony Johansson | last post by:
Hello! We have a C#.ASP.NET application that runs on a IIS 6. The application contains actually several asp pages but there is no GUI. The application receive an xml file that is processed. There is also an MFC dll that is called from this asp application to make a syntax check on quite many commands. You don't have to know what a command is. The problem that we get is the following when the asp pages calls the MFC
1
5231
by: Bhrionn | last post by:
Hello World, I am working on implementing a build for my companies application. The scenario implemeted is producing the error: ‘Class does not support automation or does not support expected interface' when I try to run the RegFree COM interop application from a clients machine. The application works fine for all development machines when run locally or from the network. The application is run from the network so - the component is not...
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9597
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
10366
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
10371
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,...
0
9187
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5546
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...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
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
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.