cout/cerr in DLL?

Andreas Holzmann Andreas.Holzmann@informatik.uni-dortmund.de
Wed Nov 18 07:32:00 GMT 1998


On Tue, Nov 17, 1998 at 04:21:33PM -0600, Mumit Khan wrote:
> "Andreas Holzmann" <Andreas.Holzmann@cs.uni-dortmund.de> writes:
> > I tried to write a small example to generate 
> > and load a DLL dynamically using the dlopen() 
> > call which works fine using c and c++. But
> > when I use cout/cerr instead of printf() for
> > printing silly messages in the DLL my program
> > crashes? It says "handle_exceptions: 
> > Exception: STATUS_ACCESS_VIOLATION"
> 
> This is fixed in B20. If you're already running B20, and still see this
> problem, it's a bug and you need to post some code.
> 
> BTW, please always post relevant info such as Cygwin Version, compiler
> version, etc when posting a problem report. 

Uh, sorry, it's true, I forgot to write some more information :-(
I'm running B20 (gcc version egcs-2.91.57 19980901 (egcs-1.1 release))

I attached a small example that will not work.

  Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testit.tar.gz
Type: application/x-gzip
Size: 1120 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/19981118/7bb6e08f/attachment.bin>


More information about the Cygwin mailing list