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

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 the STA (single-threaded-apartment) threading model.

See also the MSDN .NET Framework Developer Center 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).