Recent

Author Topic: demo works fine on emulator but not on scanner  (Read 7765 times)

mangakissa

  • Hero Member
  • *****
  • Posts: 939
demo works fine on emulator but not on scanner
« on: August 07, 2014, 09:50:49 am »
I've have done everything (except the sqlite driver) to create an emulator.
This is working fine. I can create an wince application (form,label,edit,memo,button) and show it in my emulator (pocket pc). So you think it's working, so copied my executable to my barcodescanner (MC9100 series, winCE 5.0) and run it.
I'm only see some flash, no form on screen. Only a button in the taskmanager which shows the application is started.

Only a warm reboot can get my barcodescanner back to his origin settings.

Are there any other things that I have to do to get it work?
Lazarus 1.84 (32b) / FPC 3.0.4
Windows 10

bambamns

  • Full Member
  • ***
  • Posts: 223
Re: demo works fine on emulator but not on scanner
« Reply #1 on: August 09, 2014, 04:39:32 am »
Can You specify a precise model of Motorola and WinCE version ?
Lazarus 1.8.4 + FPC 2.6.4 x86 (rebuild) and Lazarus 2.0, Windows 7 x64, unless otherwise specified

Laksen

  • Hero Member
  • *****
  • Posts: 617
    • J-Software
Re: demo works fine on emulator but not on scanner
« Reply #2 on: August 09, 2014, 11:01:55 am »
Have you set top and left of the form to 0?

Evolvitus

  • New member
  • *
  • Posts: 7
Re: demo works fine on emulator but not on scanner
« Reply #3 on: August 11, 2014, 10:49:26 am »
I have same problem with my Psion Workabout Pro 3.
No form at all but application is running.

Top := 0; Left:=0;  - doesn't work.
Position := poDesktopCenter; - doesn't work.

Try 'killing' it in Task Manager (in my device Start -> Shortcuts -> Task Manager).



=====================

FOUND IT!!

Try edit source project file and add there

Code: [Select]
begin
...
Application.ApplicationType := atPDA;  // <- add this line
Application.Initialize;
...

it worked for me :) i can see form now
« Last Edit: August 11, 2014, 10:57:14 am by Evolvitus »

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: demo works fine on emulator but not on scanner
« Reply #4 on: August 11, 2014, 11:06:15 am »
Is that documented at
http://wiki.lazarus.freepascal.org/Windows_CE_Interface
or related pages?
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Evolvitus

  • New member
  • *
  • Posts: 7
Re: demo works fine on emulator but not on scanner
« Reply #5 on: August 11, 2014, 11:34:08 am »
I found 'my' solution on some forum topic.

On your link (official info) there is nothing usefull for that particular problem or solution to it.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: demo works fine on emulator but not on scanner
« Reply #6 on: August 11, 2014, 11:35:48 am »
So... hint... hint.... hint... come on it cannot be SO HARD.... why not add the info so others do NOT run into it again?

That link is not "official" because ANYONE can and should edit it - those pages do not write themselves.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: demo works fine on emulator but not on scanner
« Reply #7 on: August 11, 2014, 11:37:46 am »
My apologies though I hadn't noticed you're new on the forum and perhaps to the wiki as well. The wiki is meant to gather info in an easy to find way while the forum is more useful for asking specific questions...

Thanks.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

mangakissa

  • Hero Member
  • *****
  • Posts: 939
Re: demo works fine on emulator but not on scanner
« Reply #8 on: August 11, 2014, 12:07:50 pm »
stupid, stupid, stupid

Never realized that a screen of a scanner is much smaller then a 20" wide screen.
After changing left and top to 0 gave me the application visible on screen.

Now I can go further

Quote
Can You specify a precise model of Motorola and WinCE version ?
Motorola Symbol MC9190G WinCE 6.00
Lazarus 1.84 (32b) / FPC 3.0.4
Windows 10