🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.upgrade
2 messages
2 total messages Started by Andreas Hummer Mon, 30 Jul 2007 15:26
Upgrading from C++Builder 5 to BDS C++Builder 2006 problems with events
#224
Author: Andreas Hummer
Date: Mon, 30 Jul 2007 15:26
21 lines
2127 bytes
Hello Group!

I am upgrading a VCL C++Builder5 Project to BDS C++Builder 2006 but I have 
problems with some events.

In my code I am setting some methods. some are getting set correctly some 
only have the object pointer set but not the method's pointer

  vwr->OnDKM = VwrDKM; // has both object and method pointer
  vwr->OnCommand = VwrTipCommand; // only object pointer
  vwr->OnChangeSettings = TextViewerChangeSettings; // both pointers
  vwr->OnTakeData = uebernahme->TakeData; // only method pointer

I have also problems compiling with dynamic RTL. I have to turn off dynamic 
RTL in all BPLs and the EXE. If it's on then the program hangs on startup 
with access violations.

Any ideas?

Best regards,
Andreas Hummer
Re: Upgrading from C++Builder 5 to BDS C++Builder 2006 problems with events
#227
Author: Andreas Hummer
Date: Wed, 01 Aug 2007 07:10
46 lines
3159 bytes
Hello Group again!

I have found out that the problem seems to be caused by BPL files that 
are not linked to the program wheter dynamic nor static but loaded later 
on demand on runtime. This worked well with BCB 5 but now there seems to 
be a memory alignment problem when loading BPL files this way. I now 
rewrite the program to have the files linked normally. The program starts 
a little bit slower but at least it starts and the events are getting set 
correctly!

Has anyone experience with manually loaded BPL files? Or is a DLL better 
for that task? It would be nice to have a more modular and dynamic 
program like the Borland/Codegear IDEs are. Or is it not possible for 
programs to load and use BPLs this way at runtime?

Best regards,
Andreas Hummer




Andreas Hummer <andreas.hummer@NOSPAMmedix.at> wrote in
news:Xns997DB155A6B0AandreashummerNOSPAMm@195.206.96.12: 

> Hello Group!
> 
> I am upgrading a VCL C++Builder5 Project to BDS C++Builder 2006 but I
> have problems with some events.
> 
> In my code I am setting some methods. some are getting set correctly
> some only have the object pointer set but not the method's pointer
> 
>   vwr->OnDKM = VwrDKM; // has both object and method pointer
>   vwr->OnCommand = VwrTipCommand; // only object pointer
>   vwr->OnChangeSettings = TextViewerChangeSettings; // both pointers
>   vwr->OnTakeData = uebernahme->TakeData; // only method pointer
> 
> I have also problems compiling with dynamic RTL. I have to turn off
> dynamic RTL in all BPLs and the EXE. If it's on then the program hangs
> on startup with access violations.
> 
> Any ideas?
> 
> Best regards,
> Andreas Hummer
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads