FileFindNext() crashes the EA with an access violation

Back to topics list To post a new topic, please log in or register
Doerk 2016.05.04 08:37

Hey there, 

this code crashes the EA with the message: Access violation write to 0x00000020 in '(...)EA.ex4'. WTF?

string filename=NULL;
string search="*";
long handle=FileFindFirst(search,filename,FILE_COMMON);

while (handle!=INVALID_HANDLE)

When FileFindNext() is executed 3rd time, the debugger stops. It happens with every search mask. I cannot trace the problem. 

Of course I reported this to the service desk, but my last answer there is 3 months ago. Senseless in most cases. Maybe someone had the same problem and has an idea. 

Thanks in advance


Doerk 2016.05.04 08:48 #
My fault. FileFindNext() returns bool.
Back to topics list  

To add comments, please log in or register