Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » SQL statment in constructor make program crash
SQL statment in constructor make program crash [message #17819] Fri, 29 August 2008 22:50 Go to next message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

hello all

when i put this code in a window constructer
SQL*Select(UPLOADED_FILE_ID,UPLOADED_FILE_NAME).From(UPLOADED_FILES);
	
	while(SQL.Fetch())
	{
		list_files.Add(SQL[0],SQL[1]);
	}

the program crash and shows the error message with send report to microsoft or don't send

but when i putted this code in a afunction that is callbacked when i click a button the program works well also when i click the button and callback the function the program continue normally
Re: SQL statment in constructor make program crash [message #18029 is a reply to message #17819] Sun, 07 September 2008 11:22 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
TeCNoYoTTa wrote on Fri, 29 August 2008 16:50

hello all

when i put this code in a window constructer
SQL*Select(UPLOADED_FILE_ID,UPLOADED_FILE_NAME).From(UPLOADED_FILES);
	
	while(SQL.Fetch())
	{
		list_files.Add(SQL[0],SQL[1]);
	}

the program crash and shows the error message with send report to microsoft or don't send

but when i putted this code in a afunction that is callbacked when i click a button the program works well also when i click the button and callback the function the program continue normally


Are you sure SQL is connected?

Mirek
Previous Topic: U++ SQL Begginer
Next Topic: Can not get a double from database
Goto Forum:
  


Current Time: Sat Apr 27 15:27:44 CEST 2024

Total time taken to generate the page: 0.92753 seconds