Recent

Author Topic: KSP Testing  (Read 7286 times)

alter

  • Full Member
  • ***
  • Posts: 151
    • KSP website
KSP Testing
« on: November 12, 2009, 02:51:38 pm »
Greetings. Today there has been posted new testing version of KSP available here: http://www.ksplayer.com/pdownloads?task=view.download&cid=3 . KSP is an audio player for Windows and Linux (possibly later also for Mac). Testing version will be developed different from milestones. Each few days there will be an update available that KSP will download for you (if you enable automatic updates) and let you install it. This version is only for testing purposes and general feedback on program and it's features.
If you decide to install it and you find any problem then please, use either http://project.ksplayer.com for bug reports or forum on http://ksplayer.com (if it is not bug report but something more general).
KSP links:
http://project.ksplayer.com - bug tracker and svn browser
http://ksplayer.com - official website
http://update.ksplayer.com/daily.php - list of daily snapshots (only sources)

Important: in order to ensure that you will receive updates for testing version please open c:\users\<your user name>\.KSP\data\setup.opt and ensure that you have UpdatesChannel in Vars section set to 1.

zeljko

  • Hero Member
  • *****
  • Posts: 1095
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: KSP Testing
« Reply #1 on: November 12, 2009, 05:38:20 pm »
Nice, I've just looked into your source (main.pas) and think that I've found an ugly bug.

constructor TWebView.Create(Parent : TWinControl; URL: string;
794      aNetworkAccessManager: QNetworkAccessManagerH; SetEditable: boolean = false);
795    var
796      W : WideString;
797    begin
798      Handle := QLCLWebView_create(L2Qt(Parent));
799      QWebPage:=QLCLWebPage_create(TQtWidget(Parent).Widget);  <---THIS IS WRONG !

QWebPage :=  QLCLWebPage_create(TQtWidget(Parent.Handle).Widget) should be correct

Also, you dont check for TWinControl.HandleAllocated in L2Qt(), and here also you should check if Parent.HandleAllocated ...

cheers





zeljko

  • Hero Member
  • *****
  • Posts: 1095
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: KSP Testing
« Reply #2 on: November 12, 2009, 05:40:23 pm »
Oh .... LoadURL() contains same bug with wrong cast TQtWidget(FParent).Widget , it should be
TQtWidget(FParent.Handle).Widget

I'm wondering how is this suppose to work :)

alter

  • Full Member
  • ***
  • Posts: 151
    • KSP website
Re: KSP Testing
« Reply #3 on: November 12, 2009, 08:18:49 pm »
Thx for it. Checked this out now. However next time it would be appreciated to send bug report here: http://project.ksplayer.com. It's not that I don't like answering here :) It's simply a little bit easier to keep track on project status
« Last Edit: November 12, 2009, 08:27:32 pm by alter »