I'm using gc in mingw32 project, and I'm encountering the following problem: when the program is linked statically, there is no problem, and the program works OK. However, after moving certain components to a dll, the program crashed. Any advice? Regards, bostjanv
any special considerations when using gc under mingw32 within a dll
129 Views Asked by bostjanv At
1
There are 1 best solutions below
Related Questions in MINGW
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Error trying to generate Makefile for glBinding
- Role of __WORDSIZE in compilation
- What is the difference between MinGW SEH and MinGW SJLJ?
- MinGW error when compiling C: The procedure entry point libintl_setlocale could not be located in the DLL-file as.exe
- Windows 8.1 Pro MinGW Gfortran Command Prompt 'not recognized command' error
- Compiling PDCurses into ".a", error with mingw command
- How to convert a msys shell script into a windows exe file
- Error when compiling simple LLVM example with Mingw
- GCC suddenly stopped working? Missing dependencies?
- GCC exiting with an error 1 even with -Wall. No explanation why?
- Can't link wxWidgets app with Code::Blocks / MinGW
- Install PyAV on Windows
- Must compile Opencv with Mingw in order to use in QT under Windows?
- MinGW's ld cannot perform PE operations on non PE output file
Related Questions in BOEHM-GC
- What's the difference between generational and incremental garbage collection?
- Does Boehm GC recognize the stacks of Win32 Fibers as roots?
- C blocks extension (libBlocksRuntime) - use custom memory allocator (Boehm GC) for Block_copy()
- boehm-gc : finalizer, and shrink to fit heap
- Running Boehm GC in multiple threads independently
- boehm-gc with C++11's thread library
- About Mechanism of Memory Release in Boehm GC
- How do I make libgc work in Mac OS X?
- Garbage Collector : finalize isn't always called?
- Binding glib into Crystal lang (GC issue)
- How to use asprintf with the Boehm GC?
- when will the boehm-gc 7.6 be released
- Using the GMP library with Boehm's Garbage Collector
- Private API call not allowed in iOS (function "exc_server")
- Does holding CPython's GIL guarantee that all cpython's threads stop?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
boehm-gc needs to know the data root to scan, each .dll has own data section thus it should be registered somehow. Typically it should be registered automatically (including for mingw32, internal GC_register_dynamic_libraries function is responsible for roots discovery in .dlls and registering). To see which data roots are registered, insert GC_gcollect() and GC_print_static_roots() calls after your .dll is loaded. If your are running boehm-gc on a Windows 10 host, please ensure that your libgc-1.dll has the patch that fixes handling of .dll sections with PAGE_WRITECOPY flag.