Home » U++ Library support » U++ SQL » SQLCommander make program crash
Re: SQLCommander make program crash [message #17678 is a reply to message #17664] |
Mon, 25 August 2008 18:07   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
TeCNoYoTTa wrote on Mon, 25 August 2008 04:49 | strange
when i commented this function ( i mean commented it's call in constructor)
void CISL::droplist_change()
{
text_title.SetText(droplist_subject.Get().ToString() +"-"+ droplist_type.Get().ToString());
SQL*Select(ITEM_ID,ITEM_TITLE,ITEM_AUTHOR
,Count(Select(SqlAll()).From(FILES).Where(FILE_ITEM_ID == ITEM_ID && IS_DOWNLOADED == true))
,Count(Select(SqlAll()).From(FILES).Where(FILE_ITEM_ID == ITEM_ID))).GroupBy(ITEM_ID,ITEM_TITLE,ITEM_AUTHOR);
while (SQL.Fetch())
{
list_items.Add(SQL[0],SQL[1],SQL[2],(SQL[3].ToString()+"/"+SQL[4].ToString()));
}
}
code worked
|
Usually, the error is a sign that you are trying to Fetch after errornous SQL.
I recommend you to activate log ("SetTrace") and check it after the crash.
Mirek
|
|
|
Goto Forum:
Current Time: Fri Aug 15 12:14:47 CEST 2025
Total time taken to generate the page: 0.17816 seconds
|