Silverfrost Forums

Welcome to our forums

%eb crashes during delay while processing cursor key input

30 Dec 2020 12:37 #26849

Hi, (Ftn95 8.70, win xp/32)

I use a %eb as a mini editor. It works as as expected until I use the cursor keys cursor keys to move around the text. The cursor does not move for about 5 seconds for each keypress. i.e. 2 quick cursor move = 10 second wait. If try and use another editor function (i.e. exit) during this delay the program crashes. if i wait fro the cursor to move there is no issue. If I used the mouse to move the cursor around the text there is no issue .

I will try and test it on a win10/64 system to see if it a legacy issue

steve

Here is the %eb call with options and some of the trace back message

CHARACTER*(32767) EQN_MODEL_BUFF_X

IWIN = WINIO@('%~`*.*eb[vscrollbar,hscrollbar,undo]&', IWIDTH, + IHEIGHT, EQN_MODEL_BUFF_X, EQN_BUFF_SIZE, + ED_INFO(EDI_DATA_EXIST_GREYED), EDIT_INFO_EQN)

Message 2

Runtime error from program:c:\apps_cpi\bin\sprint.exe Access Violation The instruction at address 0e58324c attempted to read from location 00000000 0e583231 strdup [+001b] 0e5b1256 GetTextExtentPoint_edit(<ptr>void,<ptr>char,int,<ptr>structÄtagSIZE)#70 [+0014] 0e5b4ccf locate_mouse(<ptr>structÄedit_buffer,int,int)#70 [+0228] 0e5b5570 edit_procedure@16 [+09c7] 7e418734 routine at address 7E418734 [+0000]

Message 2

Runtime error from program:c:\apps_cpi\bin\sprint.exe Access Violation The instruction at address 0e5b0051 attempted to read from location 00000128 0e5b0027 backup_one_utf8_char(<ref>(<ptr>char))#70 [+002a] 0e5b08a9 store_position_hint(<ptr>structÄedit_buffer,int)#70 [+0068] 0e5b5570 edit_procedure@16 [+1099] 7e418734 routine at address 7E418734 [+0000]

30 Dec 2020 1:56 #26850

Steve

Can you provide a small working program that illustrates the failure?

30 Dec 2020 4:35 #26851

Hi Paul

I will try to make smaller/simpler version and experiment on different platforms

I will let you know how i get on

thanks

steve

4 Jan 2021 12:01 #26870

Paul

this code demonstrates the problem. if you add text( inc cr/lf) in the middle of the numbers and then navigate using the cursor keys the response freezes and then the program crashes when closed (ftn95 ed_test.for /lgo/win) happy hunting

steve

 PROGRAM EB_TEST
  IMPLICIT NONE
  INCLUDE <windows.ins>
  INTEGER  IWIN
  INTEGER EDIT_INFO_EQN(24)
  INTEGER EQN_BUFF_SIZE
  CHARACTER*(32767) EQN_MODEL_BUFF_X
  INTEGER IWIDTH, IHEIGHT
  COMMON /FRED_1/ EQN_MODEL_BUFF_X, EQN_BUFF_SIZE, IWIDTH, IHEIGHT,
 +        EDIT_INFO_EQN
  IHEIGHT = 17
  IWIDTH = 75
  EQN_MODEL_BUFF_X = '1234567890 1234567890 1234567890' // CHAR(0)
  IWIN = WINIO@('%ca@&amp;', 'model sheet')
  EQN_BUFF_SIZE = LEN(EQN_MODEL_BUFF_X)
  IWIN = WINIO@('%`*.*eb[vscrollbar,hscrollbar,undo]&amp;', IWIDTH, 
 +        IHEIGHT, EQN_MODEL_BUFF_X, EQN_BUFF_SIZE, EDIT_INFO_EQN)
  IWIN = WINIO@('%ff')
  END
4 Jan 2021 3:50 #26878

This issue has now been fixed for the next release of ClearWin+.

The failure is in new code for handling UTF8 characters and these are not used in this code.

The failure when actually using UTF8 characters remains to be resolved.

4 Jan 2021 6:19 #26880

Paul

It works fin with the development DLLs

Thanks for the quick response

steve

28 Jun 2021 12:10 #28014

Steve, Paul,

I guess to have a similar/same problem. We supplied our most prominent DimBo(R) software to Japan. On our clients' computer the program terminates from time to time with the following exception:

The instruction at address 10040051 attemped to read from location 00000128

10040027 backup_one_utf8_char (<ref>(<ptr>char))#70 [+002a] 100408a9 store_position_hint ...

Unfortunately all input is lost since last 'save' instruction.

Can you advise how to resolve this on developer's or user's level?

28 Jun 2021 12:14 #28015

Thomas

Have you tried using the latest DLLs from here...

https://forums.silverfrost.com/Forum/Topic/3780

28 Jun 2021 12:29 #28016

Paul,

Tthe salflibc.dll installed on our clients' computers is version 23.1.4.9.

Do you believe that the problem will no longer occur with version 23.6.18.18?

28 Jun 2021 12:34 #28018

Thomas

To the best of my knowledge it should be OK with the latest version.

Please login to reply.