[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 ProgramProblem DescriptionI Installed a FlexODBC Driver and activated using the CDKEY. However, while I was trying to develop a multi-threading program which multiple threads are able to read database simultaneously, I got strange ODBC driver windows pop up saying "Demo Expired" and ask me to activate again. Does that mean the driver does not support multi-threading or I have to some special things for using it under ADO.NET? SolutionsThe 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 STA (single-threaded-apartment) threading model. See also the MSDN .NET Framework Developer Center as below: http://msdn2.microsoft.com/en-us/library/system.stathreadattribute.aspx | |
|