1. Luca Militello
  2. PowerBuilder
  3. Tuesday, 7 November 2017 10:38 AM UTC

Hi,

i'm testing 64bit compiled exe with PB2017.

An error occurred (function return -1) while trying writing registry entries using RegistrySet.

There are no problems with 32bit compiled version.

Any suggestions?

Thanks a lot

Luca

 

Accepted Answer
Marco Meoni Accepted Answer Pending Moderation
  1. Tuesday, 7 November 2017 11:35 AM UTC
  2. PowerBuilder
  3. # Permalink

Hello Luca,

I have no problem on my side, however it would help to know where and what you are trying to set.

Some obvious checks:

1) be sure the account under which you are running your PB app on the 64bit box has rights to write in the registry branch;

2) be sure the datatype corresponds to the datatype specified in the valuetype argument;

3) be sure you're actually running a 64bit app (start the Task manager and verify the image name is just "myapp.exe" without a "*32" suffix)

Side note, if you would run in 32bit mode and try to write to HKLM\Software, the key would end up under the Wow6432Node.

Cheers,

Marco

 

Comment
  1. Luca Militello
  2. Tuesday, 7 November 2017 14:23 PM UTC
Hi Marco,



thank you for your answer.



Actually running the 64 bit exe as administrator it works fine!



The 32 bit exe doesn't requires this option and never give any problem.



However it's important to know that with the 64 bit exe it's necessary starts the app with the administrator rights.



Thank you so much!



best regards



Luca



 



 



 

  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.