| 
 PureBytes Links 
Trading Reference Links 
 | 
 It probably IS in my script but what I've notice is that 
after a re-boot if I run my script without having run and exited AB first 
is that I get 2 instances - 1 invisible.  But once I run AB (manually) and 
then exit then the script will run and create only one, visible 
instance. 
  
d  
  
  Hello,
  The only possiblity to have 2 instances running 
  is to launch the second one manually. (What is possible is that you: 
   a) run 1st instance (CreateObject) - it is not visible - so you are not 
  aware of it   - script hangs up and instance is still running b) 
  run manually second instance c) run script again and it attaches to 
  instance created in a) 
  The other option is that a) is hanging (script 
  is hanging or inside infinite loop)
  Best regards, Tomasz 
  Janeczko amibroker.com ----- Original Message -----  From: 
  "soundscribe_studios" <jgalt@xxxxxxxxxxxx> To: 
  <amibroker@xxxxxxxxxxxxxxx> Sent: Friday, March 24, 2006 4:28 
  PM Subject: [amibroker] Re: Amibroker as a COM object
 
  > 
   > Thanks Tomasz. I don't know why, but sometimes there will be 
  two > broker.exes running. I suppose this means the createobject 
  line > doesn't attach to a running instance and creates a new one. I 
  didn't > think this was intended behavior and it's probably something in 
  my > script. I'll play around with it some more. >  > 
   > --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" 
  <amibroker@xxx> wrote: >> >> Hello, >> 
   >> By default all COM/OLE objects in Windows are created (if 
  not > already running) >> in "invisible" state (i.e. with main 
  window hidden). >> I will add ability to show the GUI in next 
  beta. >>  >> If AmiBroker is already running, then if you 
  call CreateObject it > will attach to already running 
  instance. >>  >>  >> Best regards, >> 
  Tomasz Janeczko >> amibroker.com >> ----- Original Message 
  -----  >> From: "soundscribe_studios" <jgalt@xxx> >> 
  To: <amibroker@xxxxxxxxxxxxxxx> >> Sent: Friday, March 24, 2006 
  1:57 AM >> Subject: [amibroker] Amibroker as a COM object >> 
   >>  >> > Can someone please tell me the correct way to 
  start up Amibroker as a >> > COM object? I'm getting inconsistent 
  behavior and it's driving me >> > crazy trying to figure out what 
  to do. >> >  >> > If I run the Amibroker executable 
  and then set oAB = >> > CreateObject("Broker.Application"), more 
  often than not, TWO >> > Broker.exes are running in task manager. 
  The non-GUI Broker is the one >> > actually doing the work (based 
  on CPU for the PID) and the GUI broker >> > is idle. >> 
  >  >> > If I don't run AB first and just instantiate the COM 
  object, one >> > Broker.exe runs and appears to perform all of the 
  programatic tasks. >> > Everything is fine, except there is no GUI 
  displayed. >> >  >> > If there a way to instatiate AB 
  from a script -- a single instance -- >> > and display the 
  GUI? >> >  >> > In Excel you would just -- >> 
  >  >> > set oXL = CreateObject("Excel.Application") >> 
  > oXL.show() >> >  >> > and the Excel process will 
  exist as long as oXL is in scope. >> >  >> > Quote 
  seems to work this way as does the Autoanalysis object in AB.  >> 
  >  >> > Am I taking crazy pills?  >> >  >> 
  >  >> >  >> >  >> >  >> > 
   >> > Please note that this group is for discussion between users 
  only. >> >  >> > To get support from AmiBroker please 
  send an e-mail directly to  >> > SUPPORT {at} 
  amibroker.com >> >  >> > For other support material 
  please check also: >> > http://www.amibroker.com/support.html >> 
  >  >> >  >> > Yahoo! Groups Links >> > 
   >> >  >> >  >> >  >> > 
   >> >  >> > >> >  >  > 
   >  >  >  > Please note that this group is for 
  discussion between users only. >  > To get support from AmiBroker 
  please send an e-mail directly to  > SUPPORT {at} amibroker.com > 
   > For other support material please check also: > http://www.amibroker.com/support.html > 
   >  > Yahoo! Groups Links >  >  >  > 
   >  >  >  > 
 
  
Please note that this group is for discussion between users only. 
 
To get support from AmiBroker please send an e-mail directly to  
SUPPORT {at} amibroker.com 
 
For other support material please check also: 
http://www.amibroker.com/support.html 
 
  
  
 
  
    
  YAHOO! GROUPS LINKS
 
 
    
 |