aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Random Access is Denied error. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Random Access is Denied error." Watch "Random Access is Denied error." New topic
Author

Random Access is Denied error.

Sri Ram
Ranch Hand

Joined: Oct 03, 2005
Posts: 118
Hi,
hav a problem here. I have one application which has one screen. 2 clients same config. except that one machine is dell and another is toshiba. The Internet explorer version is also a little different. The screen is accessed from both machines, one is giving access is denied error and other is saving without any issues. The Dell Machine also, saves some times and at random times only its giving this error.

This observation is more seen in 128KBPS line.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Connection and brand has nothing to do with errors. What is cuasing the error? Is it a monkey jumping on the screen? You did not say what the action is that is cauing the error to occur.

Eric
Sri Ram
Ranch Hand

Joined: Oct 03, 2005
Posts: 118
Okay I am accessing one vairable present in one frame from another frame. I tried giving a few alerts.
With alerts its not giving this error.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Well the problem with this is that you are trying to access the value before it is loaded in the other frame. You need to change the way you are doing it. Either pass the value from the new frame to the parent or add a setTimeout to the call.

The alerts are allowing the frame to be loaded, hence why you do not see the problem.

Eric
Sri Ram
Ranch Hand

Joined: Oct 03, 2005
Posts: 118
There is already a code doing this. a dummy for loop.

for(i=1;i<=3000000;i++){}

But still the timing is not sufficient. In 128KBPS, the given timing is not enough and its still gives Access is Denied error. But in 100MBPS lan connection, the same is working properly, with or without this loop.
Rusty Smythe
Ranch Hand

Joined: Aug 09, 2006
Posts: 93
Originally posted by Sri Ram:
for(i=1;i<=3000000;i++){}


As you've observed, looping to create a delay as not a good idea, as faster machines will execute the loop faster.

You may want to look at javascript documentation for the setTimeout method, e.g.:
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
A better solution is for the loaded frame to say that I have the info.

from the chold frame:
parent.FrameName.continueProcessing();

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Random Access is Denied error.