View previous topic :: View next topic |
Author |
Message |
Ryan
Joined: 25 Feb 2016 Posts: 110
|
Posted: Sun Sep 16, 2018 11:48 am Post subject: cw forces app quit when launched via click in 64 bit |
|
|
The following code works differently according to a combination of launch method and bitness;
Code: |
i=winio$('%ww[no_border,no_maxbox]&')
i=winio$('%ca[window caption]&')
i=winio$('%pv&')
C *** At present under 64 bit when launched by double clicking, this crashes.
i=winio$('%53.10cw[hscroll,vscroll]&',2)
i=winio$('%hw',information)
|
Works:
32 bit - launched from cmd
32 bit - launched from double click
64 bit - launched from cmd
Fails with a silent process exit:
64 bit - launched from double click
I'm guessing that ClearWin sets the default I/O units up differently between 32 and 64 bit. Another guess is that by running from a command prompt the default units are initialised somehow, bypassing the double click bug.
Can anyone throw any light on this behaviour?
Regards
Ryan |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Mon Sep 17, 2018 8:31 am Post subject: |
|
|
Thank you for the feedback. I will make a note that this should be investigated. |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Wed Sep 19, 2018 11:43 pm Post subject: |
|
|
Maybe I'm missing something, I don't see the relationship between the method of launch and fTN95.
Surely setting up of default I/O units in ftn95 has nothing to do with the way he progrm is launched ? _________________ ''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... " |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Fri Sep 28, 2018 9:07 am Post subject: |
|
|
Ryan
Your code works for me but it may be because I am using the latest DLLs.
Issues relating to %cw have been raised elsewhere and have been fixed.
Here is my version...
Code: | winapp
integer i,winio$
integer,external::start
integer(7) information
i=winio$('%ww[no_border,no_maxbox]&')
i=winio$('%ca[window caption]&')
i=winio$('%sc&', start)
i=winio$('%pv&')
i=winio$('%53.10cw[hscroll,vscroll]&',2)
i=winio$('%hw',information)
end
integer function start()
write(2,*) 'Hello'
start = 2
end function
|
The latest beta release may have the relevant fixes. See
http://forums.silverfrost.com/viewtopic.php?t=3797 |
|
Back to top |
|
|
|