Modify

Opened 10 years ago

Closed 10 years ago

#873 closed Bug (No Bug)

DLLCall crashes when characters \\.\ in parameters

Reported by: helmut.hiller@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: DLLCall Crash Cc:

Description

Hi,

tried to use DLLCall as follws:

$hdl = DllCall($drv,"int","ldv_open","str","
.\LegacyMIP12","int_ptr","LdiUSB_000-004")

The script crashes, it seems it depends at characters
.\

That worked in older versions. I have created the script two years ago without problems. Now would add some functions and have seen this problem.

I'm using Autoit V3.3.0.0 under Vista Sp1 x86

I attach you the dll which I'm using.

Thanks and BR Helmut

Attachments (1)

ldv32_xx.dll (36.5 KB) - added by helmut.hiller@… 10 years ago.
DLL for LonWorks driver

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by helmut.hiller@…

DLL for LonWorks driver

comment:1 Changed 10 years ago by TicketCleanup

  • Milestone 3.3.1.0 deleted
  • Severity changed from Blocking to None

Automatic ticket cleanup.

comment:2 Changed 10 years ago by Jos

Should the line read?
$hdl = DllCall($drv,"int","ldv_open","str","
.\LegacyMIP12","int*",0)

The last parameter is described as:

Syntax: LDVCode ldv_open(LPCSTR id, short* handle)
Element Description
'''id:''' Identify the network interface to establish communication with by specifying its name as the id input parameter. For example, “x.Default.1MainStreet” could be used to identify an i.LON 10 that will be opened through xDriver. Or, “LON1” could be used to identify a PCLTA-10 or PCLTA-20 network interface.
'''handle:''' This output parameter will contain a pointer to a short integer that you will use to identify the network interface with the other OpenLDV functions. This handle is only valid if the function returns LDV_OK.

comment:3 follow-up: Changed 10 years ago by helmut.hiller@…

Hi,

now works different from older versions, but works.

when I use:

$hdl = DllCall($drv,"short","ldv_open","str","
.\LegacyMIP12","short*","LdiUSB_000-004")

can open the driver to the device, send and receive messages.

It,s not the original openLDV, it's the one for LOYTEC devices.

BR Helmut

comment:4 in reply to: ↑ 3 Changed 10 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

Replying to helmut.hiller@…:

now works different from older versions, but works.

Gee, I wonder if reading the changelog and in particular the script-breaking changes portion would tell you that?

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.