I have recently upgraded my application from Delphi 7 to Delphi 10.4. My application launches VBA 6.5, which kind of is hosted within Delphi (i.e. it vanishes along with the main application).
I am facing a strange issues where my VBA code runs and compiles fine, but it breaks with an[![THis is the first function which gets executed for VBA setup][1]1 "Out of Memory" message when I try to debug the VBA code.
Same behavior works fine with the Delphi XE7 compiled application. I am out of ideas on how to resolve this. Can somebody please help here?

