OpenCV Compiling with no Errors or Warnings but Form not sho |
|
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
|
Re: OpenCV Compiling with no Errors or Warnings but Form not |
|
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
|
Re: OpenCV Compiling with no Errors or Warnings but Form not |
|