Changeset 364 for trunk/Include/system/gc.sbp
- Timestamp:
- Oct 24, 2007, 12:32:20 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/system/gc.sbp
r362 r364 83 83 If GetEnvironmentVariable( "ActiveBasicGarbageCollection", temporary, 255 ) Then 84 84 ' 既にGCがプロセスに存在するとき 85 sscanf( temporary, "%08x", VarPtr( _System_pGC ) )85 _stscanf( temporary, "%08x", VarPtr( _System_pGC ) ) 86 86 MessageBox(0,temporary,"GetEnvironmentVariable",0) 87 87 Else … … 90 90 91 91 ' GCをプロセスに登録する 92 sprintf( temporary, "%08x", _System_pGC )92 _stprintf( temporary, "%08x", _System_pGC ) 93 93 SetEnvironmentVariable( "ActiveBasicGarbageCollection", temporary ) 94 94 End If … … 209 209 ' メモリイメージが壊れている(先頭に存在するインデックスの整合性が取れない) 210 210 Dim temporary[1024] As Char 211 #ifdef _WIN64 212 'wsprintfでは、Windows 2000以降でしか%pが使えない。 213 wsprintf( temporary, Ex"indexOfMemoryObjects: %d\r\npMemoryObjects[index].ptr: &H%p\r\nptr: &H%p\r\n", 214 index, 215 pMemoryObjects[index].ptr, 216 ptr ) 217 #else 211 218 wsprintf( temporary, Ex"indexOfMemoryObjects: %d\r\npMemoryObjects[index].ptr: &H%08x\r\nptr: &H%08x\r\n", 212 219 index, 213 220 pMemoryObjects[index].ptr, 214 221 ptr ) 222 #endif 215 223 _System_DebugOnly_OutputDebugString( temporary ) 216 224 debug … … 677 685 Dim temp[100] As Char 678 686 _System_DebugOnly_OutputDebugString( Ex"heap free missing!\r\n" ) 687 #ifdef _WIN64 688 wsprintf(temp,Ex"{%d} normal block at &H%p, %d bytes long.\r\n", i, pMemoryObjects[i].ptr, pMemoryObjects[i].size) 689 #else 679 690 wsprintf(temp,Ex"{%d} normal block at &H%08X, %d bytes long.\r\n", i, pMemoryObjects[i].ptr, pMemoryObjects[i].size) 691 #endif 680 692 _System_DebugOnly_OutputDebugString( temp ) 681 693 End If
Note:
See TracChangeset
for help on using the changeset viewer.