Try setting up your service so that it runs with the fox account rather than the default system account. Alain Grumelart Ing. Systems Integration & IT Invensys Systems Canada Inc. -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Johnson, Alex P (IPS) Sent: Thursday, November 08, 2007 8:20 AM To: foxboro@xxxxxxxxxxxxx Subject: Re: [foxboro] FoxAPI / AIM*API and WindowsXP Service At one time, FoxAPI and AIM*API did not work when run from services. I believe that this was corrected in the most recent versions. Do you have the latest FoxAPI loaded? Regards, Alex Johnson Invensys Systems, Inc. 10900 Equity Drive Houston, TX 77041 713.329.8472 (voice) 713.329.1700 (fax) 713.329.1600 (switchboard) alex.johnson@xxxxxxxxxxxxxxxx -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Andreas Mai Sent: Thursday, November 08, 2007 2:30 AM To: foxboro@xxxxxxxxxxxxx Subject: [foxboro] FoxAPI / AIM*API and WindowsXP Service Hi everybody, =3D I'm write a watchdog code witch should run as service in a P92 AW. I use uwrite to write my results to the IA CBP. When I start the =3D programm for testing from the console everthing is fine. But when =3D I start the application as service it crashes in the uwrite call. I've got the suggestion to load the user profile of the fox user with LoadUserprofile, I included the call of them and the the =3D return codes of them are OK but for the problem with the call of uwrite is the same as before. Because uwrite exists in FoxAPI and in AIM-API I have build the programm with both librarys. Has anyone suggestions how to write value to IA from a service. =3D Andreas Mai DCS Maintenace _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=3D3D100071&distributionid=3D3D000000000066 =3D =3D _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html =3D foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Djoin to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Dleave =3D * Confidentiality Notice: This e-mail and any associated files are intended solely for the individual=3D or entity to whom they are addressed. Please do not copy it or use it for =3D any purposes, or disclose its contents to any other person. Further, this e=3D -mail and any associated files may be confidential and further may be legal=3D ly privileged. This email is from the Invensys Process Systems business uni=3D t of Invensys plc which is a company registered in England and Wales with i=3D ts registered office at Portland House, Bressenden Place, London, SW1E 5BF =3D (Registered number 166023). For a list of European legal entities within t=3D he Invensys Process Systems business group, please click here http://www.in=3D vensys.com/legal/default.asp?top_nav_id=3D3D77&nav_id=3D3D80&prev_id=3D3D77= . If you have received this e-mail in error, you are on notice of its status.=3D Please notify us immediately by reply e-mail and then delete this message =3D from your system. Thank you for your co-operation. You may contact our Help=3D desk on +44 (0)20 7821 3859 / 2105 or email inet.hqhelpdesk@xxxxxxxxxxxxx T=3D his e-mail and any attachments thereto may be subject to the terms of any a=3D greements between Invensys (and/or its subsidiaries and affiliates) and the=3D recipient (and/or its subsidiaries and affiliates). = = _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html = foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave = * Confidentiality Notice: This e-mail and any associated files are intended solely for the individual= or entity to whom they are addressed. Please do not copy it or use it for = any purposes, or disclose its contents to any other person. Further, this e= -mail and any associated files may be confidential and further may be legal= ly privileged. This email is from the Invensys Process Systems business uni= t of Invensys plc which is a company registered in England and Wales with i= ts registered office at Portland House, Bressenden Place, London, SW1E 5BF = (Registered number 166023). For a list of European legal entities within t= he Invensys Process Systems business group, please click here http://www.in= vensys.com/legal/default.asp?top_nav_id=3D77&nav_id=3D80&prev_id=3D77. If you have received this e-mail in error, you are on notice of its status.= Please notify us immediately by reply e-mail and then delete this message = from your system. Thank you for your co-operation. You may contact our Help= desk on +44 (0)20 7821 3859 / 2105 or email inet.hqhelpdesk@xxxxxxxxxxxxx T= his e-mail and any attachments thereto may be subject to the terms of any a= greements between Invensys (and/or its subsidiaries and affiliates) and the= recipient (and/or its subsidiaries and affiliates). _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave