Hi,
Thanks for the versionning information, I understand, so version 4.8 is still evolving to a future release 4.8.8.
I just checked the latest commited source code, but the creation of the temporary file still refers to _getcwd function (trunk/COM classes/TableClass.cpp:1742) . Maybe something was commited in the rest of the code lately. But when i tested the commit #71111 I managed to reproduce the problem (I just retested with the last commit 71355 same problem).
When building our program using the binary provided by Update2SVN we are experiencing the same issue.
When you say that it's resolved do you mean that it's resolved in the MapWinGis binary ? Or resolved in MapWindow (maybe mapwindow is changing the working directory )?
The program is a basic program that creates a new shapefile, add fields and fills the attribute for few shapes in it.
My steps to reproduce the problem :
Case 1) running from VS :
-Windows 7, uac enabled set to default.
-Building the program Vc++ 2008 or 2010 project that uses mapwingis ocx.
-Debugging or running in release mode the project, => no problem.
Case 2) Running from program file :
-Windows 7, uac enabled set to default.
-Building the program Vc++ 2008 or 2010 project that uses mapwingis ocx.
-Copiing the exe to a directory in program files and run it from here => Shapefiles are correctly created and modified but, attribute table remains empty.
Case 3) Running from program file, changing current directory
-Windows 7, uac enabled set to default.
-Building the program Vc++ 2008 or 2010 project that uses mapwingis ocx.
-Copiing the exe to a directory in program files, creating a shortcut to this and change the "start from" directory in the shortcut to the current user desktop => shapefiles and attribute tables are correct, a temporary file appears on the desktop also, seems to be a dbf file, it contains the attributes and fields created by the test program.
More details :
Pierre
Thanks for the versionning information, I understand, so version 4.8 is still evolving to a future release 4.8.8.
I just checked the latest commited source code, but the creation of the temporary file still refers to _getcwd function (trunk/COM classes/TableClass.cpp:1742) . Maybe something was commited in the rest of the code lately. But when i tested the commit #71111 I managed to reproduce the problem (I just retested with the last commit 71355 same problem).
When building our program using the binary provided by Update2SVN we are experiencing the same issue.
When you say that it's resolved do you mean that it's resolved in the MapWinGis binary ? Or resolved in MapWindow (maybe mapwindow is changing the working directory )?
The program is a basic program that creates a new shapefile, add fields and fills the attribute for few shapes in it.
My steps to reproduce the problem :
Case 1) running from VS :
-Windows 7, uac enabled set to default.
-Building the program Vc++ 2008 or 2010 project that uses mapwingis ocx.
-Debugging or running in release mode the project, => no problem.
Case 2) Running from program file :
-Windows 7, uac enabled set to default.
-Building the program Vc++ 2008 or 2010 project that uses mapwingis ocx.
-Copiing the exe to a directory in program files and run it from here => Shapefiles are correctly created and modified but, attribute table remains empty.
Case 3) Running from program file, changing current directory
-Windows 7, uac enabled set to default.
-Building the program Vc++ 2008 or 2010 project that uses mapwingis ocx.
-Copiing the exe to a directory in program files, creating a shortcut to this and change the "start from" directory in the shortcut to the current user desktop => shapefiles and attribute tables are correct, a temporary file appears on the desktop also, seems to be a dbf file, it contains the attributes and fields created by the test program.
More details :
- When UAC is disabled completely there are no problems.
-
when run from Visual Studio the working directory is set to the program's release directory.
Pierre