Skip to main content

I got error 114 when accessing a linkage item in some rare conditions item, setup is like this

In first_program.exe I have link-rec i working storage. 01 link-rec is external by "EXTLINK"

in second_program.dll i have it in linkage section. 01 link-rec.

Every called program is passed using link-rec.

I have listview programs with callback set up,
here the declaration is 01 link-rec is external by "EXTLINK" in working-storage section

When event vertical scroll fires I need to fill data and call my second_program.dll using link-rec.

in second_program.dll when accessing link-rec item I get signal 11 (114) linkagr record not assigned, the call to second_program comes frpm guibase->entrycll.

Any suggestions?


#Externallinkage114signal_11

I got error 114 when accessing a linkage item in some rare conditions item, setup is like this

In first_program.exe I have link-rec i working storage. 01 link-rec is external by "EXTLINK"

in second_program.dll i have it in linkage section. 01 link-rec.

Every called program is passed using link-rec.

I have listview programs with callback set up,
here the declaration is 01 link-rec is external by "EXTLINK" in working-storage section

When event vertical scroll fires I need to fill data and call my second_program.dll using link-rec.

in second_program.dll when accessing link-rec item I get signal 11 (114) linkagr record not assigned, the call to second_program comes frpm guibase->entrycll.

Any suggestions?


#Externallinkage114signal_11

Sorry Lars, I believe that I unintentionally deleted your reply that you found the problem in your called program that it did not have the linkage section item specified. I am still getting used to the new forum.

I just wanted to add that when you have a data item defined as EXTERNAL in working-storage, then you can share this data item between programs in a run-unit simply by declaring it with the same name and the EXTERNAL clause in the other programs. They will then be referring to the same storage location.

There is no need to pass this data item in linkage to other programs and in fact if the same data item is defined in linkage without the EXTERNAL clause as you specify it will actually be referring to a completely different data item.

Thanks.


I got error 114 when accessing a linkage item in some rare conditions item, setup is like this

In first_program.exe I have link-rec i working storage. 01 link-rec is external by "EXTLINK"

in second_program.dll i have it in linkage section. 01 link-rec.

Every called program is passed using link-rec.

I have listview programs with callback set up,
here the declaration is 01 link-rec is external by "EXTLINK" in working-storage section

When event vertical scroll fires I need to fill data and call my second_program.dll using link-rec.

in second_program.dll when accessing link-rec item I get signal 11 (114) linkagr record not assigned, the call to second_program comes frpm guibase->entrycll.

Any suggestions?


#Externallinkage114signal_11

I normally use procedure using to explicitly pass desired data. The exeption to this is when I get a callback to an entry-point  from a rts-sub. In those program oo-listview, oo-treview etc I haven't link-rec included in linkage-section but by external. An thus I can pass it by with call xx using link-rec.

Thanks Chris.

ps, how come my (now deleted soloution) and your reply apper twice?


I got error 114 when accessing a linkage item in some rare conditions item, setup is like this

In first_program.exe I have link-rec i working storage. 01 link-rec is external by "EXTLINK"

in second_program.dll i have it in linkage section. 01 link-rec.

Every called program is passed using link-rec.

I have listview programs with callback set up,
here the declaration is 01 link-rec is external by "EXTLINK" in working-storage section

When event vertical scroll fires I need to fill data and call my second_program.dll using link-rec.

in second_program.dll when accessing link-rec item I get signal 11 (114) linkagr record not assigned, the call to second_program comes frpm guibase->entrycll.

Any suggestions?


#Externallinkage114signal_11

I had to ask about the duplicating behavior myself as this is what led me to accidently delete your post. Apparently this is working as designed. There is one post that appears in sequence and another that is moved to the top of the thread just below the question because it is a “verified” response. Instead of moving the answer, it duplicates it so the verified answer appears in the proper place in the string of posts. It appears confusing in these short threads that only have a single response but it would be useful if it was a longer thread that went on for several pages, If that makes sense.