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

Application doesn't start

Hi!

I experiencing weird problems with my WinForms application running on
top of .NET Framework 2.0. Sometimes when I run the application,
nothing happens. The application .EXE just sits in task manager process
list with about 56 Kb memory footprint and I can only terminate it
through there. Today it came to a point when it doesn't run at all, no
matter how many times I try. I've tried rebuilding the project many
times, both Debug and Release builds. I haven't rebooted Windows yet,
I'll have to try it next.

When I place breakpoint in Main() method and run the app in debugger,
it never gets that there. I've seem this problem occurring every now
and then in all framework versions during last couple of years. Has
anyone else experienced this particular problem and possibly found a
workaround?

My system specs:
Pentium 4 Northwood 2.53 GHz
1 Gb RAM
Windows XP Pro with SP2
VS.NET 2005 Pro and Framework 2.0

May 28 '06 #1
3 1636
I have experienced this .. it was due to a dll calling unmanaged code when
it was not supposed to in particular it was dying in dllmain as the other
code was trying to load other dlls which is a no no ..

Have you hooked up windbg to see whats going on when you die?

Cheers,

Greg Young
MVP - C#
"John B" <zi*@users.easynews.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
Hi!

I experiencing weird problems with my WinForms application running on
top of .NET Framework 2.0. Sometimes when I run the application,
nothing happens. The application .EXE just sits in task manager process
list with about 56 Kb memory footprint and I can only terminate it
through there. Today it came to a point when it doesn't run at all, no
matter how many times I try. I've tried rebuilding the project many
times, both Debug and Release builds. I haven't rebooted Windows yet,
I'll have to try it next.

When I place breakpoint in Main() method and run the app in debugger,
it never gets that there. I've seem this problem occurring every now
and then in all framework versions during last couple of years. Has
anyone else experienced this particular problem and possibly found a
workaround?

My system specs:
Pentium 4 Northwood 2.53 GHz
1 Gb RAM
Windows XP Pro with SP2
VS.NET 2005 Pro and Framework 2.0

May 28 '06 #2
Thanks for your reply. Yes, my C# app is using an unmanaged DLL. Are
there some special considerations that need to be taken into account
when writing DllMain of the unmanaged DLL? No, haven't tried windbg.

May 29 '06 #3
This is not special for .NET ... it should never load other libraries during
DLL Main .. sometimes when it does it causes problems .. sometimes it does
not. windbg (I believe you can also get the information in VS.NET by
enabling unmanaged debugging) can tell you where the code is when it dies.
"John B" <zi*@users.easynews.com> wrote in message
news:11*********************@j73g2000cwa.googlegro ups.com...
Thanks for your reply. Yes, my C# app is using an unmanaged DLL. Are
there some special considerations that need to be taken into account
when writing DllMain of the unmanaged DLL? No, haven't tried windbg.

May 29 '06 #4

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

Similar topics

2
by: GIMME | last post by:
Background ... I've created a web application that allows a user to create an HTML application from IE. The application itself creates an XML representation of a XHTML form. The XHTML...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
6
by: Frank Wilson | last post by:
Tom, It sounds to me like ASP, not ASP.NET is handling the request for WebForm1.aspx. This is most likely an IIS config issue that may have been caused by order of installation or...
3
by: Holger (David) Wagner | last post by:
I'm trying to start a process from an ASP.NET Web application. The reason I need this is to encapsulate a (unmanaged) DLL that sometimes crashes. If I run this DLL directly with P/Invoke from...
6
by: B B | last post by:
Okay, here is what's happening: I have a reasonably fast laptop (1.4 GHz Mobile M, so comparable to 2.5GHz P4) doing .net development. Running Windows XP pro, SP2 IIS is installed and running...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
7
by: | last post by:
Hi to everyone! I have an Apache Webserver running on Win2000. I try to start a console application an the server though PHP, with the functions exec() or passthru() but it doesn't work. The...
2
by: tshad | last post by:
I have my Application variables getting set in my Global.aspx file. If I change a variable in my table that is read at startup, I need to restart the application to reload the variables. I...
3
by: illegal.prime | last post by:
Hi all, I have a service that needs to start a regular windows application. I'm running the service as ServiceAccount.LocalSystem. But, when it starts the process (using Process.Start) the GUI...
35
by: salad | last post by:
I have an application written in MS-Access. It is a complete application that manages the day-to-day operations of a business. The program is nearly ready to be used in other customer sites. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.