• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Random Access is Denied error.

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic