Page 1 of 1

Assertion failure in memdata.pas

Posted: Thu 03 Aug 2006 15:55
by Guest
hi

getting this error, using 4.30.1.17. any hint for me what this error means.


---------------------------
Benachrichtigung über Debugger-Exception
---------------------------
Im Projekt scm.exe ist eine Exception der Klasse EAssertionFailed aufgetreten. Meldung: 'Assertion failure (D:\Projects\Delphi\Dac\Source\MemData.pas, Zeile 2362)'. Prozess wurde angehalten. Mit Einzelne Anweisung oder Start fortsetzen.
---------------------------
OK Hilfe
---------------------------

thanks
stefan

Posted: Fri 04 Aug 2006 07:14
by Ikar
We couldn't reproduce the problem.
Please send us (mydac*crlab*com) a complete small sample to demonstrate it, including script to create and fill table.

Also supply us following information
- Exact version of Delphi, C++ Builder or Kylix
- Exact version of MyDAC. You can see it in About sheet of TMyConnection Editor
- Exact version of MySQL server and MySQL client. You can see it in Info sheet of TMyConnection Editor

Posted: Mon 21 Aug 2006 06:47
by Guest
I just started receiving the same error - and it's a sporadic thing, does not always happen on the same records etc... It's quite impossible to make a small example to reproduce an error, as my project is huge -
and I still do not know what trips it over to cause that error.

Can you please have a look in your code if there's any size limitations, maybe some buffers....

Posted: Tue 22 Aug 2006 14:33
by Antaeus
This Assert snaps into action when trying to read string from a field and pointer to this string in heap equals to nil. Unfortunately we do not have enough information to determine why this problem does happen.

Assertion Failure

Posted: Wed 06 Sep 2006 07:46
by koojay
Assertion failure (D:\Projects\Delphi\Dac\Source\MemData.pas, line 5204)

This happens after I first assign an sql insert statement to TMyQuery object, then call insert and refresh. The failure happens at refresh, the insert is successful, however...

BR,
Kalle

Posted: Wed 06 Sep 2006 10:59
by Antaeus
koojay, please specify some things about your environment:
- Exact version of Delphi, C++ Builder or Kylix
- Exact version of MyDAC. You can see it in About sheet of TMyConnection Editor
- Exact version of MySQL server and MySQL client. You can see it in Info sheet of TMyConnection Editor

Posted: Wed 06 Sep 2006 15:48
by koojay
I have delphi 2005 (Borland developer studio 9.0.1761.24408)
MyDAC version 3.50.0.16 for Delphi 9
MySQL server 4.1.9-nt
MySQL client version: 4.1.3 Direct

The problem went away by calling post between insert and refresh, wich I probably should have done in the first place. Strange error message though.

regards,
Kalle

Posted: Thu 07 Sep 2006 10:46
by Antaeus
The build of MyDAC you use has similar problem. Try to download latest build of MyDAC 3 (3.55.0.26) from registered user's area of our site.