delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/10/22:25:00

X-Spam-Check-By: sourceware.org
Message-ID: <507150040705101924m686a709esa2e027de14afeee7@mail.gmail.com>
Date: Thu, 10 May 2007 19:24:34 -0700
From: "kalasad mailu" <kalasadmailu AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Please Help!! Calling Socket function in a dll file (that is created using cygwin library), by a Microsoft Visual C++ program resulting in infinite loop
In-Reply-To: <4643C9BA.5080706@cygwin.com>
MIME-Version: 1.0
References: <507150040705021415r750600a6oc6e24b339bf57143 AT mail DOT gmail DOT com> <463909F9 DOT 6B33B9C7 AT dessent DOT net> <507150040705081919i1cbf7194y9672fc6a1b1601a2 AT mail DOT gmail DOT com> <46416B9E DOT 71C3D2C3 AT dessent DOT net> <507150040705091556y3f4842fawb084d359a83c4606 AT mail DOT gmail DOT com> <46425FB7 DOT 8C763D51 AT dessent DOT net> <507150040705101106q30db9fdaie38ac6ea1b51af23 AT mail DOT gmail DOT com> <4643C9BA DOT 5080706 AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 5/10/07, Larry Hall (Cygwin) <reply-to-list-only-lh AT cygwin DOT com> wrote:
> kalasad mailu wrote:
> > This question is also regarding my efforts to create a dll file using
> > g++ in cygwin and use it in VC++.
> >
> > The below program works fine and the output is also shown below. But
> > IF I UNCOMMENT THE TWO LINES in my file dtest.cpp i.e.
> >
> > //#include<iostream>
> > //std::cout<<"hello naumskara\n";
> >
> > and do the same steps. Dll is created successfully, and the MSVC++
> > compiles fine. But when I try to run it, I get the following msg when
> > it tries to execute the init(); (to initialize the cygwin environment)
> > function(MSVC++ file):
> > ------------------------------------------------------------------------------------------------------------
> >
> > First-chance exception at 0x610b48b6 in new3.exe: 0xC0000005: Access
> > violation reading location 0x00000004.
> > -------------------------------------------------------------------------------------------------------------
> >
> >
> > I am running the MSVC++ program from the IDE.
> >
> > Could you please suggest me how to make the program(MSVC++) work after
> > un-commenting the line.
>
> See
> <http://cygwin.com/faq/faq-nochunks.html#faq.programming.msvcrt-and-cygwin>
>
> You're mixing and matching I/O from two different CRTs.  You can't do that.

Why will it work if I comment these line. I am still mixing the
cygwin1 and msvcrt.dll?

>
>
> --
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746
>
> _____________________________________________________________________
>
> A: Yes.
> > Q: Are you sure?
> >> A: Because it reverses the logical flow of conversation.
> >>> Q: Why is top posting annoying in email?
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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