Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
4
Erster Beitrag:
vor 2 Jahren, 7 Monaten
Letzter Beitrag:
vor 2 Jahren, 7 Monaten
Beteiligte Autoren:
Arekusei Timakobu, Piet van Zanten, Fabrice Harari

Please help to locate a bug.. ** solved **

Startbeitrag von Arekusei Timakobu am 13.02.2015 12:50

Initial conditions... There is some main window that displays some information from some server. There is a button Settings on main window. Click on this button call another window (Settings) where user can enter some data, e.g. username, password for access to server. There is another button on main window that calls one more window (Surveillance) with only ActiveX control on it.

After program is run, settings are read correctly, program is working, user can open Settings window and see current values for settings. Then user opens Surveillance window, closes it and open Settings window and now he see incorrect (empty data) and it looks like another Settings file is read.

I made search on my PC and found 2 copies of Settings.fic file (HFSQL Classic file for storing program parameters) - one file is in directory with the program (as it must be) and it contains actual data and the second file is in directory C:\Users\XX\AppData\Local\VirtualStore\Program Filex (x86) that is empty.

As I see WinDev (or what?) bewilder my software with opening window with ActiveX. Why? How? I can't explain... Is it possible to know at the time what data file is read using operation HExecuteQuery. Where the file in VirtualStore directory is from? I didn't create it. When I remove it then it is created again...

Here it is the story... Please any thoughs are welcome.

Antworten:

Re: Please help to locate a bug..

Hi

it looks like:

1. you are not setting by code the directory where your files should be (using hchangedir), and instead rely on the CURRENT DIRECTORY information for that

2. Your activeX is changing the currentdirectory, therefore creating the problem

Just use hchangedir to set your hyperfile directory at the beginnig of the program and you'll be fine

Best regards

von Fabrice Harari - am 13.02.2015 12:58

Re: Please help to locate a bug..

Hi,

Just a heads up: UAC will not allow users to write in program directory.

Regards,
Piet

von Piet van Zanten - am 13.02.2015 13:07

Re: Please help to locate a bug..

Quote
1. you are not setting by code the directory where your files should be (using hchangedir), and instead rely on the CURRENT DIRECTORY information for that


Thank you, Fabrice!

von Arekusei Timakobu - am 13.02.2015 13:28
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.