|
| Please help to locate a bug.. |
| Iniciado por guest, 13,feb. 2015 13:50 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 13,febrero 2015 - 13: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. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,febrero 2015 - 13:58 |
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 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,febrero 2015 - 14:07 |
Hi,
Just a heads up: UAC will not allow users to write in program directory.
Regards, Piet |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,febrero 2015 - 14:28 |
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! |
| |
| |
| | | |
|
| | | | |
| | |
|