Click here to Skip to main content
15,893,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: VS 2005 with netFramework 1.1 ? Pin
hasantayyar11-Apr-06 11:17
hasantayyar11-Apr-06 11:17 
GeneralRe: VS 2005 with netFramework 1.1 ? Pin
Ed.Poore11-Apr-06 11:22
Ed.Poore11-Apr-06 11:22 
AnswerRe: VS 2005 with netFramework 1.1 ? Pin
hasantayyar11-Apr-06 11:24
hasantayyar11-Apr-06 11:24 
GeneralRe: VS 2005 with netFramework 1.1 ? Pin
Ed.Poore11-Apr-06 11:42
Ed.Poore11-Apr-06 11:42 
AnswerRe: VS 2005 with netFramework 1.1 ? Pin
Graham Nimbley11-Apr-06 14:23
Graham Nimbley11-Apr-06 14:23 
GeneralMSBuild Toolkit ? Pin
hasantayyar11-Apr-06 20:26
hasantayyar11-Apr-06 20:26 
GeneralRe: MSBuild Toolkit ? Pin
Graham Nimbley12-Apr-06 6:49
Graham Nimbley12-Apr-06 6:49 
QuestionAccess database in winME Pin
neliocc11-Apr-06 9:20
neliocc11-Apr-06 9:20 
AnswerRe: Access database in winME Pin
Ed.Poore11-Apr-06 10:48
Ed.Poore11-Apr-06 10:48 
QuestionLooking for a base class with typeof? Pin
Andrew Stampor11-Apr-06 8:45
Andrew Stampor11-Apr-06 8:45 
AnswerRe: Looking for a base class with typeof? Pin
Robert Rohde11-Apr-06 8:50
Robert Rohde11-Apr-06 8:50 
GeneralRe: Looking for a base class with typeof? Pin
Andrew Stampor11-Apr-06 9:00
Andrew Stampor11-Apr-06 9:00 
AnswerRe: Looking for a base class with typeof? Pin
Guffa11-Apr-06 8:57
Guffa11-Apr-06 8:57 
GeneralRe: Looking for a base class with typeof? Pin
Andrew Stampor11-Apr-06 9:02
Andrew Stampor11-Apr-06 9:02 
QuestionDelegates Pin
MrEyes11-Apr-06 7:59
MrEyes11-Apr-06 7:59 
AnswerRe: Delegates Pin
Robert Rohde11-Apr-06 8:48
Robert Rohde11-Apr-06 8:48 
QuestionShow tray app context menu on left-click? Pin
rickell11-Apr-06 7:54
rickell11-Apr-06 7:54 
AnswerRe: Show tray app context menu on left-click? Pin
Stefan Troschuetz11-Apr-06 22:12
Stefan Troschuetz11-Apr-06 22:12 
GeneralRe: Show tray app context menu on left-click? Pin
rickell18-Apr-06 4:13
rickell18-Apr-06 4:13 
GeneralRe: Show tray app context menu on left-click? Pin
Stefan Troschuetz18-Apr-06 23:29
Stefan Troschuetz18-Apr-06 23:29 
QuestionNeeds some help with hit testing Pin
truly_pringled11-Apr-06 7:19
truly_pringled11-Apr-06 7:19 
AnswerRe: Needs some help with hit testing Pin
_Bao_11-Apr-06 22:47
_Bao_11-Apr-06 22:47 
QuestionApplication exits unexpectedly and without errors Pin
Ricardo Mendes11-Apr-06 7:00
Ricardo Mendes11-Apr-06 7:00 
Hi. I'm trying to solve a very strange problem. I have a windows forms application that makes calls to a web service. When the web service method is invoked, it is executed without exceptions on the web service side. When this method returns, the application exits without exceptions. It simply closes with error 0 (success).
Other methods of the webservice are called before this problematic method without problems.

Another strange behaviour: if I am debugging the application, it ends on the initialization when I call the problematic webservice method. But if I run the executable itself (without debugging), the application starts (the problematic method works) but it fails on another webservice method invoked on a button click.

The windows forms application looks like this:

public void Main()
{
try
{
webService.NormalMethod1();
webService.NormalMethod2();
webService.ProblematicMethod1(); //returns a DataSet with one table and one row
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
}

private void button_Click(object sender, EventArgs e)
{
try
{
webService.NormalMethod3();
webService.ProblematicMethod2(); //returns a string
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
}

As I said, if I am debugging, after the webService.ProblematicMethod1() method is called the application ends. If I run the executable itself webService.ProblematicMethod1() works and when the button is clicked, webService.ProblematicMethod2() makes the application terminate. In both cases, the catch block is never reached (the MessageBox is never shown). I've created a event handler for the Application.ThreadException event but it is never invoked.

The windows application also communicates with mobile devices through ActiveSync. The described problem only occurs when devices running Windows Mobile 5.0 are connected. It works fine with older devices. In my point of view, the PDA should not affect the windows application since what's involved in this piece of code is only the web service.

I don't know what to do and I need to solve this problem as soon as possible. Any suggestions will be greatly appreciated.

Thanks
AnswerRe: Application exits unexpectedly and without errors Pin
_Bao_11-Apr-06 22:37
_Bao_11-Apr-06 22:37 
GeneralRe: Application exits unexpectedly and without errors Pin
Ricardo Mendes12-Apr-06 1:32
Ricardo Mendes12-Apr-06 1:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.