Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Invalid Page Fault
"guided.ver" is a simple text file that contains the single line: 19980211
;idea.wbt AddExtender("WWWSK32I.DLL") URL="http://dmie.jpl.nasa.gov/guided.ver" serv=httpGetServer(URL, "") path=httpGetpath(URL, "") a=httpRecvText(serv, path, 1000, 0) message("File Contents are", a)When I compiled with Win32 WBC97D dll(2.4dbp), I get the error upon execution of idea.exe when it attempts to execute the statement:
a=httpRecvText(serv, path, 1000, 0) IDEA caused an invalid page fault in module WWWSK32I.DLL at 014f:012a700a.The compile goes fine. The uncompiled script is okay under WinBatch. It's the Exe that fails.
The BIGEXE does not solve the problem. If an old copy is being used, it must be hunted down and killed. The modified script should help find it.
;idea.wbt AddExtender("WWWSK32I.DLL") ver=wxGetInfo(0,0) Message("WWWSK32I.DLL Version",ver) where=FileLocate("WWWSK32I.DLL") Message("Using DLL at",where) URL="http://dmie.jpl.nasa.gov/guided.ver" serv=httpGetServer(URL, "") path=httpGetpath(URL, "") a=httpRecvText(serv, path, 1000, 0) message("File Contents are", a)
Duh! Thank you for opening my eyes! Now I will need to automate the detection and elimination of any old WWWSK32I.DLL on systems of users who will receive the final product since using code below would be too late as once an extender is loaded, there is no way of unloading it. Would I guess also that when a BIGEXE file is executed, the included dlls are extracted only at initial execution when the included files are not present in the current directory (or they could be in the windows\system directory as well, correct?) and thus if the executing program deleted WWWSK32I.DLL before it was "Added" then the add would fail without re-executing the program. If this is true, then one solution would be upon detection of an outdated dll would be to delete it and then message the user to relaunch the program and exit before attempting to add (and only add after confirming the existence of the required dll)
killit=IniReadPvt("XXYYZZ","deldll",0,"WWW-PROD.INI") if killit==123 TimeDelay(2) ; Wait for other copy to exit where=FileLocate("WWWSK32I.DLL") FileDelete(where) IniWritePvt("XXYYZZ","deldll",123,"WWW-PROD.INI") Run(WinExeName(""),"") exit endif AddExtender("wwwsk32i.dll") ver=wxGetInfo(0,0) if ver?? IniWritePvt("XXYYZZ","deldll",123,"WWW-PROD.INI") Run(WinExeName(""),"") exit endif ;and your code goes here... ;Automagic update....It actually *might* work.
Article ID: W12612
Filename: Invalid Page Fault with Compiled EXE.txt
File Created: 2017:07:28:13:58:52
Last Updated: 1999:04:15:16:48:24