NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Wolfgang Orth on February 21, 2020, 09:02:40 AM

Title: WebClient.CreateAuthorizationStringVapid with a duplicated label
Post by: Wolfgang Orth on February 21, 2020, 09:02:40 AM
Hello Bruce and all others,

while converting a Client from Nettalk 9.30 to 11.29 (on Clarion 11.0.13401), I ran into this warning:

Label duplicated, second used: PKEY - D:\Projekte\KiK_5\KiKAdmin\KiKAdmin012.clw:1744,51

which is pointing to

WebClient.CreateAuthorizationStringVapid PROCEDURE(String pAudience,String pSub,Long pExp,String pKey,String pPublicKey)

ReturnValue          ANY

  CODE
  ReturnValue = PARENT.CreateAuthorizationStringVapid(pAudience,pSub,pExp,pKey,pPublicKey)
  RETURN ReturnValue

Does this have anything to do with what Don Ridley mentioned here?
http://www.nettalkcentral.com/forum/index.php?topic=8327.msg33914#msg33914

In case this is relevant, this program is not using ABC, but Clarion-chain templates. (man, that sucks!)

The good news is, that the EXE compiles ... but crashes, when run:

Index out of range
Error point: 00441B12
Process PID=3704  Image: D:\Projekte\KiK_5\KiKAdmin\KiKAdmin.exe
Thread 1  Handle=00000284  TID=8424

Stack frame: 0019F928

Call Stack:
00441B12
00449C43
00469C1B
00497B9F
0049D335
00469877
00468FAC
010CD8F7
010CD3E1

Clarion modules:
01000000  11.00:13401 D:\Projekte\KiK_5\KiKAdmin\ClaRUN.dll
001D0000  11.00:13401 D:\Projekte\KiK_5\KiKAdmin\ClaASC.dll
007C0000  11.00:13401 D:\Projekte\KiK_5\KiKAdmin\ClaDOS.dll
02330000  11.00:13244 D:\Projekte\KiK_5\KiKAdmin\ClaMEM.dll
13000000  11.00:13147 D:\Projekte\KiK_5\KiKAdmin\CLAnet.dll
00790000  11.00:13401 D:\Projekte\KiK_5\KiKAdmin\ClaTPS.dll
00400000  11.00:13401 D:\Projekte\KiK_5\KiKAdmin\KiKAdmin.exe

Thread stack:
0019F920: 97 1F 0C 01  00 00 00 00  60 F9 19 00  12 1B 44 00
0019F930: 00 00 00 00  E8 5B FF 01  00 00 00 00  00 00 00 00
...
...
...

Thanks
Wolfgang
Title: Re: WebClient.CreateAuthorizationStringVapid with a duplicated label
Post by: Jane on February 21, 2020, 01:00:09 PM
Wolfgang,

The NT history shows the error Don Ridley was reporting was fixed in 11.23.
Title: Re: WebClient.CreateAuthorizationStringVapid with a duplicated label
Post by: Bruce on February 21, 2020, 10:14:08 PM
the duplicate warning has been fixed for 11.30 - but isn't causing the GPF.

First thing you need to do with the GPF is post a complete GPF report. See
https://clarionhub.com/t/how-to-improve-the-call-stack-when-your-program-gpfs/188
Title: Re: WebClient.CreateAuthorizationStringVapid with a duplicated label
Post by: Wolfgang Orth on February 23, 2020, 08:41:42 AM
the duplicate warning has been fixed for 11.30 -

I worked around that for now by changing pKey to pPrivateKey, works well.

but isn't causing the GPF.

True!

First thing you need to do with the GPF is post a complete GPF report. See
https://clarionhub.com/t/how-to-improve-the-call-stack-when-your-program-gpfs/188

I did not know that. This hint was very helpful. The GPF happened so early, even GPFreporter did not kick in. But now I found the culprit.

It was INSTRING()!

The source in my APP worked well for several years with Clarion 9 & 10, but now, after converting to Clarion 11, the EXE crashes. The difficult part was to find the error, since I did not suspect INSTRING() to tilt. But once found, I fixed my code now. Conversion is always a kind of improvement. So all is fine now.

Looking forward to 11.30 though.

Thanks all
Wolfgang