Page 1 of 1

DatabaseError() to be specific...

Posted: Tue Jan 15, 2013 6:38 am
by jassing
When working with threaded programs, it would be nice if there was a way to track databseerror() a bit better.
if two threads perform a query, and one errors out, you don't know which thread is the one from DatabaseError() is referencing.

Since things like DatabaseUpdate() and DatabseQuery() don't return a file handle, it would make it hard to track; and using mutex's defeats the purpose of the threads... Especially if they are working on completely different databases... So no idea on best way to deal with; but someway would be better...
(iow I have no idea how to implement it, but fetching the error specific to a call would be better than getting it for "some call")

Re: DatabaseError() to be specific...

Posted: Tue Jan 15, 2013 11:36 am
by Fred
DatabaseError() is already thread specific, so what is the issue ?

Re: DatabaseError() to be specific...

Posted: Tue Jan 15, 2013 1:02 pm
by infratec

Code: Select all

MessageRequester("Error", "Thread X: " + DatabaseError())