Page 1 of 1

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

Posted: Tue 14 Oct 2008 20:37
by Coral
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

Posted: Thu 16 Oct 2008 05:55
by Challenger
We could not reproduce this problem. Please try to compose a small sample to reproduce the problem.