Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Exception EReadError & Chinese Win 10 only


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Mar 29, 2018 7:19 AM Last Post By: Chad Hower Threads: [ Previous | Next ]
Hanspeter Widmer

Posts: 19
Registered: 10/14/00
Exception EReadError & Chinese Win 10 only  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 17, 2018 10:47 AM
Have my SW (Delphi 2007 based) xxx times running & tested on various Windows OS 32 /64 bit and Win 10 and Preview.

1. On Chinese Win 7 / 64 bit it works as expected :D

2. Now on Chinese Win 10 / 64 bit I get on application startup an EReadError in Module rtl100.bpl:
Error reading StatusBar.Panels

a) System Error 1407 using Vista 2.. Win 10 compatibility mode

b) System Error 6 using XP compatibility mode on the main exe

System Error 1407 : Cannot find window class
System Error 6 : The handle is invalid

A simple stripped test program using packages works as expected, this means no error given.

The beef question rises, as it looks as the form resource reader gets lost... what may cause this error:

a) MS error
b) my error

Below the related dfm code:

object OF_HpWStatusBar: TTBExStatusBar
Left = 0
Top = 158
Width = 594
Height = 20
Panels = <
item
Caption = 'Acquisition...'
Flash = False
FontSettings.Color = clRed
Size = 240
Tag = 0
end
item
Caption = 'Ch(s):'
Flash = False
Tag = 0
end
item
Caption = 'Dump'
Flash = False
Hint = 'Dump function state'
Size = 55
Tag = 0
end
item
Caption = 'DumpTree'
Flash = False
Hint = 'Dump tree function state'
Size = 78
Tag = 0
end
item
Caption = 'Time'
Flash = False
FontSettings.Color = clBlue
Size = 5000
Tag = 0
end>
ParentShowHint = False
ShowHint = True
UseSystemFont = False
end

Hanspeter Widmer

Posts: 19
Registered: 10/14/00
Re: Exception EReadError & Chinese Win 10 only  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 21, 2018 2:55 AM   in response to: Hanspeter Widmer in response to: Hanspeter Widmer
Found now the Win 10 China issue: Do not use in your app any chars above 127 ASCII chars table

Cheers

Hp
Chad Hower

Posts: 613
Registered: 3/2/07
Re: Exception EReadError & Chinese Win 10 only  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 29, 2018 7:19 AM   in response to: Hanspeter Widmer in response to: Hanspeter Widmer
On 3/17/2018 1:47 PM, Hanspeter Widmer wrote:
Have my SW (Delphi 2007 based) xxx times running & tested on various Windows OS 32 /64 bit and Win 10 and Preview.

2007 is not Unicode aware. To use non ASCII encodings you have to use
MBCS, or encodgings etc.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02