AssignConnect - Access violation and / or garbage data

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
SMM
Posts: 9
Joined: Mon 15 Jul 2013 23:02

AssignConnect - Access violation and / or garbage data

Post by SMM » Mon 15 Jul 2013 23:06

Hi All

I am using Unidac in an app that has a host app, and a bunch of .bpl plugins. (I am using REM Hydra). When I use the AssignConnect message, I either get a access violation, or it works, and then when I open my query, I get random Unicode characters with a message to the effect that these strings are not understood by the server.

Unidac 5.01
Delphi XE4

S

AndreyZ

Re: AssignConnect - Access violation and / or garbage data

Post by AndreyZ » Tue 16 Jul 2013 07:40

Hello,

Please specify the exact database server (for example, Oracle, SQL Server, etc.) you are working with.

SMM
Posts: 9
Joined: Mon 15 Jul 2013 23:02

Re: AssignConnect - Access violation and / or garbage data

Post by SMM » Tue 16 Jul 2013 12:02

Sorry, I am using PostgreSQL 9.1.9

DemetrionQ
Devart Team
Posts: 271
Joined: Wed 23 Jan 2013 11:21

Re: AssignConnect - Access violation and / or garbage data

Post by DemetrionQ » Tue 16 Jul 2013 15:41

Hello.

Thank you for the information. We have reproduced the issue, and we are investigating it. We'll do our best to add the fix in the next build.

DemetrionQ
Devart Team
Posts: 271
Joined: Wed 23 Jan 2013 11:21

Re: AssignConnect - Access violation and / or garbage data

Post by DemetrionQ » Fri 26 Jul 2013 13:16

We have fixed the issue. We will add the fix in the next build.

SMM
Posts: 9
Joined: Mon 15 Jul 2013 23:02

Re: AssignConnect - Access violation and / or garbage data

Post by SMM » Fri 16 Aug 2013 23:49

Any chance I can get a patch in the meantime? This is holding up a project I am working on.

Thnx.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: AssignConnect - Access violation and / or garbage data

Post by AlexP » Mon 19 Aug 2013 10:49

Hello,

If you have a version with source code, you should add the following changes to the PgClassesUni.pas module:
in the TPgSQLConnection.AssignConnect method

replace

Code: Select all

FConnected := True;
with

Code: Select all

FConnected := FProtocol <> nil;
If you have no sources, please send us your license number and e-mail to alexp*devart*com in order for me to send you the fixed version of UniDAC. Also, please specify your version of the IDE.

SMM
Posts: 9
Joined: Mon 15 Jul 2013 23:02

Re: AssignConnect - Access violation and / or garbage data

Post by SMM » Fri 23 Aug 2013 17:32

Hi Alex

I have mailed you twice since this was posted, have you got them?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: AssignConnect - Access violation and / or garbage data

Post by AlexP » Tue 27 Aug 2013 08:50

Hello,

I have sent you the fixed UniDAС once more. Please check your mail and spam filter. Your spam filter may not allow letters with attachments

Post Reply