Page 1 of 1

Posting Blobs in DLL - Exeption: Invalid Type Casting

Posted: Wed 20 Sep 2006 09:49
by alf.krause
invalid typecasting while posting tables unsing TMyQuery with Blob-Fields (for instance Mysql Type text) from a dll. If i convert the Projekt to standalone exe it's work. It is also in the Sample My_dll from crlab


MyDac: 4.40.0.18

Borland® Developer Studio 2006
10.0.2288.42451 Update 2

Mysql 4.1.14 nt

THX

Alf

Posted: Thu 21 Sep 2006 14:03
by Antaeus
As we answered you by e-mail, problem occurs due to different instances of class types in exe and dll
modules. In other words, object with type TMyQuery created in exe has different class type than object with type TMyQuery created in dll. To make exe and dll module use the same instances please enable using
runtime packages:
check Project -> Options -> Packages -> "Build with runtime packages"
and add dac70 and mydac70 packages to list.