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: References: <199807141612 DOT JAA00776 AT cygnus DOT com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: Mark Salazar 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".