Knowledgebase
[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

Problem Description

I 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?

Solutions

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 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

(132 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please complete the captcha below (we use this to prevent automated submissions).