Mega Search
23.2 Million


Sign Up

Make a donation  
OpenCV Compiling with no Errors or Warnings but Form not sho  
News Group: embarcadero.public.delphi.multimedia

Hello everyone, 

Thank you for taking the time to read my post. 

I was wondering if anybody could perhaps highlight what is going wrong with my code/compiler?

The issue is that this very simple application will not show my Form when I compile it with line 35. If I remove it, the app runs?

There are no errors or warnings, it compiles fine, but the Form just does not show. 

I am using an OpenCV header file and dll's if that helps. 

any comments/suggestions would be great. 


{code}
unit OpenCV_Test;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Delphi_OpenCV, StdCtrls, ExtCtrls;

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Button1: TButton;
    Procedure GO(Sender: TObject);



  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

Procedure TForm1.GO(Sender: TObject);
begin
  cvNamedWindow('Test Window');
end;

end.
{code}

Edited by: kay warner on Jul 14, 2012 11:02 AM

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 14-Jul-2012, at 2:02 PM EST
From: kay warner
 
Re: OpenCV Compiling with no Errors or Warnings but Form not  
News Group: embarcadero.public.delphi.multimedia
Thank you so much for helping with this Pieter!

I'm sorry I did not include this information, it was a bit silly of me really. 

I am using Delphi XE and the OpenCV wrapper I am using is attached in this post;

http://delphi-real-life.blogspot.co.uk/2011/12/oops-i-did-it-again.html

I'm sorry but I can't upload them to this forum! 

The program does not hang at all, it compiles in about 1s and returns to the IDE. 

I have used a Show() command in an OnCreate event and that does not work, I have checked in the task manager and it is not shown there. I do not understand how it can compile so easily and just not show up!

thanks again! Kay Warner

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 15-Jul-2012, at 9:00 AM EST
From: kay warner
 
Re: OpenCV Compiling with no Errors or Warnings but Form not  
News Group: embarcadero.public.delphi.multimedia
I have sorted this out now, i needed to add the dll's to PATH. 

thanks to all.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 15-Jul-2012, at 2:48 PM EST
From: kay warner