NetTalk Central

Author Topic: NetSimple.Open causes Access Violation  (Read 9782 times)

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
NetSimple.Open causes Access Violation
« on: February 11, 2014, 03:39:20 AM »
Hi,

I'm not sure where in the process of changes on my laptop this started occurring. I have a NetSimple variable on a procedure that is a client object. When it calls the Open method, it throws an Access Violation error. This is fairly new behaviour as it has been working for a long time - only recently did this come up.

Any ideas where to look at?

NetTalk 7.34 (confirmed also on recent versions)
Clarion 9.0
Windows 8.1

Thys

[attachment deleted by admin]

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: NetSimple.Open causes Access Violation
« Reply #1 on: February 11, 2014, 05:32:03 AM »
...needless to say that the server and port parameters are populated correctly when the Open method is called.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetSimple.Open causes Access Violation
« Reply #2 on: February 11, 2014, 10:53:49 PM »
have you got the Stringtheory global extension in the app? Are the settings on the Mutl-DLL tab of the StringTheory extension correct?

cheers
Bruce

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: NetSimple.Open causes Access Violation
« Reply #3 on: February 11, 2014, 11:12:59 PM »
Hi Bruce.

Yes StringTheory is in the app and the Multi-DLL setting "This is part of a Multi-DLL program" does not compile when switched on.

Thanks

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetSimple.Open causes Access Violation
« Reply #4 on: February 11, 2014, 11:39:02 PM »
if this is part of a multi-app suite ( a "Multi dll" program") then add stringtheory to the data dll, and set multi-dll settings in both apps appropriately.

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: NetSimple.Open causes Access Violation
« Reply #5 on: February 12, 2014, 08:13:10 AM »
Hi Bruce.

No, there is only one app in the solution. And the only 3rd party templates are NetTalk and StringTheory. I'm also using the Version Resource template.

Thanks

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: NetSimple.Open causes Access Violation
« Reply #6 on: February 13, 2014, 03:26:11 AM »
Here is the GPF Reporter information again - this time the EXE was properly compiled in debug mode.

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetSimple.Open causes Access Violation
« Reply #7 on: February 13, 2014, 05:47:51 AM »
Is the call to .Open perhaps before the call to .Init?

Also make sure the correct version of the NetTalk DLL is in the application folder.


Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: NetSimple.Open causes Access Violation
« Reply #8 on: February 13, 2014, 06:39:11 AM »
Hi Bruce.

No, I wish it was before Init - then it would all make sense.

I copied the NetTalk DLL from the "C:\Program Files (x86)\SoftVelocity\Clarion9\accessory\bin" folder myself, although the project is set up to do it automatically. On the file's details tab it does have 7.34 as the product version although I see in the GPF Reporter's text that it is said to be a build for "Clarion 9 beta". I also checked for duplicate versions of this file elsewhere and could not find any.

Thanks

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetSimple.Open causes Access Violation
« Reply #9 on: February 13, 2014, 09:48:12 PM »
I'm out of ideas. Is it only happening to this window in the app? If so then I guess try and determine what makes this window different to the rest. What I usually do is try and duplicate the effect in a separate example - and if that works ok then I compare the 2 procedures. If it fails then you have an example to send me for testing here.

cheers
Bruce

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: NetSimple.Open causes Access Violation
« Reply #10 on: February 13, 2014, 11:11:20 PM »
OK, I will try some of that.

Thanks

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: NetSimple.Open causes Access Violation
« Reply #11 on: February 14, 2014, 04:20:15 AM »
Bruce,

I managed to fix the problem, thanks for you time. Here's what happened.

The following items did not fix the problem:
  • Uninstalled NetTalk, cleaned everything and install again
  • Move code to another procedure

I did manage to get it working is a small new app, so it showed that the NetTalk installation does work. So as a last resort (before reinstalling Clarion...) I exported the APP to text and imported into a new APP. That solved it. It does indicate that some inconsistency in Clarion had caused this.

Thys