forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cw forces app quit when launched via click in 64 bit

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Ryan



Joined: 25 Feb 2016
Posts: 110

PostPosted: Sun Sep 16, 2018 11:48 am    Post subject: cw forces app quit when launched via click in 64 bit Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Mon Sep 17, 2018 8:31 am    Post subject: Reply with quote

Thank you for the feedback. I will make a note that this should be investigated.
Back to top
View user's profile Send private message AIM Address
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Wed Sep 19, 2018 11:43 pm    Post subject: Reply with quote

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 ... Smile "
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Fri Sep 28, 2018 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group