Problem with KbmMemTable and MyDac 5.x and Utf8 databases

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Problem with KbmMemTable and MyDac 5.x and Utf8 databases

Post by snorkel » Thu 26 Apr 2007 15:28

Hi,
I had been using the Devexpress Memtable with my project and this worked with 4.x but when I moved to 5.x queries from a UTF8 database now bring back widememos which the Devexpress memtable can't handle it supports the widestrings OK, but not the wide memo. So I took a look at KbmMemtable which says it supports widestrings and widememos

When I load a query from a Mydac dataset to the KbmMemtable dataset it raises a exception (just on a UTF8 database, works fine on non UTF8)

The exception is raised on this line: 11539 (in KBmMemTable)
WideStringToBuffer(ws,@s[0]);

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 27 Apr 2007 08:32

Try to use the VirtualTable component of MyDAC it is installed on the Data Access tab by default.

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Post by snorkel » Fri 27 Apr 2007 15:40

Antaeus wrote:Try to use the VirtualTable component of MyDAC it is installed on the Data Access tab by default.
Thanks,

I tried the VirtualTable component and it did work with the widememo.

Snorkel

Post Reply