delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/13/10:34:26

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Originating-IP: [194.224.58.37]
From: "Miguelanxo Otero" <miguelanxotero AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Thanks by your help!
Date: Wed, 13 Jun 2001 13:56:16
Mime-Version: 1.0
Message-ID: <F38RQ738SRspJm0OwdG00008dd6@hotmail.com>
X-OriginalArrivalTime: 13 Jun 2001 13:56:16.0416 (UTC) FILETIME=[9D6C7A00:01C0F410]

Oh really impressive how fast some1 aswered!

Thanks by your help, but just half an hour after sending the email,
I found the bug.

Yeah! with -mwindows the thing was really nor console, not GUI (because no 
GUI code was added, so OK!). The reason of the crash is that I left a line 
in the code from a previous version that added stdin to a "select" rmask:

FD_SET(0,rmask);

Of course, if the thing has not console nor GUI, there is no stdin. After 
removing the line from the code, everything worked fine.

Tnx.

>Have you tried to start it with the start command, from bash, like
>
> > myftpserver &
>
>and then closing the bash window?
>
>         /A
>
>| Im trying to port a self-made ftp server from linux to win... and
>| everything was straightforward, execept one thing:
>|
>| I dont want to see the console (even if the program doesnt output
>| anything, its still there!).
>|
>| So I tried to compile with -mwindows but gcc cried "no reference for
>| WinMainCRTStartup default to 00400100 ..or something like"
>|
>| so I added the following line
>|
>| WinMainCRTStartup(); { MainCRTStartup(); } (seen in documentation).
>| and recompile.
>|
>| Ok, if i launch the thing in a console, it runs well.
>| But if launched not in console (maybe explorer...) the program dies...
>|
>| What can I do?
>|
>| Tnx.
>| _________________________________________________________________
>| Get your FREE download of MSN Explorer at http://explorer.msn.com
>|
>|
>| --
>| Want to unsubscribe from this list?
>| Check out: http://cygwin.com/ml/#unsubscribe-simple

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019