Jeff Costanzo writes:
> with this code:
> 
> Query myQuery = pDatabase->query();
> myQuery << "Select * from repdata";
> myQuery.store();
> 
> I get an
> Debug Assertion Failed
> in file dbgheap.c
> line 1017
> Expression: _BLOCK_TYPE_IS_VALIDE(pHead->nBlockUse)
> 
> pDatabase is a pointer to a connection object.
> I am connected to the database and there is no problem with the query, I
> have run it on MySQL administrator with out any errors
> 
> Please help me understand what is causing this error.
> 
> Thanks
> 

Hi!

Please first of all check the size of the table. You should use
store() only for result sets that can fit into memory.

But your problem is quite different. You forgot to use Result class:


Result some = myQuery.store();

-- 
Regards,
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
       <___/   www.mysql.com


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to