<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <font face="Trebuchet MS">Hi,<br>
      <br>
      I'm new to GRASS and am running on a 64-bit Windows-7 OS. The app
      is working quite well for me overall but I'm having one issue with
      timing on the GRASS window. I kind of suspect there's no fix for
      this but I'll ask anyway.<br>
      <br>
      I am launching GRASS from a batch file with the GRASS_BATCH_JOB
      variable set. The batch job just calls g.parser on a text file,
      like this:<br>
      <br>
          "C:\ProgramFiles\GRASS\bin\g.parser.exe" cmds.txt <br>
      <br>
      The cmds.txt file looks roughly like this:<br>
      <br>
          g.region ... parms ...<br>
          d.mon start=wx0 width=1700 height=1000<br>
          ...some v.proj commands...<br>
          d.vect map=...one of the maps...<br>
          d.vect ...a few more d.vect commands...<br>
      <br>
      The problem I'm having is this: If the actual display window is
      not visible when the d.vect commands run, the graphics fail to
      draw properly and I also get errors in some cases.<br>
      <br>
      If I wait for the display window to appear on the monitor before
      running the d.vect commands, all is well. This seems
      logical...something about the display object is not fully
      initialized when the d.vect commands run so things don't work.<br>
      <br>
      I do have a workaround, which is just to insert a sleep statement
      to give the window time to initialize but it needs to be rather
      long and it would be nice if there were some other way to wait for
      window initialization.<br>
      <br>
      Is there already a way to do this, or would that be an enhancement
      request?<br>
      <br>
      Again, thanks for the great app, and thanks in advance if you can
      help on this question!<br>
      <br>
          Zoltan<br>
      <br>
      <br>
    </font>
  </body>
</html>