Running V1.1 with latest SP (1 right?), on Windows XP. I have the following
in a web service:
[WebMethod()]
public Double Factorial(int n )
{
double n1 = 1;
double result = 1;
while (n1 <= n)
{
result = result * n1;
n1 = n1 + 1;
}
System.Threading.Thread.Sleep(10000);
return result;
}
In my client Code I have under a button click:
MessageBox.Show(CSService.Factorial(20).ToString() );
When the messageBox displays the main form is still selectable, I can click
items on the form, close the form etc...
If I put the sleep down to 100 the messagebox is displayed modally. I know
the example is unlikely that you would do something like this, but what if
the web service really takes this long? Also if I call the web service as
Async I see the same issue when the messagebox gets displayed.
--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein 9 1001
haven't run the code you included below but aren't we at SP2 as the
atest? -hazz
"Wayne" <Me******@community.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Running V1.1 with latest SP (1 right?), on Windows XP. I have the following in a web service:
[WebMethod()] public Double Factorial(int n ) { double n1 = 1; double result = 1; while (n1 <= n) { result = result * n1; n1 = n1 + 1; }
System.Threading.Thread.Sleep(10000);
return result; }
In my client Code I have under a button click: MessageBox.Show(CSService.Factorial(20).ToString() );
When the messageBox displays the main form is still selectable, I can click items on the form, close the form etc...
If I put the sleep down to 100 the messagebox is displayed modally. I know the example is unlikely that you would do something like this, but what if the web service really takes this long? Also if I call the web service as Async I see the same issue when the messagebox gets displayed.
-- Thanks Wayne Sepega Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein
Just ran a quick search on Microsoft's site and all I found was SP2 for 1.0,
not for 1.1.
"Hazz" <ha**@nospameroosonic.net> wrote in message
news:uU**************@TK2MSFTNGP12.phx.gbl... haven't run the code you included below but aren't we at SP2 as the atest? -hazz
"Wayne" <Me******@community.nospam> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Running V1.1 with latest SP (1 right?), on Windows XP. I have the following in a web service:
[WebMethod()] public Double Factorial(int n ) { double n1 = 1; double result = 1; while (n1 <= n) { result = result * n1; n1 = n1 + 1; }
System.Threading.Thread.Sleep(10000);
return result; }
In my client Code I have under a button click: MessageBox.Show(CSService.Factorial(20).ToString() );
When the messageBox displays the main form is still selectable, I can click items on the form, close the form etc...
If I put the sleep down to 100 the messagebox is displayed modally. I
know the example is unlikely that you would do something like this, but what
if the web service really takes this long? Also if I call the web service
as Async I see the same issue when the messagebox gets displayed.
-- Thanks Wayne Sepega Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein
Well I actually got it narrowed down some more. It has nothing to do with
the web service. It is just the windows form application.
Drop a timer on the form, set it's interval to 1000 and put this in for the
timer event:
timer1.Enabled = false;
MessageBox.Show("TEST");
Run the application and make sure to take focus away from the form/App. I
just select my News reader. Once you do this and the message box displays
the form is selectable.
"Wayne" <Me******@community.nospam> wrote in message
news:#X**************@tk2msftngp13.phx.gbl... Running V1.1 with latest SP (1 right?), on Windows XP. I have the
following in a web service:
[WebMethod()] public Double Factorial(int n ) { double n1 = 1; double result = 1; while (n1 <= n) { result = result * n1; n1 = n1 + 1; }
System.Threading.Thread.Sleep(10000);
return result; }
In my client Code I have under a button click: MessageBox.Show(CSService.Factorial(20).ToString() );
When the messageBox displays the main form is still selectable, I can
click items on the form, close the form etc...
If I put the sleep down to 100 the messagebox is displayed modally. I know the example is unlikely that you would do something like this, but what if the web service really takes this long? Also if I call the web service as Async I see the same issue when the messagebox gets displayed.
-- Thanks Wayne Sepega Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute.
But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein
sorry Wayne...i wuz thinking XP, not .NET sp's.....
"Wayne" <Me******@community.nospam> wrote in message
news:eJ**************@tk2msftngp13.phx.gbl... Just ran a quick search on Microsoft's site and all I found was SP2 for 1.0, not for 1.1.
"Hazz" <ha**@nospameroosonic.net> wrote in message news:uU**************@TK2MSFTNGP12.phx.gbl... haven't run the code you included below but aren't we at SP2 as the atest? -hazz
"Wayne" <Me******@community.nospam> wrote in message news:%2****************@tk2msftngp13.phx.gbl... > Running V1.1 with latest SP (1 right?), on Windows XP. I have the > following > in a web service: > > [WebMethod()] > public Double Factorial(int n ) > { > double n1 = 1; > double result = 1; > while (n1 <= n) > { > result = result * n1; > n1 = n1 + 1; > } > > System.Threading.Thread.Sleep(10000); > > return result; > } > > > In my client Code I have under a button click: > MessageBox.Show(CSService.Factorial(20).ToString() ); > > When the messageBox displays the main form is still selectable, I can > click > items on the form, close the form etc... > > If I put the sleep down to 100 the messagebox is displayed modally. I know > the example is unlikely that you would do something like this, but what if > the web service really takes this long? Also if I call the web service as > Async I see the same issue when the messagebox gets displayed. > > -- > Thanks > Wayne Sepega > Jacksonville, Fl > > > "When a man sits with a pretty girl for an hour, it seems like a > minute. > But > let him sit on a hot stove for a minute and it's longer than any hour. > That's relativity." - Albert Einstein > >
Wayne,
If you change that to
MessageBox.Show(this, "TEST");
you will see the correct behaviour.
Regards,
Joakim
Wayne wrote: Well I actually got it narrowed down some more. It has nothing to do with the web service. It is just the windows form application.
Drop a timer on the form, set it's interval to 1000 and put this in for the timer event:
timer1.Enabled = false; MessageBox.Show("TEST");
Run the application and make sure to take focus away from the form/App. I just select my News reader. Once you do this and the message box displays the form is selectable.
"Wayne" <Me******@community.nospam> wrote in message news:#X**************@tk2msftngp13.phx.gbl...
Running V1.1 with latest SP (1 right?), on Windows XP. I have the
following
in a web service:
[WebMethod()] public Double Factorial(int n ) { double n1 = 1; double result = 1; while (n1 <= n) { result = result * n1; n1 = n1 + 1; }
System.Threading.Thread.Sleep(10000);
return result; }
In my client Code I have under a button click: MessageBox.Show(CSService.Factorial(20).ToString ());
When the messageBox displays the main form is still selectable, I can
click
items on the form, close the form etc...
If I put the sleep down to 100 the messagebox is displayed modally. I know the example is unlikely that you would do something like this, but what if the web service really takes this long? Also if I call the web service as Async I see the same issue when the messagebox gets displayed.
-- Thanks Wayne Sepega Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute.
But
let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein
Cool, but shouldn't it still work either way? I mean if the form never loses
focus it works just fine. I will defiantly keep this in mind for later
reference.
"Joakim Karlsson" <jk*******@NOSPAMjkarlsson.com> wrote in message
news:#s**************@TK2MSFTNGP09.phx.gbl... Wayne,
If you change that to
MessageBox.Show(this, "TEST");
you will see the correct behaviour.
Regards, Joakim
Wayne wrote: Well I actually got it narrowed down some more. It has nothing to do
with the web service. It is just the windows form application.
Drop a timer on the form, set it's interval to 1000 and put this in for
the timer event:
timer1.Enabled = false; MessageBox.Show("TEST");
Run the application and make sure to take focus away from the form/App.
I just select my News reader. Once you do this and the message box
displays the form is selectable.
"Wayne" <Me******@community.nospam> wrote in message news:#X**************@tk2msftngp13.phx.gbl...
Running V1.1 with latest SP (1 right?), on Windows XP. I have the
following
in a web service:
[WebMethod()] public Double Factorial(int n ) { double n1 = 1; double result = 1; while (n1 <= n) { result = result * n1; n1 = n1 + 1; }
System.Threading.Thread.Sleep(10000);
return result; }
In my client Code I have under a button click: MessageBox.Show(CSService.Factorial(20).ToString ());
When the messageBox displays the main form is still selectable, I can
click
items on the form, close the form etc...
If I put the sleep down to 100 the messagebox is displayed modally. I
knowthe example is unlikely that you would do something like this, but what
ifthe web service really takes this long? Also if I call the web service
asAsync I see the same issue when the messagebox gets displayed.
-- Thanks Wayne Sepega Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute.
But
let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein
Also with the way it works if you don't pass "this" you can close the form,
leaving the message box, and closing the message box afterwards leaves the
application running.
"Wayne" <Me******@community.nospam> wrote in message
news:ew**************@TK2MSFTNGP09.phx.gbl... Cool, but shouldn't it still work either way? I mean if the form never
loses focus it works just fine. I will defiantly keep this in mind for later reference.
"Joakim Karlsson" <jk*******@NOSPAMjkarlsson.com> wrote in message news:#s**************@TK2MSFTNGP09.phx.gbl... Wayne,
If you change that to
MessageBox.Show(this, "TEST");
you will see the correct behaviour.
Regards, Joakim
Wayne wrote: Well I actually got it narrowed down some more. It has nothing to do with the web service. It is just the windows form application.
Drop a timer on the form, set it's interval to 1000 and put this in
for the timer event:
timer1.Enabled = false; MessageBox.Show("TEST");
Run the application and make sure to take focus away from the
form/App. I just select my News reader. Once you do this and the message box displays the form is selectable.
"Wayne" <Me******@community.nospam> wrote in message news:#X**************@tk2msftngp13.phx.gbl...
>Running V1.1 with latest SP (1 right?), on Windows XP. I have the
following
>in a web service: > >[WebMethod()] >public Double Factorial(int n ) >{ > double n1 = 1; > double result = 1; > while (n1 <= n) > { > result = result * n1; > n1 = n1 + 1; > } > > System.Threading.Thread.Sleep(10000); > > return result; >} > > >In my client Code I have under a button click: >MessageBox.Show(CSService.Factorial(20).ToString ()); > >When the messageBox displays the main form is still selectable, I can
click
>items on the form, close the form etc... > >If I put the sleep down to 100 the messagebox is displayed modally. I know>the example is unlikely that you would do something like this, but
what if>the web service really takes this long? Also if I call the web service as>Async I see the same issue when the messagebox gets displayed. > >-- >Thanks >Wayne Sepega >Jacksonville, Fl > > >"When a man sits with a pretty girl for an hour, it seems like a
minute. But
>let him sit on a hot stove for a minute and it's longer than any hour. >That's relativity." - Albert Einstein > >
Hmm...
MessageBox.Show internally calls the private MessageBox.ShowCore method.
This method checks the owner window passed to it. If this method is
null, it uses the active window as parent and calls the native
MessageBox function.
Does seem a bit strange. Perhaps you should post this on a winforms
group instead. Maybe someone there can shed some light on this.
Regards,
Joakim
Wayne wrote: Also with the way it works if you don't pass "this" you can close the form, leaving the message box, and closing the message box afterwards leaves the application running.
"Wayne" <Me******@community.nospam> wrote in message news:ew**************@TK2MSFTNGP09.phx.gbl...
Cool, but shouldn't it still work either way? I mean if the form never
loses
focus it works just fine. I will defiantly keep this in mind for later reference.
"Joakim Karlsson" <jk*******@NOSPAMjkarlsson.com> wrote in message news:#s**************@TK2MSFTNGP09.phx.gbl...
Wayne,
If you change that to
MessageBox.Show(this, "TEST");
you will see the correct behaviour.
Regards, Joakim
Wayne wrote:
Well I actually got it narrowed down some more. It has nothing to do
with
the web service. It is just the windows form application.
Drop a timer on the form, set it's interval to 1000 and put this in for
the
timer event:
timer1.Enabled = false; MessageBox.Show("TEST");
Run the application and make sure to take focus away from the
form/App.
I
just select my News reader. Once you do this and the message box
displays
the form is selectable.
"Wayne" <Me******@community.nospam> wrote in message news:#X**************@tk2msftngp13.phx.gbl.. .
>Running V1.1 with latest SP (1 right?), on Windows XP. I have the
following
>in a web service: > >[WebMethod()] >public Double Factorial(int n ) >{ >double n1 = 1; >double result = 1; >while (n1 <= n) >{ > result = result * n1; > n1 = n1 + 1; >} > >System.Threading.Thread.Sleep(10000); > >return result; >} > > >In my client Code I have under a button click: >MessageBox.Show(CSService.Factorial(20).ToStr ing()); > >When the messageBox displays the main form is still selectable, I can
click
>items on the form, close the form etc... > >If I put the sleep down to 100 the messagebox is displayed modally. I
know
>the example is unlikely that you would do something like this, but
what
if
>the web service really takes this long? Also if I call the web service
as
>Async I see the same issue when the messagebox gets displayed. > >-- >Thanks >Wayne Sepega >Jacksonville, Fl > > >"When a man sits with a pretty girl for an hour, it seems like a
minute. But
>let him sit on a hot stove for a minute and it's longer than any hour. >That's relativity." - Albert Einstein > >
"If this method is null, " should of course read "If the owner window is
null, "
Time to go to bed :)
Regards,
Joakim
Joakim Karlsson wrote: Hmm...
MessageBox.Show internally calls the private MessageBox.ShowCore method. This method checks the owner window passed to it. If this method is null, it uses the active window as parent and calls the native MessageBox function.
Does seem a bit strange. Perhaps you should post this on a winforms group instead. Maybe someone there can shed some light on this.
Regards, Joakim
Wayne wrote:
Also with the way it works if you don't pass "this" you can close the form, leaving the message box, and closing the message box afterwards leaves the application running.
"Wayne" <Me******@community.nospam> wrote in message news:ew**************@TK2MSFTNGP09.phx.gbl...
Cool, but shouldn't it still work either way? I mean if the form never
loses
focus it works just fine. I will defiantly keep this in mind for later reference.
"Joakim Karlsson" <jk*******@NOSPAMjkarlsson.com> wrote in message news:#s**************@TK2MSFTNGP09.phx.gbl...
Wayne,
If you change that to
MessageBox.Show(this, "TEST");
you will see the correct behaviour.
Regards, Joakim
Wayne wrote:
> Well I actually got it narrowed down some more. It has nothing to do
with
> the web service. It is just the windows form application. > > Drop a timer on the form, set it's interval to 1000 and put this in
for
the
> timer event: > > timer1.Enabled = false; > MessageBox.Show("TEST"); > > > Run the application and make sure to take focus away from the
form/App.
I
> just select my News reader. Once you do this and the message box
displays
> the form is selectable. > > > > > "Wayne" <Me******@community.nospam> wrote in message > news:#X**************@tk2msftngp13.phx.gbl... > > >> Running V1.1 with latest SP (1 right?), on Windows XP. I have the > > > following > > >> in a web service: >> >> [WebMethod()] >> public Double Factorial(int n ) >> { >> double n1 = 1; >> double result = 1; >> while (n1 <= n) >> { >> result = result * n1; >> n1 = n1 + 1; >> } >> >> System.Threading.Thread.Sleep(10000); >> >> return result; >> } >> >> >> In my client Code I have under a button click: >> MessageBox.Show(CSService.Factorial(20).ToString() ); >> >> When the messageBox displays the main form is still selectable, I can > > > click > > >> items on the form, close the form etc... >> >> If I put the sleep down to 100 the messagebox is displayed modally. I
know
>> the example is unlikely that you would do something like this, but
what
if
>> the web service really takes this long? Also if I call the web >> service
as
>> Async I see the same issue when the messagebox gets displayed. >> >> -- >> Thanks >> Wayne Sepega >> Jacksonville, Fl >> >> >> "When a man sits with a pretty girl for an hour, it seems like a
minute.
> But > > >> let him sit on a hot stove for a minute and it's longer than any >> hour. >> That's relativity." - Albert Einstein >> >> > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ravindra |
last post by:
Well I installed the framework provided by microsoft ,
the problem is I am able to activate the smart tag in the doc file but when I Click on the Show Detils option in the information bridge the...
|
by: CMan |
last post by:
Hi,
We are currently trying to install .Net Framework v.1.1 on a server which
already has v1.0.
We are receiving the following error.
Error 1704.An installation for Microsoft .NET Framework...
|
by: Cameron Laird |
last post by:
QOTW: "... So I started profiling the code and the slowdown was actually
taking place at places where I didn't expect it." -- Guyon Mor?e (and about
twenty-three thousand others)
" suggestion...
|
by: Joseph Geretz |
last post by:
I recently upgraded my server to Windows 2003. The first thing I noticed is
that my sample WebService pages no longer worked. The Invoke test button is
missing. This is addresed by the following KB...
|
by: Tim D |
last post by:
Hi,
I originally posted this as a reply to a rather old thread in
dotnet.framework.general and didn't get any response. I thought it might be
more relevant here; anyone got any ideas? My...
|
by: Harry Simpson |
last post by:
I know I drilled down into the Windows
folder\Microsoft.net\Framework\v1.1.4322 folder and looked at the version of
Mscorcfg.dll to get the SP level from the version number:
Mine shows...
|
by: Shadow Lynx |
last post by:
At the bottom of the default Error page that appears when Unhandled
Exceptions occur, what exactly is the difference between the "Microsoft
..Net Framework Version" and the "ASP.NET Version"?
I...
|
by: dmjpro |
last post by:
plz send me a good link which can clearify me how the J2EE framework works
i want the details information .... plz help
thanx
|
by: dancer |
last post by:
I have made a new post because when I try to respond to another, I get the
error, "Article Rejected -- Ill-formed message id"
This is in response to the advice of Juan Libre to install Net...
|
by: Blasting Cap |
last post by:
I'm using VS 2005, and have a dll in some code (system.core.dll) that
was included in something someone sent me to run on my system.
I have production on a server using Framework 2.0 that I want...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
| |