0

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.This is how VBA IDE is being shown

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?

image

image

7
  • Hello, did you find no resource on that specific problem over the internet ? Commented Apr 4 at 13:33
  • 1
    Why Delphi 10.4 and not the latest Delphi 12? How are you launching VBA and attaching the debugger to it? Please provide steps to reproduce the error. Commented Apr 4 at 15:16
  • Thanks for asking more details. The time we upgraded, Delphi 10.4 was the one we decided and no other specific reason. We are first initiating a host VBA environment in Delphi application and using MSAPC_TLB functions for this. One the Delphi Exe , we have provision to lauch VBA and it works on the COM objects of business and Manipulation can be done on the objects. using this method, there is lots of customization which happens. I am also adding a code snippet for this. I am not able to find out what changes from delphi 7 to delphi 10.4 are causing this behavior. Commented Apr 7 at 9:14
  • @RemyLebeau any ideas you might have Commented Apr 9 at 6:49
  • @Ashokkumar "I am also adding a code snippet for this" - there is no code provided. But, did you re-import the TLB when you upgraded? Did you compare the generated TLB wrapper for differences between the two versions? Commented Apr 9 at 7:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.