Try running the app in Administrator mode. It could be that Delphi is already running that way and when it spawns your application as a process that process is inheriting Delphi's rights. Just a guess though.
On Mon, Nov 5, 2012 at 7:12 PM, K2RFP <rn...@verizon.net> wrote: > I'm writing a little program that includes a procedure > to enumerate the com ports by reading from the registry > at HKey_Local_Machine\Hardware\**DeviceMap\SerialComm. > > The procedure works fine from the IDE but when the program > runs outside the IDE I get nothing found. > > Why, and how do I work around that? > > ______________________________**____________________ > Delphi-Talk mailing list -> Delphi-Talk@elists.org > http://lists.elists.org/cgi-**bin/mailman/listinfo/delphi-**talk<http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk> > __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk