Hi,

First off thanks to both of you for replying.

Going backwards, easy to hard:

I am running purely under Win 7, VS2010 pro., freshly installed. I have cygwin. but I'm not using it with FSI.

I agree, OnorioCatenacci, that in a deployed system it would not matter, but in testing it does. Consider function A calls pause, and other higher functions call A. Then using a higher function results in an error.

BTW it makes no odds if pause is loaded into FSI directly.

Many Thanks

Joe

By on 6/26/2010 8:19 AM ()

BTW it makes no odds if pause is loaded into FSI directly.

I'm not quite sure I'm following you there Joe. I tried the example you posted in the FSI on my machine (Win 7 and VS 2010 as well) and it worked fine. I copy/pasted it into my FSI--if you "#load"ed it that might explain the difference.

When I said this wouldn't matter in a deployed system, I meant that when you build the .exe you'll specify that it's either a Windows subsystem executable (via the --target:winexe switch on fsc) or as a Console Subsystem executable (via the --target:exe switch). Hence if you actually need a console, you'd build it with the --target:exe switch and you'd get a console when the exe is started.

By on 6/26/2010 8:57 PM ()

I have a guess what has happened because I've had the same error message. Do you you use one of the standard cygwin terminals like rxvt, xterm or mintty. This won't work because these are not proper Win OS consoles but implemented by pipes, hence the error message. I this is the case and you want a nice terminal to use with fsi, I recommend Console2.

By on 6/25/2010 5:51 AM ()

Sorry to give you a "works on my machine" answer but . . . it works on my FSI. What happens if you try this code directly in FSI (vs. running it under VS 2010)? I'm going to hazard a guess that the VS2010 version is not running under the Windows console subsystem.

I should amplify a little I guess. If you were using this code in a production situation then you'd build the exe as a console exe. So I don't think there's really a need to test for a console; I think what you're seeing is just likely because of the way you're testing.

Hope that helps. :)

By on 6/23/2010 1:59 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper