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 do I print _Decimal32, _Decimal64, and _Decimal128 in C? (Also, what is a Printf hook and how do I add one?)
- How to install CMAKE on MSYS2 or MINGW64? (all servers return 404)
- How to obtain mingw-w64 version 9.3.0 or older for MSYS2?
- Dev c++ [Linker error] undefined reference to `__chkstk_ms'
- Making portable execution errors
- How to compile GLFW with GCC
- why cpp codes is not getting compiled even after i installed cpp extension?
- clang++ and mingw paths start with double slash while compiling
- Install of MINGW fails when installing from MSYS2
- Compile latest openssl with mingw64 within cygwin on Windows 11 vs install prefix path definition
- Compiling C file with MingW in Windows: The system cannot execute the specified program
- Qt Creator Application Crashing Issue
- Undefined reference in MinGW after moving from VC++
- MinGW ld linking error - undefined reference
- DLL built from static lib is flashing a console
Related Questions in BOEHM-GC
- About Mechanism of Memory Release in Boehm GC
- BoehmGC, wasm malloc and finalizers
- How to modify a project Makefile to integrate boehm gc
- How do I keep track of marking work in my own mark procedure for boehm GC and what is the purpose of 'env'
- Installing the Boehm GC on OS X
- C blocks extension (libBlocksRuntime) - use custom memory allocator (Boehm GC) for Block_copy()
- Does Boehm GC recognize the stacks of Win32 Fibers as roots?
- Using the GMP library with Boehm's Garbage Collector
- Private API call not allowed in iOS (function "exc_server")
- Why things that are used inside openmp parallel blocks not collected by Boehm GC afterwards?
- How does one implement weak references with Boehm GC?
- Does GC_MALLOC actually correspond to calloc()?
- What are approaches to optimize the mark phase of a non-generational GC?
- garbage collection for `fopen()`?
- Valgrind reports errors with libgc
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 # Hahtags
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.