Re: Background Processing in an MFC application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




On Thu, 07 Jun 2007 03:25:08 -0000, KeepFaith <vadnala@xxxxxxxxx> wrote:

Once again, thanks for your time and intent to help.

-> This is all in one application. One Dialog (Send Button) sends the
file to a server.
****
How? That matters.
*****
-> No, these are not modeless dialogs (infact there are none)
****
So why did you say, in the followup question

Current:
1. The user clicks "Send" in another dialog. The "OnClick" event will
send the file and push this file to a temp directory.
2. The user is also given another dialog which actually displays the
files in this temp directory. The user can select and click "Delete".
We want to do some automation and would like to delete the sent
files automatically (but only after successful "send").

which certainly describes two dialogs?
*****
-> This is all one program. "Send" publishes a files a server.
*****
So what is the relationship of the client and the server? Are they on the same machine?
Are they on different machines? Which program is the one you are asking about?
*****
-> Adobe Reader is opened in invisible mode to get the details.
-> Yes, the named pipe is in a seperate thread and is seperate from
the main GUI thread.
****
But what is it doing, and why does it exist? Is it the communication mechanism to the
server? Too many undefined pieces here to make sense.
*****
-> The named pipe when receives the message, calls an existing method
which opens "Adobe Reader".
****
No, I can believe the thread that is communicating with the named pipe launches Adobe
Reader, but I can't believe that the named pipe calls anything.
*****
Note: If the user asks to delete using the dialog, this same
method is used which works just fine.
*****
Which version of Adobe Reader are you using? What OS are you running on?
****
-> The named pipe is doing what the "OnClick" button is doing. I.e.
Calling existing methods (in the same program).
****
Named pipes don't "do" anything. Named pipes are I/O "devices" that transport bits from
one end of the named pipe to the other end of the named pipe. They don't "call" anything.
If you have separate threads calling the same methods, you need to make sure that there is
no shared state involved so that there is no problem with synchronization issues.
joe

****

Best Regards,
KeepFaith
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: slowdown for some but not all
    ... I still say Adobe ... I should mention i'm also running a windows 2k TS server not 2003. ... open the same file from another user it opens in about 25 - 45 ... using Acrobat Reader, esp. ...
    (microsoft.public.windows.terminal_services)
  • Re: Read-Only with Interactive Fields
    ... not your web server. ... save the form locally IF THE FORM IS READER ENABLED ... achieved with Adobe software. ... way Adobe Reader doesn't use the cached field data, ...
    (comp.text.pdf)
  • Re: File that behaves like a socket
    ... the reader, but behaves more like a socket to the writer. ... This has similarities to the way that character-special devices work: they can be read like normal files, but their "server process" has to be in the kernel. ... I had been hoping that Unix-domain sockets would be a solution, but as far as I can see a Unix-domain socket can't be opened like a regular file with open, but rather needs to be opened much like an IP socket with socketand bind. ... The best I have been able to do so far is to use a named pipe, but that is not ideal since the server can't listenfor the named pipe being opened. ...
    (comp.unix.programmer)
  • RE: Resolving an IP address from a SQL Server Instance Name
    ... An error has occurred while establishing a connection to the server. ... under the default settings SQL Server does not allow remote connections. ... you enabled Named Pipe. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Application Error
    ... and uninstall AR and install Foxit Reader Free. ... Welcome to Foxit Software Company -- Telnet Server, ... i stopped error messages from dr watson but the sw application error ... What happens if you reboot, do nothing, and then shutdown? ...
    (microsoft.public.windowsxp.newusers)