NetTalk Central

Author Topic: correct link/dll mode  (Read 6202 times)

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
correct link/dll mode
« on: March 17, 2017, 06:00:21 PM »
Hi,
For a multi-dll application, what are the correct values for link / dll mode?
Both in the datadll app. and the rest of the apps.

thank you
Ramiro M B

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: correct link/dll mode
« Reply #1 on: March 21, 2017, 03:11:39 AM »
Hi Ramiro,

NetTalk uses the ABCDLLMode and ABCLinkMode.
Is this app ABC?

cheers
Bruce


ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: correct link/dll mode
« Reply #2 on: March 21, 2017, 06:37:35 AM »
Hello Bruce
thanks for your answer.
Yes, the application is ABC and multi dlll, in addition, I use nettalk in 4 Dll including the DataDll I explain a little:
This app. was working finr with C8, then I upgraded it to C10 and I'm using NetTalk 8.71 basically Netsimple (client and webclient classes)
The problem is that the app. fails at the end of each thread (all use NetTalk or not), generates an exception error, and I went through the process of checking my code at the beginning of the program, especially the string slicing and values out of range, I used the debugger but it does not give much information, except that the exception is generated after ClaRun makes a call stack and before there are some call stack of ClaNet, in the forum of SV I was told That probably the exception is related to the link mode for nettalk, I transcribe the commentary of Diego Borojovich:
"There is not much information on the screen you post.
My educated guess is that you have wrong the link/dll mode settings for nettalk
in one of the multi dll app, posible the datadll.
Other than that check if you have their last version or how to set it up on a
multi dll app.
Usually a bad link mode fail on the thread start up, but I never saw the
nettalk cade to see if it properly coded."

Attach image of exception log file
Thank you very much for the support.
Ramiro

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: correct link/dll mode
« Reply #3 on: March 22, 2017, 02:38:38 AM »
Hi Ramiro,

Diego is not wrong in the sense that if the DLL mode is wrong then you could get an error - although typically at the start of the thread, not the end.

alas, since NetTalk uses the ABC defines it's not the root of your problem in this case.

the C00005 error is typical though for using a DLL from the wrong version of Clarion.
So that's where I'd start. Check the app folder to make sure all the DLL's are there, and then check the dates of the DLL's to see if there's anything that looks "out of touch".

Also check the solution for "old" LIB's that might still be included there from before. Anything "left behind" in there can cause issues.

Next I'd cover the bases - run examples from whatever products are in your app to see if they work ok. ie a NetTalk example or two. that might help narrow it down.

Cheers
Bruce


ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: correct link/dll mode
« Reply #4 on: March 22, 2017, 11:02:37 AM »
Thanks Bruce,
I will follow your recommendations.
regards
Ramiro

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: correct link/dll mode
« Reply #5 on: March 22, 2017, 05:31:27 PM »
Bruce,
You were right, the problem was not NetTalk
Many thanks for your help, finally the problem was solved, the cause: a LIB with source code that is part of a DLL had not been compiled with C10
best regards
Ramiro