Author |
Message |
Topic: Reference through null fortran pointer |
DanRRight
Replies: 5
Views: 162
|
Forum: Support Posted: Fri Jan 27, 2023 2:05 pm Subject: |
I think the issue with the second "pointer" error report in my magnifier code is related to Clearwin when it handles a lot of load in full mouse input mode. You move mouse and 10s of calls ... |
Topic: Reference through null fortran pointer |
DanRRight
Replies: 5
Views: 162
|
Forum: Support Posted: Thu Jan 26, 2023 4:51 pm Subject: |
John,
In 2020th to program like this should be considered as a crime.
The compiler is doing optimizations like that (taking our repetitive constants) automatically.
The issue with magnifier i ... |
Topic: Reference through null fortran pointer |
DanRRight
Replies: 5
Views: 162
|
Forum: Support Posted: Wed Jan 25, 2023 11:55 pm Subject: Reference through null fortran pointer |
When you run some subroutine for the second time which has ALLOCATE inside and the subroutine trying to allocate already allocated array.
I think this is wrong diagnostics message. Specifically i ... |
Topic: Find current directory |
DanRRight
Replies: 11
Views: 210
|
Forum: Support Posted: Wed Jan 25, 2023 2:50 pm Subject: |
Steve Jobs would not approve such solution in the language for things simple like 2x2. Most basic elementary things do not have to require hacking or knowledge of scoping. This is same sort of things, ... |
Topic: Find current directory |
DanRRight
Replies: 11
Views: 210
|
Forum: Support Posted: Wed Jan 25, 2023 8:18 am Subject: |
yea...this is obscure and is not a fun to hear for average programmer (and Fortran programming particularly with FTN95 supposed to be fun, isn't it?) . How about creating another such function which w ... |
Topic: Find current directory |
DanRRight
Replies: 11
Views: 210
|
Forum: Support Posted: Tue Jan 24, 2023 4:31 pm Subject: |
CURDIR@ is external??? Very anti-intuitive.
Should we declare now all Silverfrost function with @ as external?
Though may be formally we have to declare as external all of them if use them with ex ... |
Topic: Find current directory |
DanRRight
Replies: 11
Views: 210
|
Forum: Support Posted: Tue Jan 24, 2023 3:05 pm Subject: |
hack
But what's wrong with my code? I lost a half day with it again. Causing crashes, spurious diagnostics in different places... |
Topic: Find current directory |
DanRRight
Replies: 11
Views: 210
|
Forum: Support Posted: Tue Jan 24, 2023 12:27 pm Subject: Find current directory |
Anything wrong with this code ?
module mod1
character*256 CurrentDirectoryName, CURDIR@
contains
integer function aa()
CurrentDirectoryName = CURDIR@()
aa = 2
end functi ... |
Topic: UNDEF causing allocation problems |
DanRRight
Replies: 8
Views: 406
|
Forum: Support Posted: Tue Jan 10, 2023 5:58 am Subject: |
Thanks, Paul |
Topic: %ob changes shape/position as window is resized |
DanRRight
Replies: 24
Views: 831
|
Forum: ClearWin+ Posted: Sun Jan 08, 2023 9:28 pm Subject: |
Bill,
Respect to your video. Have you tried to add just this line with two controls before your %ob ?
i=winio@('%nd%nr&')
And because %ob also slides make it
%1.5ob[invisible].
Or ... |
Topic: Compiler does not flag error in assignment statement |
DanRRight
Replies: 5
Views: 412
|
Forum: Support Posted: Fri Jan 06, 2023 5:10 am Subject: |
Then in this specific case it is reasonable that FTN95 not following the crowd and not strictly supporting Standard. It is very natural for the compiler to adopt such a jargon, slang or idiomatic expr ... |
Topic: Compiler does not flag error in assignment statement |
DanRRight
Replies: 5
Views: 412
|
Forum: Support Posted: Thu Jan 05, 2023 4:38 pm Subject: |
How this demo example should be written to be correct?
Intuitively it looks OK. |
Topic: UNDEF causing allocation problems |
DanRRight
Replies: 8
Views: 406
|
Forum: Support Posted: Thu Jan 05, 2023 6:31 am Subject: |
Wow, this looks almost like a devilry !
I am probably the largest fan of UNDEF, this is the most important debug super-tool, i use it for 30+ years, and last several years with 64-bits. And so far ... |
Topic: UNDEF causing allocation problems |
DanRRight
Replies: 8
Views: 406
|
Forum: Support Posted: Wed Jan 04, 2023 7:17 pm Subject: |
John,
But does my code above crash or not?
It seems to me this is very strange crash. Several times lately i also have error reported many thousands of lines off its actual place.
I can not e ... |
Topic: UNDEF causing allocation problems |
DanRRight
Replies: 8
Views: 406
|
Forum: Support Posted: Tue Jan 03, 2023 7:57 pm Subject: UNDEF causing allocation problems |
This 64bit program allocates OK till whatever array size you want (0.4, 4, 40GB with nB=10^7, 10^8 etc) if compiled without /UNDEF but crashes at miniscule size when compiled with /UNDEF at nB > 9. ... |
|