delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/16/06:52:15

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: egcs1.0.2mingw32 c++ dll crashes @new
16 Jul 1998 06:52:15 -0700 :
Message-ID: <Pine.SUN.3.93.980715182046.24723A-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <199807141612 DOT JAA00776 AT cygnus DOT com>
Mime-Version: 1.0
To: Mark Salazar <MSalazar AT schafercorp DOT com>
Cc: gnu-win32 AT cygnus DOT com

On Tue, 14 Jul 1998, Mark Salazar wrote:

> Things to consider:
> - the module in question is built as a DLL which perl loads with 
> LoadLibraryEx;

Is the DLL built with GCC as well? There are also restrictions in Win32 on
where memory is allocated and then deallocated.

> - perl itself contains no C++ code. Is memory allocation coordinated 
> automatically between C and C++ code in gnu-win32/egcs?

Yes, it is.

Not knowing anything about your code, it's almost impossible to tell
obviously. I however as usual suspect that there is a memory related
bug somewhere that's causing the later crash (at the very least, you're
seeing the typical symptom of that). I know it's not very helpful, but
I'll track the following:
  
  - try to pair allocation and deallocation
  - make sure memory allocation is one DLL is not freed by another DLL;
    ditto for main program.

Mumit


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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