Changeset 1134 for applications/doprava/aimsun_bdm/aimsun_ds.cpp
- Timestamp:
- 07/13/10 17:37:59 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/doprava/aimsun_bdm/aimsun_ds.cpp
r1123 r1134 135 135 } 136 136 137 AimsunDS::~AimsunDS ( void ) 138 { 139 /* Stop Aimsun. */ 140 BOOL res = TerminateProcess ( (HANDLE)hPid, 0 ); 141 if ( ! res ) 142 { 143 fprintf ( stderr, "Cannot terminate Aimsun, error code %d!\n", GetLastError() ); 144 } 145 146 /* Controllers are most likely waiting for another input 147 so unblock them - their message loop will receive the 148 "Aimsun exited" message right away. */ 149 eh_wakeup_controllers (); 150 } 151 137 152 void AimsunDS::from_setting ( const Setting &cfg ) 138 153 { … … 179 194 DWORD dwBufLen = MAX_PATH_BYTES; 180 195 LONG res; 181 182 intptr_t hPid;183 196 184 197 int verIndex = 1; //@TODO@: 0 is for release, 1 for debug build of the DLL libraries.