WEBUTIL - file already open problem

Hy everybody,
I request your help for a problem with de Webutil library.
I want to open a PDF document with the command :
Ret := WEBUTIL_HOST.Nonblocking( Cmd ) ; (Cmd = path + file name)
This function is called on a "When Button pressed" trigger in my form.
The errors occurs when :
1/ I pressed my button, my PDf is well displayed.
2/ I didn't close my PDF and I click again on my button.
3/ I get the error "WUT-105 : Unable to open file"
I just want to know if exists a function which tell me if the document is already open. (WEBUTIL_FILE.FILE_IS_READABLE does not work any more !)
Or if I could catch the exception in my code. I've tried but I didn't manage to catch it.
If somebody could help me, thanks in advance. And sorry for my english, I'm just a french guy ... ;-)
Bye.

user10836197 wrote:
Ret := WEBUTIL_HOST.Nonblocking( Cmd ) ; (Cmd = path + file name)You only pass the path of the file? Did you try it with rundll32?
rundll32.exe url.dll,FileProtocolHandler test.txtOpens test.txt with the program I specified to always open textfiles with.
cheers

Similar Messages

  • Qeustion about opening/closing two IMAQ VI's so that you don't have to struggle with the File already open problem

    i have included a VI to explain my problem that's how my application is build only then a lil more complicated but i left it to the basics since i can't share my full VI. The case is that if you press start the program should start and load a movie however if you either go to the other tab or when you click 'start' again the program should close the IMAQ file i just get strangled by the fact that i have no clue which loop to stop and where to close the video. Help would be greatly appreciated
    Attachments:
    example.vi ‏51 KB

    Hello Rinus,
    I think having two parallel while loops in this case doesn't seem necessary (and should be avoided).
    As you said, you want to close/stop the video "stream" in the first tab when you open the second Tab (and probably also the other way around).
    This would mean that you'll have to use a "framework" that allows you to have several states and can detect a change between tabs, correct?
    The easiest way to implement this is by using a Design Pattern as starting point.
    Can you make a flow chart that fully explains what the requirements are of your program?
    This will allow you to choose the right design pattern.
    If you are not comfortable with flowcharts, then a more complete description of the requirements would allow me better to guide you to an appropriate "framework".
    Based on the current requirements a simple state machine could maybe do the trick, but this of course depends on the additional (not yet mentioned) requirements you might have.
    I'm asking this especially because you refer to a "more complicated" top level application.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • I HAVE COMPLETED SEVERAL IMOVIES AND FINALIZED JUST FINE.  NOW I GET THE FOLLOWING MESSAGE FROM MY LATEST PROJECT.  "The project could not be prepared for publishing because an error occurred.  (File already open with write permission)"!  What is going on

    I HAVE COMPLETED SEVERAL IMOVIES AND FINALIZED JUST FINE.  NOW I GET THE FOLLOWING MESSAGE FROM MY LATEST PROJECT.  "The project could not be prepared for publishing because an error occurred.  (File already open with write permission)"!  What is going on?

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    Easiest way to find out if this is the problem is by:
    • Create a new User-Account
    • Log out of Your old one and into this
    • Re-try iMovie
    If it now works OK - then 99.9% the problem is iMovie pref. file that needs to be trashed.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occurs only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    Yours Bengt W

  • Why am I getting the message "project could not be prepared because an error occurred. (File already open with write permission)" when trying to share my imovie to media browser?

    Why am I getting the message "Project could not be prepared because an error occurred. (File already open with write permission.) when trying to
    share to the media browser?   I have done this many times before and never got this message.  This is very frustrating.  Can anyone help me?

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    Easiest way to find out if this is the problem is by:
    • Create a new User-Account
    • Log out of Your old one and into this
    • Re-try iMovie
    If it now works OK - then 99.9% the problem is iMovie pref. file that needs to be trashed.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occurs only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    Yours Bengt W

  • Error message when finalizing...file already open with write protection

    I just created my first movie in i Movie. It's about 9 minutes long. When I tried to finalize it it worked for a couple of hours and then came up with a message "unable to prepare project for publishing because an error occurred (file already open with write protection)". What does this mean? I thought I had closed all the files I was using. There was no error number. I tried it 3 times and got the same message. Any thoughts would be greatly appreciated.

    AppleMan, I just checked that and it looks like Time Machine isn't open. I checked it by going to finder>applications>R click on time machine. It gave me the option to "open" which makes me think it's already closed. Is there somewhere else I need to be looking?
    I made another movie that was just a couple of clips and it finalized fine. On that movie, I had some MTS clips and I converted them to mp4's so iMovie could read them.
    In the one that didn't work I did clip one of the movies before I imported it into iMovie. It saved as a .mov instead of a .mp4. Would that make a difference? I checked all of the files and none of them are listed as locked, so I really don't get the "write protected" aspect of this error.

  • I'm trying to share to Media Browser a 20 minute still slide show with music and text. I have tried several times to save at 1080 HD, but just before it's finished, a message box pops up saying "File already open with write permission."  What's this mean?

    I'm trying to finalize/share to Media Browser a 20 minute still slide show with music and text. I'd like to finalize it 1080 hd and have tried several times, but just before it's finished, a message box pops up saying it can't be done because "File already open with with write permission."  What does this mean?  All files are closed; this iMovie project is the only thing open.  Does it mean one of the song files from iTunes? And should I just settle for saving it as a "large" file, which is what I'm trying right now?
    Thanks,
    Jamie

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occours only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    See also this post
    https://discussions.apple.com/thread/4434104?tstart=0
    Yours Bengt W

  • In iMovie I am getting this message...Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred.m file already open with write permission.

    In iMovie I am getting this message...Unable to prepare project for publishing.  The project could not be prepared for publishing because an error occurred. File already open with write permission. 
    How do I resolve this?

    Hi
    Most often it helps by - Turning Off the TimeMachine application - during work in iMovie.
    Yours Bengt W

  • Why am I getting this message suddenly, when I've done dozens and dozens of projects without trouble at all: The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission)

    Why am I suddenly getting this message after I've been using iMovie for a few years now and have never had any such issue before:  The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission)

    Two things
    I meant search THIS FORUM
    Error minus49 not same as ERROR 49
    Yours Bengt W

  • Unable to prepare project for publishing the project could not be prepared for publishing because an error occurred. (file already open with write permission)

    Get this message when I try to publish my iMovie project.  "unable to prepare project for publishing the project could not be prepared for publishing because an error occurred. (file already open with write permission)"

    See the discussion here:
    https://discussions.apple.com/message/16784714#16784714

  • Unable to prepare project for publishing The project could not be prepared for publishing because an error occurred. (File already open with with write permission)

    When I click on finalize project or when I tried to share on Vimeo iMovie goes through this ten hour operation and the, somethime while I'm away from the computer, I get this error message.  UNABLE TO PREPARE PROJECT FOR PUBLISHING.  The project could not be prepared for publishing because an error occurred. (File already open with with write permission).
    This has happened to me before and I can't nail down the particulars of when this happens.  I will say I've never been able to Finalize A Project (not even sure what than means) but I have been able to publish short films to YouTube.  This current film is a little over an hour and I picked the HD Format.  Could the size have something to do with it?

    See the discussion here:
    https://discussions.apple.com/message/16784714#16784714

  • After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?

    After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occours only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    Yours Bengt W

  • In Imovie 2011-Trying to image capture my project but it comes up after 10 hours- The project could not be prepared for publishing because an error occurred. File already open with write permission. Hopefully someone can help me.

    In Imovie 2011- Trying to image capture my project but it come up after 10 hours of rendering- The project could no be prepared for publishing because an error occured. File already open with write permission. Please Help!

    oh and ive tried publishing to almost everything. straight to idvd, to media browser, i tried both hd qualities and also the large quality. no luck with any of those

  • I try to export my Imovie and I always get the error code"Unable to prepare project for publishing...File already open with write permission"  it even does it when I am just trying to export to my external hard drive to save the file

    I try to export my Imovie and I always get the error code"Unable to prepare project for publishing...File already open with write permission"  it even does it when I am just trying to export to my external hard drive to save the file

    Thanks!!! I had same error (with -49) and the mac had an external hard drive attached.. and it was doing a backup.  Stopped, disconnected and the project exported!

  • I received a message "OpWrErr: file already open with write permission" when trying to finalize a project in iMovie 11

    I received a message "OpWrErr: file already open with write permission" when trying to finalize a project in iMovie 11?

    Could be a Time Machine error. Try going to the Time Machine Preferences panel and turning off Time Machine. Then try it again. Be sure to turn Time Machine back on when you finish.

  • The movie could not be exported because an error occurred. (File already open with with write permis

    The movie could not be exported because an error occurred. (File already open with with write permis
    Never received this error until I updated to newer operating system.

    This sounds vaguely like the Error -49 some people have been getting. It's related to a feature in Time Machine geared towards laptop users who aren't always connected to their Time Machine backup drive.
    This requires using the Terminal app, in your Applications/Utilities folder
    To turn off Time Machine snapshots type in the following command:
    sudo tmutil disablelocal
    The Mac will likely ask for your password, so type it in and hit the return key. The type the word, exit and hit return. Quit Terminal.
    Open iMovie and try doing another export and see if the same error message pops up.

Maybe you are looking for