missing ofxDirList.cpp under 007 version

Hello~
007 with windows version missing ofxDirList.cpp file
under \addons\ofxDirList\src directory.
I also tried to copy old ofxDirList.cpp file to src directory
but it got error messages.

didn’t you get those compiler warnings (from ofxDirlist.h)?

#warning ofxDirList has been deprecated.
#warning Remove all references to ofxDirList.h and use ofDirectory instead.

this means: don’t use it, it’s old and outdated :wink:

it should work anyway, ofxDirList is the same as ofDirectory because of this line in ofxDirList.h:

  
typedef ofDirectory ofxDirList;  

and the apis are compatible, so your old project should work, just remove the references to the .cpp from the project

but…if i write codes as follows, the system will stop automatically:

code:
ofDirectory DIR;
int nPics = 0;
nPics = DIR.listDir(s);

error message:
Program received signal SIGTRAP, Trace/breakpoint trap.
In ntdll!DbgUiConnectToDbg () (C:\WINDOWS\system32\ntdll.dll)

Can anyone solve this problem? thanks!!!

attached the call stack:

#0 7C92120F ntdll!DbgUiConnectToDbg() (C:\WINDOWS\system32\ntdll.dll:??)
#1 7C98E0D9 ntdll!RtlpNtMakeTemporaryKey() (C:\WINDOWS\system32\ntdll.dll:??)
#2 7C98E516 ntdll!RtlpNtMakeTemporaryKey() (C:\WINDOWS\system32\ntdll.dll:??)
#3 7C98F6FE ntdll!RtlpNtMakeTemporaryKey() (C:\WINDOWS\system32\ntdll.dll:??)
#4 7C96BC5A ntdll!RtlDeleteElementGenericTableAvl() (C:\WINDOWS\system32\ntdll.dll:??)
#5 7C946045 ntdll!iswdigit() (C:\WINDOWS\system32\ntdll.dll:??)
#6 77BFC2DE msvcrt!free() (C:\WINDOWS\system32\msvcrt.dll:??)
#7 00000000 0x003e0000 in ??() (??:??)
#8 00000000 0x00000000 in ??() (??:??)

Hi Kaykay, has anyone managed to resolve this?
I’ve recently been asked to port an app into windows and I am facing the same issue. Any attempt to use ofDirectory commands results in a similar crash.