[QODBC-Desktop] Activated ODBC Driver still saying Demo Expired in ADO.NET Multi-Threading Program
Posted by brad waddell on 12 March 2009 05:21 PM
Troubleshooting: Activated ODBC Driver still saying Demo Expired in ADO.NET Multi-Threading Program
I Installed a FlexODBC Driver and activated using the CDKEY. However, while I was trying to develop a multi-threading program in which multiple threads can read the database simultaneously, I got strange ODBC driver windows pop up saying "Demo Expired" and asking me to activate it again. Does that mean the driver does not support multi-threading or do I have to do some special things to use it under ADO.NET?
The way to get the component to behave correctly in ASP.net is to include that attribute, 'ASPCompat=True,' in the calling page's page directive. FlexODBC requires the use of the STA (single-threaded-apartment) threading model.
See also the MSDN .NET Framework Developer Center below: