Recent

Author Topic: Geckoport :  (Read 3519 times)

rqn

  • New member
  • *
  • Posts: 9
Geckoport :
« on: June 01, 2015, 06:14:48 pm »
Hello,

I'm trying to use Geckoport component.
I follow this tuto :
http://lazplanet.blogspot.fr/2013/10/browser-in-lazarus-with-gecko-pt1.html
and others.

The component installation was performed without problems.

But this error occurs when I launch the demo Gbrowser.pas :
"RunError(229)" in file "GeckoBrowser.pas", line 1971 (in function TcustomGeckoBrowser.GetContentWindow) :
Result:=FWebBrowser.ContentDOMWindow;
The error is : exception in safecall method.

Has anyone encountered the same problem ? (I use Lazarus 1.4)
« Last Edit: June 01, 2015, 06:48:36 pm by rqn »

Michl

  • Full Member
  • ***
  • Posts: 226
Re: Geckoport :
« Reply #1 on: June 01, 2015, 10:10:13 pm »
I've not tested for a longer time, so I've tested it now (Windows 7, 64 bit, Lazarus 1.4 32-bit). Without a problem:

- Lazarus 1.4 downloaded and installed
- GeckoPort version 1 loaded via SVN (svn co https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/geckoport/version1 geckoport_v1)
- package GeckoComponents installed and Lazarus rebuilded
- I've created a new directory "C:\TestGecko", where I've copied all files from ...\GeckoPort\SampleApps (also demo GBrowser)
- XULRunner version 1.9.2.19. downloaded
- unzipped all files from xulrunner-1.9.2.19.en-US.win32.zip into the directory "C:\TestGecko"
- opened project C:\TestGecko\GBrowser
- started it

Maybe you did something different or use a other system or XULRunner?
« Last Edit: June 01, 2015, 10:16:58 pm by Michl »
Code: [Select]
type
  TLiveSelection = (lsMoney, lsChilds, lsTime);
  TLive = Array[0..1] of TLiveSelection;

rqn

  • New member
  • *
  • Posts: 9
Re: Geckoport :
« Reply #2 on: June 02, 2015, 05:28:46 pm »
Yes, it works !!!

I had to reinstall Lazarus (xulrunner-1.9.2.19.en-US.win32.zip was the file I had downloaded), followed your instructions and... that's all !

Thanks a lot for your reply !

 

TinyPortal © 2005-2018