windrobin / winforms-geplugin-control-library

Automatically exported from code.google.com/p/winforms-geplugin-control-library
GNU General Public License v3.0
0 stars 1 forks source link

Document Error: line 59 - 'application' is null or not an object #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. embed the GEWebBrowser in a form
2. call the LoadEmbededPlugin() method in the form's constructor
3. assign an event handler to ScriptError of the GEWebBrowser

What is the expected output? What do you see instead?

I expect to see the earth globe in the default position. I get an error message 
instead.

What version of the product are you using? On what operating system?

FC.GEPluginCtrls 1.5.0.0, date 2010-07-05 21:44

Windows 7 Ultimate + Service Pack 1
64-bit Operating System

Please provide any additional information below.

The TestApplication that is available for download works fine. I have stipped 
its functionality to the bare minimum and the GEWebBrowser still works.
The application I have written for myself exists to maintain data for ancient 
archaeological sites. For refernce I want to embed the GEWebBrowser.
The network link for inclusion in Google Earth is 
http://www.history-book.net/files/nc_sites.php?im=1&v=1&ap=1

Original issue reported on code.google.com by stefan.g...@gmail.com on 28 Feb 2011 at 10:38

Attachments:

GoogleCodeExporter commented 9 years ago
The version of the plugin is 6.0.1.2032, date 2010-12-11 08:15

Original comment by stefan.g...@gmail.com on 28 Feb 2011 at 10:41

GoogleCodeExporter commented 9 years ago
Hi, I think this is due to the 64 bit version of IE that you are running. I 
believe I may have forgotten to target the correct cpu in the latest build of 
the controls :(

Basically the configuration platform should be set to target x86 rather than 
AnyCpu.

The issue is that DLLs compiled with the /platform:anycpu will execute on the 
same CLR as the 
process into which it is being loaded. Because the plug-in DLL is 32bit this 
causes errors with the 64bit IE. Hopefully swapping the target platform should 
work as assemblies compiled with /platform:x86 will execute on the 32 bit CLR 
running under WOW64. 

The TestApplication works because the target platform is correct.

If you open the file 'FC.GEPluginCtrls.csproj' and replace any occurrence of 
"anycpu" with "x86" and then rebuild it should work.   

I will change this myself and do a commit asap.

Original comment by fraser.c...@gmail.com on 1 Mar 2011 at 1:29

GoogleCodeExporter commented 9 years ago
Hi, I am only referencing the DLL included in the bin folder of the 
TestApplication solution that can be downloaded here. The source for the 
FC.GEPluginCtrls project that I downloaded from here seems to be some previous 
version, so I am not including the project in my own solution. I have already 
tried to compile my own solution with the projects in it set to x86, but the 
outcome remains the same.

Original comment by stefan.g...@gmail.com on 1 Mar 2011 at 7:12

GoogleCodeExporter commented 9 years ago
OK, I had already set the target platform to x64, and after I re-started Visual 
Studio, it properly compiled the application, and now the plugin works. :-)

One question: is there a way to display crosshairs in the GEWebBrowser? Right 
now I am using a screen overlay placed in the middle...

Original comment by stefan.g...@gmail.com on 1 Mar 2011 at 5:54

Attachments:

GoogleCodeExporter commented 9 years ago
One more question: after I close my application, the geplugin remains as a 
process. Is that as purposed?

Original comment by stefan.g...@gmail.com on 1 Mar 2011 at 10:15

GoogleCodeExporter commented 9 years ago
Glad that got it!

"after I close my application, the geplugin remains as a process. Is that as 
purposed?"

...Yes the plugin will remain running until it finishes garbage collection. 
Once all the objects it uses have been disposed and any memory has been freed 
then the plug-in process will end. This is the exact same behavior when the 
plugin runs in a normal browser window.

If for any reason you wish to force the termination of the plug-in you can call.

GEWebBrowser.KillAllPluginProcesses()

Which will actively force any plug-in instances to exit. Although it would be 
very rare that you would need to call this...

Just to note I will make sure I switch the target platform in the next commit!

Best,

F.

Original comment by fraser.c...@gmail.com on 1 Mar 2011 at 11:30

GoogleCodeExporter commented 9 years ago
I got the same error (line 59, application is null).

I did not installed GoogleEarthPlugin properly. (working on my project 
deployment, with NSIS script)

After a new installation (manually) it works, without error.

Regards,

Original comment by decore...@gmail.com on 2 Mar 2011 at 10:36

GoogleCodeExporter commented 9 years ago
@decore Great stuff

Original comment by fraser.c...@gmail.com on 6 Mar 2011 at 11:30

GoogleCodeExporter commented 9 years ago

Original comment by fraser.c...@gmail.com on 6 Mar 2011 at 11:31

GoogleCodeExporter commented 9 years ago

Original comment by fraser.c...@gmail.com on 6 Mar 2011 at 11:32

GoogleCodeExporter commented 9 years ago
I have Problem with FC.GEPluginCtrls.Geo;and Httpsserver so Test_Application-6 
it doesnt work. i need ASAP to help. 
i developed small software but i am not closing GoogleEarth splash screen, and 
background google earth services open but not closed.

I dont find ANY KIND of document related about API. 

Help me ASAP Please 

Original comment by earslan2...@gmail.com on 10 Apr 2011 at 5:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
@earslan2005

"I dont find ANY KIND of document related about API."

http://code.google.com/p/winforms-geplugin-control-library/w/list
http://code.google.com/apis/earth/documentation/reference/index.html
http://code.google.com/apis/kml/documentation/kmlreference.html
http://code.google.com/apis/earth/documentation/

All on the home page of this project.

Also, please start a new issue if you have a separate problem to the one being 
discussed in this thread.

Thanks.

Original comment by fraser.c...@gmail.com on 5 Feb 2012 at 11:00