Article View: borland.public.cppbuilder.upgrade
Article #227Re: Upgrading from C++Builder 5 to BDS C++Builder 2006 problems with events
From: Andreas Hummer
Date: Wed, 01 Aug 2007 07:10
Date: Wed, 01 Aug 2007 07:10
46 lines
3159 bytes
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 >
Technical Details
Message-ID:
<Xns997F5D5C590B1andreashummerNOSPAMm@195.206.96.12>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.streams.at!news.streams.at.POSTED!not-for-mailReferences:
<Xns997DB155A6B0AandreashummerNOSPAMm@195.206.96.12>Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,ba72e0ee58ca6a98 X-Google-Attributes: gid10529a,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.streams.at!news.streams.at.POSTED!not-for-mail NNTP-Posting-Date: Wed, 01 Aug 2007 02:10:41 -0500 Newsgroups: borland.public.cppbuilder.upgrade Subject: Re: Upgrading from C++Builder 5 to BDS C++Builder 2006 problems with events From: Andreas Hummer <andreas.hummer@NOSPAMmedix.at> References: <Xns997DB155A6B0AandreashummerNOSPAMm@195.206.96.12> Organization: Medix Informatik GmbH Message-ID: <Xns997F5D5C590B1andreashummerNOSPAMm@195.206.96.12> User-Agent: Xnews/2006.08.24 Cache-Post-Path: news.aic.at!unknown@h062040164156.gun.cm.kabsi.at X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) Date: Wed, 01 Aug 2007 02:10:41 -0500 Lines: 47 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 195.206.96.12 X-Trace: sv3-IvgBSzObYbYZ10IdFcd3nMMw3QlA3PWWyLMzWOhb5AhLiHD0IVpIxKmTO1u0l2lyT2Qm3o712pGuFNG!6RzVxqLPZvZCFD0fyNuFx15ulI3aouRc+fhKO0nMT+XzQedZgtzKaZ2PnD38VOuzEDWqUnxrqDUV!BpgDpN4dNBDT6cWU6pI= X-Complaints-To: abuse@streams.at X-DMCA-Complaints-To: abuse@streams.at X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.35