ESBPCS for VCL
Weird: Components work when run from Delphi, but not as stand-alone exe
Thread Starter: Max Williams Started: 10/9/2008 7:41 AM UTC
Replies: 4
Weird: Components work when run from Delphi, but not as stand-alone exe
I often use Mike Lischke's excellent (and free) Virtual Treeview component. I recently decided to embed some of Glenn's terrific ESBPCS components (ESBPercentEdits, ESBCurrencyEdits, etc.) in a VirtualTreeView grid as editors. When I test the application under Delphi, the ESBPCS components work exactly as expected. In other words, all the edits are visible in the correct formats. But when I run the exe outside of Delphi, editing occurs--the underlying data changes--but the edit window stays blank.

I'm not asking anyone to spend any time on this, because I can work around it using regular Delphi VCL edits. However, I have never had things "work" in the Delphi environment and not work outside of it. I would like to hear from anyone who has seen this before, whether or not a solution was found.

Max

RE: Weird: Components work when run from Delphi, but not as stand-alone exe
Thanks for letting us know about this Max - and yes it would be good to hear from anyone else on this.

We are naturally aware of Mike's fine product, even though we don't use it in any of our Apps currently.

Several years ago, when we worked on getting our controls embedded in TMS Grids, I recall we did have to do a some minor adjustments - but I haven't had a chance to play with this sort of thing with VT.

Remind me about it after we get v5 out - in the mean time try not using a UICtrl and just play with the ColorSet Features, you might find some "combination" that does make things happy - if so let us know :)


Glenn Crouch, mailto:glenn@esbconsult.com
ESB Consultancy, http://www.esbconsult.com
Home of ESBPCS, ESB Calculators, ESBStats and ESBPDF Analysis
Kalgoorlie-Boulder, Western Australia
Re: RE: Weird: Components work when run from Delphi, but not as stand-alone exe
Glenn,

I wasn't using a UICtrl. I will create a small test project and hold it until v5 is ready. I forgot to mention that I was using D6. However, I just purchased a copy of D2009. When v5 is out, I'll check that out, too. If you are not going to charge for this update, you ought to find a way to let us donate.

Max
RE: RE: Weird: Components work when run from Delphi, but not as stand-alone exe
Max,

> I wasn't using a UICtrl. I will create a small test project and hold it until v5 is ready. I forgot to mention that I was using D6. However, I just purchased a copy of D2009. When v5 is out, I'll check that out, too. <<

Ah Delphi 6 - well that release was a 3rd Party Vendor's Nightmare - the problem is that they release not only updates but RTL Updates as well - and one of those updates "broke" 3rd party support (since the commandline compiler and the IDE one differed in what packages were used). For Delphi 6, you need to ensure that Update 2 is applied (it includes Update 1), and then RTL 1, RTL 2 and RTL 3 updates. Once these are all done, normally things work well.

By any chance are you using Packages with your Executable - you might also want to try just having a single exe - as that reduces the above problem...

We do hope to have the Help Updates finished this week, and thus 4.5 is very close, then I can finish off the Unicode Testing for v5 and get the new Installer for v5 finished - so hopefully not too far away :)

> If you are not going to charge for this update, you ought to find a way to let us donate. <<

The update to v5 will be a free one :)

Donations are always welcomed - you can either make a donation via PayPal to glenn@esbconsult.com or at our Kagi page:  https://order.kagi.com/?ONF  at the bottom you can enter "Other Fees payable to ESB".


Glenn Crouch, mailto:glenn@esbconsult.com
ESB Consultancy, http://www.esbconsult.com
Home of ESBPCS, ESB Calculators, ESBStats and ESBPDF Analysis
Kalgoorlie-Boulder, Western Australia
Re: RE: RE: Weird: Components work when run from Delphi, but not as stand-alone exe
Ah Delphi 6 - well that release was a 3rd Party Vendor's Nightmare - the problem is that they release not only updates but RTL Updates as well - and one of those updates "broke" 3rd party support (since the commandline compiler and the IDE one differed in what packages were used). For Delphi 6, you need to ensure that Update 2 is applied (it includes Update 1), and then RTL 1, RTL 2 and RTL 3 updates. Once these are all done, normally things work well.

Installing those updates is the first thing I do when reinstalling D6 on a new machine.


By any chance are you using Packages with your Executable - you might also want to try just having a single exe - as that reduces the above problem...

I have never used a package with my exe's. So, I'll still plan to create a small test file for D6 and D2009 (if necessary).


We do hope to have the Help Updates finished this week, and thus 4.5 is very close, then I can finish off the Unicode Testing for v5 and get the new Installer for v5 finished - so hopefully not too far away :)

Great! Looking forward to the updates.


The update to v5 will be a free one :)

Donations are always welcomed - you can either make a donation via PayPal to glenn@esbconsult.com or at our Kagi page:  https://order.kagi.com/?ONF  at the bottom you can enter "Other Fees payable to ESB".

Okay, we'll do that. I can't tell you how much I've appreciated your components and routines. The only problem is that your software is so feature rich, I sometimes wonder if I will ever master it. I once spent hours on the internet researching time zone info contained in the registry--only to find ESBPCS had an entire unit full of these routines. Many thanks for your efforts.

Max