Control.Invoke lazy invocation

  • Thread starter Thread starter Rafael Pivato
  • Start date Start date
R

Rafael Pivato

I am using the Control.Invoke method with the Compact Framework.
And appears the my delagate takes so much time to be invoked!
I've noted that when I closes the dialogbox, it goes!


Any help please?
 
Are you trying to call Invoke on a control belonging to a form from a modal
dialog? That won't work.
 
hmmm... I was trying :-)

Any idea besides using a nonmodal form ?


----
Rafael Pivato

Alex Feinman said:
Are you trying to call Invoke on a control belonging to a form from a modal
dialog? That won't work.
 
Not really. For all intents and purposes parent form is blocked while a
modal dialog is shown. This *may* change in SP2 but not very likely. Since
your dialogs are exepcted to be fullscreen anyway, I don't see how it is a
problem

Rafael Pivato said:
hmmm... I was trying :-)

Any idea besides using a nonmodal form ?
 
Sorry, guess I missunderstood.
I am calling the Invoke method of a control beloing to a modal dialog
(form).

Well... continnuing...
I thought that all invoke requests were called at the form/control message
loop.
Even being a dialog I think that it have one.

I wish to know more about Invoke back-stages...
Will get it on the Web an will came back here to talk about again....



Thanks,
 
Hi Rafael,

Sorry about this - there's a known bug with using Control.Invoke while a
modal dialog is displayed (thru .ShowDialog). Could you try this on your
device with SP1 installed - it should be fixed.

Thanks,
-Katie

--------------------
| From: "Rafael Pivato" <[email protected]>
| Subject: Control.Invoke lazy invocation
| Date: Wed, 22 Oct 2003 16:10:54 -0200
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: iserv.cpovo.net 200.248.147.15
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:36576
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I am using the Control.Invoke method with the Compact Framework.
| And appears the my delagate takes so much time to be invoked!
| I've noted that when I closes the dialogbox, it goes!
|
|
| Any help please?
| ---
| Rafael Pivato
|
|
|

This posting is provided "AS IS" with no warranties, and confers no rights.
 
You talk about this bug with "so sure"...
Do you know any KB document that explicity talks about this ?
 
Hi Rafael,

There is a bug in our database that was resolved fixed for SP1. There is
not currently a KB article posted for this, since it was fixed in a service
pak. The problem involves using Control.Invoke with .ShowDialog. When a
dialog is showing, calling Control.Invoke from another thread will not
return until the dialog is closed.
There are a couple of workarounds -
1. Install SP1
2. Use .Show instead of .ShowDialog and set up your own modal loop if
needed (disabling the other form and using Application.DoEvents).

Let me know if you need any other information.
-Katie


--------------------
| From: "Rafael Pivato" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: Re: Control.Invoke lazy invocation
| Date: Tue, 28 Oct 2003 09:02:20 -0200
| Lines: 52
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: iserv.cpovo.net 200.248.147.15
| Path:
cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.
phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:37020
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| You talk about this bug with "so sure"...
| Do you know any KB document that explicity talks about this ?
|
| --------
| Rafael Pivato
|
|
| "Katie Schaeffer [MSFT]" <[email protected]> escreveu na
mensagem
| | > Hi Rafael,
| >
| > Sorry about this - there's a known bug with using Control.Invoke while a
| > modal dialog is displayed (thru .ShowDialog). Could you try this on
your
| > device with SP1 installed - it should be fixed.
| >
| > Thanks,
| > -Katie
| >
| > --------------------
| > | From: "Rafael Pivato" <[email protected]>
| > | Subject: Control.Invoke lazy invocation
| > | Date: Wed, 22 Oct 2003 16:10:54 -0200
| > | Lines: 10
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| > | X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | NNTP-Posting-Host: iserv.cpovo.net 200.248.147.15
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.framework.compactframework:36576
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > |
| > | I am using the Control.Invoke method with the Compact Framework.
| > | And appears the my delagate takes so much time to be invoked!
| > | I've noted that when I closes the dialogbox, it goes!
| > |
| > |
| > | Any help please?
| > | ---
| > | Rafael Pivato
| > |
| > |
| > |
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| >
|
|
|

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top