Re: [flexcoders] Re: Reading the output of an AIR application in C#
Maybe you want to look at technologies other than AIR? Tom's suggestion of "write to file, read from file" should be implementable w/o shutting down the AIR app. You just have to implement some kind of directory watcher in the C# piece. Beyond that, you might look into WebORB.NET or CommandProxy (or Merapi to a lesser extent) to work out a different method for passing data back and forth. akila_ksri wrote: Hi Tom, Thanks for your quick response, I do not want to write to a file mainly because, the output keeps coming from the Air application and I need to do the processing at the same time in C# and not wait till the application has exited completly. -Akila --- In flexcoders@yahoogroups.com, Tom Chiverton wrote: On Thursday 26 Feb 2009, akila_ksri wrote: using System.Diagnostics.Process.Start("myAirApp.exe"). I need to be able to return some results from the Air app back to my C# app. Have the AIR app write a file, read that back in. -- Tom Chiverton Helping to dynamically cluster cross-media cross-platform e-services This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
RE: [flexcoders] Re: Reading the output of an AIR application in C#
You can write a socket server into your c# application and connect to that from the AIR app. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of akila_ksri Sent: 26 February 2009 12:04 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Reading the output of an AIR application in C# Hi Tom, Thanks for your quick response, I do not want to write to a file mainly because, the output keeps coming from the Air application and I need to do the processing at the same time in C# and not wait till the application has exited completly. -Akila --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , Tom Chiverton wrote: > > On Thursday 26 Feb 2009, akila_ksri wrote: > > using System.Diagnostics.Process.Start("myAirApp.exe"). I need to be > > able to return some results from the Air app back to my C# app. > > Have the AIR app write a file, read that back in. > > -- > Tom Chiverton > Helping to dynamically cluster cross-media cross-platform e-services > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. > __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
Re: [flexcoders] Re: Reading the output of an AIR application in C#
On Thursday 26 Feb 2009, akila_ksri wrote: > Thanks for your quick response, I do not want to write to a file > mainly because, the output keeps coming from the Air application and I Use SQLlite then ? I'll be amazed if C# doesn't have a connector... -- Tom Chiverton Helping to appropriately cluster scalable total principle-centered CEOs This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: Reading the output of an AIR application in C#
You can find most of the information you need at: www.osflash.org/localconnection.
RE: [flexcoders] Re: Reading the output of an AIR application in C#
They can communicate via LocalConnection. Your C# app just needs to re-implement it, which admittedly is no small undertaking. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk http://www.inps.co.uk/> The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of akila_ksri Sent: 26 February 2009 12:04 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Reading the output of an AIR application in C# Hi Tom, Thanks for your quick response, I do not want to write to a file mainly because, the output keeps coming from the Air application and I need to do the processing at the same time in C# and not wait till the application has exited completly. -Akila --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , Tom Chiverton wrote: > > On Thursday 26 Feb 2009, akila_ksri wrote: > > using System.Diagnostics.Process.Start("myAirApp.exe"). I need to be > > able to return some results from the Air app back to my C# app. > > Have the AIR app write a file, read that back in. > > -- > Tom Chiverton > Helping to dynamically cluster cross-media cross-platform e-services > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. >
Re: [flexcoders] Re: Reading the output of an AIR application in C#
You could check if AIR allows to output to the output stream (or System.Out) while running and you can catch that easily under Windows. See for more information: http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.redirectstandardoutput.aspx Of course, can also add some sort of file watcher and get an event when the file is added to a specific file (or a file with a specific name) and then directly open it in C#. See: http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx
[flexcoders] Re: Reading the output of an AIR application in C#
Hi Tom, Thanks for your quick response, I do not want to write to a file mainly because, the output keeps coming from the Air application and I need to do the processing at the same time in C# and not wait till the application has exited completly. -Akila --- In flexcoders@yahoogroups.com, Tom Chiverton wrote: > > On Thursday 26 Feb 2009, akila_ksri wrote: > > using System.Diagnostics.Process.Start("myAirApp.exe"). I need to be > > able to return some results from the Air app back to my C# app. > > Have the AIR app write a file, read that back in. > > -- > Tom Chiverton > Helping to dynamically cluster cross-media cross-platform e-services > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. >