Atozed Forums
FastMM4 & C++Builder 11.3 & IntraWeb 15.6.7 - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: FastMM4 & C++Builder 11.3 & IntraWeb 15.6.7 (/thread-5155.html)



FastMM4 & C++Builder 11.3 & IntraWeb 15.6.7 - StephanM - 04-11-2025

Has anyone successfully used FastMM4 with C++Builder 11.3 and IntraWeb 15.6.7 (or even IW 16)?

I followed the instructions in FastMM4BCB.cpp. I get many compiler errors, like these:


[bcc32 Error] typeinfo.h(154): E2367 Can't inherit RTTI class from non-RTTI base 'exception'
    typeinfo.h(154): class  bad_cast : public std::exception {};

[bcc32 Error] xlocale(670): E2238 Multiple declaration for 'codecvt<char16_t,char,int>::in(int &,const char *,const char *,const char * &,char16_t *,char16_t *,char16_t * &) const'
    xlocale(667): 
result  in(_Statype& _State,

const _Byte *_First1, const _Byte *_Last1, const _Byte *& _Mid1,
_Elem *_First2, _Elem *_Last2, _Elem *& _Mid2) const
{ // convert bytes [_First1, _Last1) to [_First2, _Last)
return (do_in(_State,
_First1, _Last1, _Mid1, _First2, _Last2, _Mid2));
}



Any advice?


RE: FastMM4 & C++Builder 11.3 & IntraWeb 15.6.7 - StephanM - 04-14-2025

I've made some progress.
This is an older project, using the initial project options.
I changed it to use the Clang compiler (Project > Options > C++ Compiler > deselect Use 'classic' Borland compiler), and most errors went away.

So I created an empty project, and no errors!
- I did select FastMM4 from the project wizard. BUT, to use FastMM4, do I still need to follow the instructions in FastMM4BCB.cpp and add the FastMM4 files manually?
- How can I tell if FastMM4 is used?

Thanks


RE: FastMM4 & C++Builder 11.3 & IntraWeb 15.6.7 - Alexandre Machado - 04-29-2025

I believe that all instructions in there are valid regardless of the compiler you are using.

If you want me to have a look you can send me your project source via email.

You can send it directly to alexandre at atozed dot com


RE: FastMM4 & C++Builder 11.3 & IntraWeb 15.6.7 - StephanM - 05-06-2025

Thanks for your offer to review the project Alexandre. You're a life-saver, I'm really stuck. I should be able to package the project and send it in about a week.

What about the last question: How can I tell at runtime which MM actually is used?