![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
MATREAD COST.TYPE.TABLE.ITEM FROM COST.TYPE.TABLE.FILE, "E" END ELSE MAT COST.TYPE.TABLE.ITEM = '' |
#3
| |||
| |||
|
|
After further investigation and a little tweaking, I have come to the conclusion that the issue is to do with the NUMBER of calls to the subroutine and not the complexity of the subroutine. |
#4
| |||
| |||
|
|
On Feb 24, 9:15*am, "ni... (AT) removethisgreatgulfhomes (DOT) com" chicod... (AT) gmail (DOT) com> wrote: After further investigation and a little tweaking, I have come to the conclusion that the issue is to do with the NUMBER of calls to the subroutine and not the complexity of the subroutine. I just ran a simple set of tests calling a subroutine up to 20,000 times without any problems on D3/NT 7.5.3 In one test, I passed a file variable to the subroutine which was used by the subroutine to read an item from the associated file. In a second test, I actually opened the file each time within the subroutine and read an item. No problems in either situation. -- Kevin Powick |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
* *NH1 $INCLUDE INCLUDE-FILE COST-TYPE-TABLE |
#7
| |||
| |||
|
|
On Feb 24, 1:47*pm, "ni... (AT) removethisgreatgulfhomes (DOT) com" chicod... (AT) gmail (DOT) com> wrote: * *NH1 $INCLUDE INCLUDE-FILE COST-TYPE-TABLE Hi Niall, Why not just post a straight code sample that causes the problem without any $INCLUDE statements so that others can simply copy/paste your example? *As you know, $INCLUDE serves no runtime purpose. -- Kevin Powick |
#8
| |||
| |||
|
|
* * It's not the INCLUDE that's the problem |
|
the following straight open and read produces the same error : |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
It's clearly to do with the subroutine code XX = @USER. Removing that code stopped the error. I don't know how @Functions are resolved internally to D3... |
|
, but something has gone wonky between releases. |
![]() |
| Thread Tools | |
| Display Modes | |
| |