Jump to content
opiumhautopium1

error creating window device contex

Recommended Posts

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 by opiumhautopium1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...