Forum
× CodeTyphon Platforms (Win, GTK2/3, QT4/5, Cocoa, etc) Development, discussions and problems

Question [bug report] Calling 'InputBox' in Raspberry pi 1 raises exception error.

  • chulwoong
  • chulwoong's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 months 1 week ago #13463 by chulwoong
If I call

inStr := InputBox('Error Test','Please type any string..');


then it raised an exception error.

I checked CT 6.6 and 6.8. I experience the same exception error.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
5 months 6 days ago - 5 months 6 days ago #13464 by Sternas Stefanos
Thanks Sir

InputBox function has 3 input const ACaption, APrompt, ADefault

unit Dialogs
....
function InputBox(const ACaption, APrompt, ADefault : String) : String;
....


so the correct code is :

inStr :=:= InputBox('Error Test','Please type any string..','DEFAULT INPUT OR NOTHING');

PilotLogic Architect and Core Programmer
Last edit: 5 months 6 days ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • chulwoong
  • chulwoong's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 months 5 days ago #13468 by chulwoong
For the Win32 Build and Linux build, my codes don't raise the exception error. It only happens with the build for the raspberry pi 1. why is that?
Thanks in advance.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
5 months 5 days ago #13469 by Sternas Stefanos
unit Dialogs is common to ALL OSes
the same and InputBox function

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • chulwoong
  • chulwoong's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 months 5 days ago #13600 by chulwoong
This is my code.

procedure TForm1.Button1Click(Sender: TObject);
var str : String;
begin
str := InputBox('Input Test', 'Type your string!', 'Test');
ShowMessage(str);
end;

I tried arm-linux-RapberryPi compiler when I made the environment. And this is output.


I tried arm-linux compiler when I made the environment. And this is the output.


Any suggestions?
Attachments:

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 months 5 days ago #13601 by Sternas Stefanos
Thanks Sir
your CT version ?

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • chulwoong
  • chulwoong's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 months 1 day ago - 3 months 1 day ago #13624 by chulwoong
I was building for the raspberry pi and using 6.8, 6.7, 6.6 and 6.5.
I saw this at 6.8, 6.7 and 6.6.
Last edit: 3 months 1 day ago by chulwoong.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 months 1 day ago - 3 months 1 day ago #13625 by Sternas Stefanos
Sir
we test on Pi3 with Ubuntu-Mate-arm64
and LAB CodeTyphon 6.90
without any problem.




PilotLogic Architect and Core Programmer
Attachments:
Last edit: 3 months 1 day ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • chulwoong
  • chulwoong's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 months 1 day ago #13626 by chulwoong
It looks like older raspberry-pi is not supported.
Good to know and I will upgrade my system to the raspberry-pi3.
Thanks.

Please Log in or Create an account to join the conversation.