forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Folder takes an age to open

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Mar 11, 2005 8:47 pm    Post subject: Folder takes an age to open Reply with quote

Here's a funny thing I discovered. If you try to open a folder from a VDS program that is run from another VDS program which is waiting for the first one to finish, the folder takes up to a minute to appear. No excessive CPU is being used, that I can see.

Here is an example that demonstrates it:

Code:
  title Folder Weirdness
  if @null(%1)
    %1 = Run
    %A = 40
  else
    %A = 80
  end
  DIALOG CREATE,%1,%A,%A,240,160
  DIALOG ADD,BUTTON,BUTTON1,38,21,,,%1
  DIALOG SHOW
:loop
  wait event
  goto @event()
:button1button
  if @equal(%1,Run)
    run %0 Open,wait
  else
    shell open,@curdir()
  end
  goto loop
:close
  exit


Compile this, then run it. Click the button, it starts a second instance. Click the button on the second one, and the folder opens. Eventually.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Mar 12, 2005 10:37 am    Post subject: Reply with quote

If you replace the

Code:
run %0 Open,wait


... line with ...

Code:
    shell open,%0,Open,,wait


... it works like it is supposed to, without having to wait that long... Confused Maybe the "run" command doesn't use the API code properly or something?

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group