yet another GUI/Console question

P

per9000

Hi,

I've written a small app that I mostly want to run from the console.
Sometimes I want the output in a GUI instead to facilitate a "Save As"
feature etc. I created a nice form etc and the switch -g prints the
output in my GUI instead of on the console.

Now to my problem: when I start the GUI from the Console the console
is "blocked" by my application. Can I somehow (by threading?) release
the console and keep the GUI running?

Thanks,

Per

PS: the application is available for download here
http://www.pererikstrandberg.se/projects/dog/

--

Per Erik Strandberg
..NET Architect - Optimization
Tomlab Optimization Inc.
http://tomopt.com/tomnet/
 
M

Marc Gravell

AFAIK, not without having a second exe and Process.Start(). The
console is waiting for the process to exit, so threading won't help.
The "show a console" setting is IIRC part of the file header, so you
can't properly get rid of the console without diddling with the exe.

Marc
 
P

per9000

AFAIK, not without having a second exe and Process.Start(). The
console is waiting for the process to exit, so threading won't help.
The "show a console" setting is IIRC part of the file header, so you
can't properly get rid of the console without diddling with the exe.

Marc

Work nice - Tarzan like.

Also it seems Process.Start() can call itself - this could perhaps be
the solution for me. But I'd better do some magic-number-trick to
avoid an infinite loop of GUI's appearing...

[:)]-|--<

Any one else got a better solution?

Per

--

Per Erik Strandberg
..NET Architect - Optimization
Tomlab Optimization Inc.
http://tomopt.com/tomnet/
 
M

Marc Gravell

I made the asumption that your main exe was a console itself, in which
case you will not have a second locked console and an unlocked
console. You could have got this with START at the command-line...

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top