opiumhautopium1 Posted March 31, 2012 Share Posted March 31, 2012 (edited) cause of my system resources error i delete realy everyting so i find this error error creating window device contex to explain a litte freddy told me You shouldn't be calling SetDesktopAsClient anywhere okay so i use in my scripts this function procedure findRightWindow; begin if FindWindowTitlePart('seafight.com',true) then begin SM := GetClientWindowHandle; Writeln('SeamapHandle found: '+inttostr(SM)); end else Writeln('SeapageHandle NOT found '); if FindWindowTitlePart('Antistealth',true) then begin PO := GetClientWindowHandle; Writeln('Antistealth '+inttostr(po)); end else Writeln('AntistealtHandle NOT found '); end; procedure SeaMap; begin //writeln('kontrollpunkt Seamap'); SetClientWindowHandle(SM); GetClientDimensions(Seamap_x2, Seamap_y2); ActivateClient; //Writeln('Seamap_y2: '+inttostr(Seamap_x2)+'x '+inttostr(Seamap_y2)); end; procedure AntistealthWindow; begin //writeln('kontrollpunkt Antistealth'); SetClientWindowHandle(PO); GetClientDimensions(Antistealth_x2, Antistealth_y2); ActivateClient; //Writeln('Antistealth_y2: '+inttostr(Antistealth_x2)+'x '+inttostr(Antistealth_y2)); end; to do the right tings and i only loop this begin findRightWindow; repeat wait(200); SeaMap; wait(200); AntistealthWindow; until(false); end. i get this error messages when i loop this in three to four hours so i dont know what can i do now to change between 2 windows for hours every idea is welcome Edited March 31, 2012 by opiumhautopium1 Quote Link to comment Share on other sites More sharing options...
FHannes Posted April 1, 2012 Share Posted April 1, 2012 I've looked into it and it appears that there is a bug in the client system which is causing these problems you're experiencing. I've uploaded a new alpha copy, please check if your problems are resolved in it, if so, I'll push the fixes to the 3.32.02 release. Quote Link to comment Share on other sites More sharing options...
opiumhautopium1 Posted April 1, 2012 Author Share Posted April 1, 2012 become a runtime error in line 93 setclientwindowhandle(sm); access violation at add 00407298 in module scar.exe read of address FFFFFFFE Quote Link to comment Share on other sites More sharing options...
FHannes Posted April 1, 2012 Share Posted April 1, 2012 become a runtime error in line 93 setclientwindowhandle(sm); access violation at add 00407298 in module scar.exe read of address FFFFFFFE I should get some sleep, I'm starting to make stupid mistakes... I've uploaded a new copy, the problem should be resolved. Quote Link to comment Share on other sites More sharing options...
opiumhautopium1 Posted April 1, 2012 Author Share Posted April 1, 2012 at startup there is NO error ........... to test the funktion at all i need some times but today i think it is not possible to run the script up to 24 hours. i will do it as soon as possible and report it ^^ .... have a good night and sleep well Quote Link to comment Share on other sites More sharing options...
FHannes Posted April 1, 2012 Share Posted April 1, 2012 at startup there is NO error ........... to test the funktion at all i need some times but today i think it is not possible to run the script up to 24 hours. i will do it as soon as possible and report it ^^ .... have a good night and sleep well I'm confident the bug is fixed though, so it shouldn't be a problem. Quote Link to comment Share on other sites More sharing options...
opiumhautopium1 Posted April 2, 2012 Author Share Posted April 2, 2012 now i use my old laptop to write here .. test is running since 3 hours (no problems right now)..... we will see^^ but the performance seems to be a little smarter as before. i do a final report when my test is over ^^ ---------- Post added 04-02-2012 at 06:42 AM ---------- Previous post was 04-01-2012 at 12:15 PM ---------- so i loop it with the alpha version Seamap22064 anti22064 22065 Seamap22065 anti22065 22066 Stopped execution (9905498,9231 ms) without error 22k times i think it is ok greetings Quote Link to comment Share on other sites More sharing options...