Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Random Access is Denied error.

 
Sri Ram
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A better solution is for the loaded frame to say that I have the info.

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

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic