limelect 48 Posted February 8, 2020 (edited) I got a program , with main form , where webbrowser showing google map is working OK. NO java errors. Now make a new form , as the main !! , with a button showing the above form. frmMain.ShowModal; The webbrowser Map has a script error. On the net, there are a huge amount of solutions. Nonwork. Making wbrMaps.Silent := True; is not an option since it changes the behavior of the map because of the java errors. What I wonder is why the same form with google map on webbrouser when running as the MAIN form , no java errors, then run the form as a second form has java errors?. Can it be a compiler bug? The source has not changed on the form. A new comment it seems that the problem is different. On one application no errors. On another with webbroser on main script errors. For now i keep investigating. crazy as it sounds i duplicated the good application. Each time i added a component and i got a script error. I got to a point that i duplicated a good program with no errors and still i got an error. I would like to say that the good program dose nothing to the webbroser except load the url. I even duplicated the uses. So, for now, i keep looking for something i mise altogh i do not think so. Finally. I am amazed. I have the same 2 projects. I compared the dfm and the pas files. I deleted all unnecessary files, left only DPR. made sure both are the same. And found that exe both are6,374K both are debug. To conclude one gives me script error the other is OK. ANY idea what next? did i say crazy? Edited February 8, 2020 by limelect Share this post Link to post
limelect 48 Posted February 8, 2020 Ok guys final conclusion Mad 2 projects. did NOT copy directory but put dpr ONLY dfm and pas file in another directory. Compile and on the new program script error. Both programs are the same. Any idea? Both programs started with DPR only. Share this post Link to post
limelect 48 Posted February 9, 2020 (edited) I got to a point where i only change the DPR name and Delphi compile same size EXE different HEX content. Lastly, i check the behavior of my computer on 2 suppose to be the same programs Edited February 9, 2020 by limelect Share this post Link to post
Attila Kovacs 629 Posted February 9, 2020 maybe your original project's exe name added to the registry to run in hihgher compatibility mode? https://stackoverflow.com/questions/25843845/how-to-have-delphi-twebbrowser-component-running-in-ie9-mode Share this post Link to post
limelect 48 Posted February 10, 2020 (edited) @Attila Kovacs I know about the switch in reg.di dnot try it yet. However so far i have tried chromiume which needs huge amount of DLL and the most promising is Delphi embedded WB. With it there is no error but running it with this link https://www.google.com/maps/search/?api=1&query=32.0782,34.8486 does not give the expected result. Map does not show properly. My other way is to open webbrowser with navOpenInNewWindow But my main problem is to understand why changing !!! DPR name, that is, one application works with no error the other has errors. It is crazy. I work with Delphi since #1 i never encounter such a thing. Edited February 10, 2020 by limelect Share this post Link to post