Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2004
    Location
    Belgium, Leuven
    Posts
    145

    PDF in WebObject -- Acrobat.exe survives...

    Dear all,

    I just noticed something strange today, and it happens in all the applications I created so far: when I put a PDF in a WebObject, Acrobat.exe remains in the Windows Task Manager (read memory, consuming +/- 35 MB of ram!) even after the application has been closed.

    Did anyone else notice the same behaviour?

    Is there anything I can do about it?

    thanks for your help


    gert

  2. #2
    Join Date
    Dec 2004
    Location
    Texas
    Posts
    239
    Yeah it happens on my end too. Thanks for pointing this out. Does anybody know of a way to stop the Acrobat.exe when the app closes?

  3. #3
    Join Date
    Sep 2005
    Location
    Arizona
    Posts
    77
    You could try getting the WIndow Handle for Acrobat, then close the window before closing down the Autoplay app?

  4. #4
    Join Date
    Dec 2004
    Location
    Texas
    Posts
    239
    The problem is the pdf file opens inside the web object, so there is no window (other than the app) to speak of.

  5. #5
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Try this
    Code:
    file_to_check_for = "acrobat.exe"; --have all lowercase
    processes = System.EnumerateProcesses();
    
    for j, file_path in processes do
        file = String.SplitPath(file_path);
        if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
            System.TerminateProcess(j);
        end
    end
    Dermot

    I am so out of here

  6. #6
    Join Date
    Dec 2004
    Location
    Texas
    Posts
    239
    Works great! Thanks Dermot.

  7. #7
    Join Date
    Nov 2004
    Location
    Belgium, Leuven
    Posts
    145
    Sorry to respond so late....
    This works fine indeed!

    Thank you for your help, Dermot!

Similar Threads

  1. How do I open a PDF directly from CD when program is installed?
    By ReconADA in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 06-06-2007, 10:47 AM
  2. PDFout by Worm
    By azmanar in forum AutoPlay Media Studio 6.0
    Replies: 11
    Last Post: 09-22-2006, 12:29 PM
  3. PDF in a web object and web.loadULR
    By cizzz in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 03-26-2004, 09:25 AM
  4. Opening an Adobe Acrobat PDF Document
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 01:30 PM
  5. opening a pdf file to a specific page
    By Jaegergirl in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 06-17-2003, 10:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts