Error: "Invalid class typecast" on External DLL, CB6

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Coral
Posts: 6
Joined: Wed 27 Jun 2007 13:21
Location: Barueri - SP - Brazil

Error: "Invalid class typecast" on External DLL, CB6

Post by Coral » Tue 14 Oct 2008 20:37

Hi,
we have recently upgraded MyDAC to 5.55.0.39 and recompiled all executables.
All applications are working well but a DLL that is used by this programs.
This DLL had been recompiled with the new version of MyDAC too.
The MyTable´s Open() method throws the following error:

---------------------------
Debugger Exception Notification
---------------------------
Project xxxxx.exe raised exception class EInvalidCast with message 'Invalid class typecast'. Process stopped. Use Step or Run to continue.
---------------------------
OK Help
---------------------------

This error only occurs with MyTable, MyQuery, with a SQL that returns the equivalent data, works well.
We have everything updated here. C++Builder,Windows,MyDAC etc.
I have read some questions in this forum that are related to this problem, but in older versions of MyDAC.
I dont know if this is the same problem.

Heres my environment:
Windows XP (all updated)
C++ Builder 6 (all updated)
MyDAC 5.55.0.39
MySQL Server version 5.0.41

Please, ask me if you need any other information.

Thanks.

Ricardo Bueno
Barueri - SP - Brazil

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Thu 16 Oct 2008 05:55

We could not reproduce this problem. Please try to compose a small sample to reproduce the problem.

Post Reply