NetTalk Central

Author Topic: No matching prototype error  (Read 6283 times)

dbourrut

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
No matching prototype error
« on: July 30, 2009, 11:22:41 AM »
I'm getting an error No matchine prototype available error on this generated code:
Dictionary.Construct PROCEDURE

  CODE
  IF THREAD()<>1
     DctInit()
  END

The error message is pointing to the blank line above the word CODE.

Any ideas what could be causing this?

Thanks,

Drew

dbourrut

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: No matching prototype error
« Reply #1 on: July 30, 2009, 11:26:53 AM »
I miss read the error line. It is pointing to the last line in this:
Dictionary.Destruct PROCEDURE

  CODE
  DctKill()

That is, the DctKill() which is generated.

Still wondering what to do.

Thanks,

Drew

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: No matching prototype error
« Reply #2 on: July 31, 2009, 07:05:25 AM »
Hi Drew,

Not sure what you've done to get this. It's unrelated I think to NetTalk.
the app is ABC - does it have a dict? I guess debug it in the normal way - ie
look for DCTKILL, make sure it's in scope, and so on.

Cheers
Bruce


dbourrut

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: No matching prototype error
« Reply #3 on: July 31, 2009, 12:19:44 PM »
Well now I know exactly what I've done but I sure don't know how to fix it.

I have a dictionary that I wanted to use for my test. But my dictionary has about 50 files in it. I wanted to use one of mine plus your files. So I did the following:
1. As I said I exported your dictionary to text and imported it into mine.
2. I changed the app to use my dictionary.
3. And this is the key, I then went to the Global Properties Actions File tab and I unchecked the Generate all files checkbox. Then I went to the file overrides tab and turned on generations for all your files plus my one file.

This last step is what is causing the problem. Do you have an idea of how to get around that?

Thanks,

Drew

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: No matching prototype error
« Reply #4 on: August 02, 2009, 09:19:13 AM »
I'd need to see your app & dict Drew in order to say.
Feel free to email them to me.

Cheers
Bruce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: No matching prototype error
« Reply #5 on: August 04, 2009, 11:27:56 PM »
Hi Drew,

got the Example - thanks. You didn't mention it was in Clarion 7. Probably a good idea in future <g>.

The root of your problem is that there's a bug in the C7 IDE which is taking you to the wrong module. If you look at the error you'll see it says line 214 of file web7_Bc0.CLW. But if you click on the error it takes you to like 214 of web7.clw. This is where you got confused <g>.

line 214 of web7_BC0.clw refers to the cptClients file, which is not being generated in your app. It's related to cptCLog which is being generated because you've told it to generate (Individual File Overrides.) Had you added it to the "Other tables" of a procedure it would have generated both cptClog, and all the files dependant on cptClog.

With your permission I'd like to forward the example on to SV to show the original issue - which is the click-on-error opening the wrong CLW file.

Cheers
Bruce

dbourrut

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: No matching prototype error
« Reply #6 on: August 05, 2009, 06:17:17 AM »
Bruce,

Thank you and by all means let SoftVelocity know. Feel free to pass my stuff on to them.

Drew