One such thing that occurs to me would be some sort of window redrawing, e.g. when
changing styles on objects visible in a mapper window. Off course, there's hardly any
reason for having any open windows inside MIPro while running as a scheduled task.
Anyone know the reason for this "focus demanding" behaviour of MIPro's ? Is there a
valid technical reason for it ?
Best regards / Med venlig hilsen
Lars V. Nielsen
Odense, Denmark
----- Original Message -----
From: Cameron Crum <[EMAIL PROTECTED]>
To: Dave King <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 3:28 PM
Subject: Re: MI-L Running MapBasic through MS Scheduled tasks
> Something I've noticed occasionally is that if I have an MBX running that
> requires an object change, if MI is not the top window application with focus,
> the change does not occur until I actually bring MI to the top. Maybe this is
> happening with you with the task scheduler actually being the application with
> focus. A test would be to sit there while it is running. When it hangs, make
> sure you set the focus to MI. If it continues then you know what the problem
> is. As for the fix, I think the suggestion to do it all through VB is a good
> one as the problem doesn't exist in this case, at least for me.
>
> Cameron
>
> Dave King wrote:
>
> > Hello list,
> >
> > I'm hoping that someone can shed some light on a problem that I am having
> > when trying to run a mapbasic script through Microsoft Scheduled Tasks on
> > Windows NT 4.0.
> >
> > The problem is that I am unable to run my mapbasic script in it's entirety
> > through scheduled tasks.
> >
> > The script itself is fairly simple, essentially it does 4 things:
> >
> > * It opens a set of tables
> > * It appends then saves the tables
> > * The graphical style of the contents of the appended tables is
> > changed
> > * It then shells out to a Visual basic routine which copies the
> > tables to an archive folder
> >
> > There is nothing wrong with the mapbasic script script itself, it works
> > fine when run normally.
> >
> > When run through scheduled tasks it never completes. No error messages are
> > generated and MapInfo does not crash. I therefore do not know where the
> > problem occurs.
> >
> > I have played about by simplifying my mapbasic routine and can get other
> > scripts to run. The strange thing is that if I remove the part of the
> > script that changes the graphical style of my new appended tables then the
> > script runs fine through task scheduler. The tables are appended and it
> > shells out to the visual basic routine without problem.
> >
> > The problem definitely seems to be with the part of the code that changes
> > the table style. As I say this all runs fine when the script is run from
> > Mapbasic so I really don't understand what is happening here
> >
> > If anyone has any ideas or solutions I'd be grateful as I'm really stuck
> > here.
> >
> > Thanks for your help
> >
> > David King
> >
> > *************************************************************************
> > The contents of the e-mail and any transmitted files are confidential and
> > intended solely for the use of the individual or entity to whom they are
> > addressed. Transport for London Street Management hereby excludes any
> > warranty and any liability as to the quality or accuracy of the contents of
> > this e-mail and any attached transmitted files. If you are not the intended
> > recipient, be advised that you have received this e-mail in error and that
> > any use, dissemination, forwarding, printing or copying of this e-mail is
> > strictly prohibited.
> >
> > If you have received this e-mail in error please notify
> > [EMAIL PROTECTED]
> >
> > This footnote also confirms that this email message has been swept for the
> > presence of computer viruses.
> > *************************************************************************
> >
> > ---------------------------------------------------------------------
> > List hosting provided by Directions Magazine | www.directionsmag.com |
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > Message number: 3428
>
>
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Message number: 3432
>
>