Recent

Author Topic: Error in device - Unhandled exception  (Read 4661 times)

Svaty

  • Newbie
  • Posts: 1
Error in device - Unhandled exception
« on: January 12, 2015, 09:34:37 am »
Hi all,
I have problem with run application ("Hello world") in device (Motorola WT41N0 - windows embedded mobile 7 compact edition). If I run the app system show error message.
http://s28.postimg.org/fs4guankt/IMAG0898.jpg
same app in emulator show
http://s4.postimg.org/edfy65kdp/IMAG0901.jpg
I did all steps from manual from this site. (set core, os,...) Lazarus compile my app without problems but in device doesn't working.

When I test settings and do compilation --> Error: C:\lazarus\fpc\2.6.0\bin\i386-win32\ppcrossarm.exe returned an error exitcode (normal if you did not specify a source file to be compiled)

I am sorry for my English  :-[

Source code:
Code: [Select]
unit Unit1;

{$mode objfpc}{$H+}

interface

uses
  Classes, Forms, StdCtrls;

type

  { TForm1 }

  TForm1 = class(TForm)
    Button1: TButton;
    Label1: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.lfm}

{ TForm1 }

procedure TForm1.Button1Click(Sender: TObject);
begin
  close;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin

end;

end.

Are here some differences in source codes or style of programming between wince and win?

If somebody have examples of source codes (better full source codes), send me here please. Uncle Google has minimum INFO.

Thanks for all advices.

*****UPDATE
Now I used Typhon32 IDE after compile and send to device OS show different message than before.
In Lazarus-->Options-->Config and Target I don't have Target processor as here in Typhon(ARMV4,ARMV5,...)
ERROR: (http://s30.postimg.org/3nwjmzkx9/IMAG0903.jpg)
« Last Edit: January 14, 2015, 01:15:40 pm by Svaty »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Error in device - Unhandled exception
« Reply #1 on: January 21, 2015, 07:57:16 pm »
Does the device have agyshell? Read here:

http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#Application_runs_on_Windows_Device_Emulator.2C_but_not_on_physical_device

Your emulator is probably not ARM, try this emulator:

http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Windows_Mobile_6.5_in_Windows_Vista_or_superior

> Are here some differences in source codes or style of programming between wince and win?

Not for this trivial hello world app. For some more advanced differences read:

http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes

 

TinyPortal © 2005-2018