Click here to Skip to main content
15,925,723 members
Home / Discussions / C#
   

C#

 
AnswerRe: Outlook sync component? Pin
Heath Stewart28-Sep-04 13:12
protectorHeath Stewart28-Sep-04 13:12 
GeneralC# COM object to TLB generation problem Pin
Werdna28-Sep-04 10:35
Werdna28-Sep-04 10:35 
GeneralRe: C# COM object to TLB generation problem Pin
Heath Stewart28-Sep-04 15:41
protectorHeath Stewart28-Sep-04 15:41 
GeneralRe: C# COM object to TLB generation problem Pin
Werdna28-Sep-04 16:00
Werdna28-Sep-04 16:00 
GeneralRe: C# COM object to TLB generation problem Pin
Heath Stewart28-Sep-04 18:34
protectorHeath Stewart28-Sep-04 18:34 
GeneralRe: C# COM object to TLB generation problem Pin
Werdna29-Sep-04 4:33
Werdna29-Sep-04 4:33 
GeneralRe: C# COM object to TLB generation problem Pin
Heath Stewart29-Sep-04 5:51
protectorHeath Stewart29-Sep-04 5:51 
GeneralRe: C# COM object to TLB generation problem Pin
Werdna29-Sep-04 6:17
Werdna29-Sep-04 6:17 
I see. thanks.

Do you know if there are any restrictions on types you can use within .net COM client?

I have my C# class do:
new SqlConnection(connectionstring)

and it throws access violation exception:

Error Msg: System.TypeInitializationException: The type initializer for 'System.
Data.SqlClient.SqlConnectionFactory' threw an exception. ---> System.TypeInitial
izationException: The type initializer for 'System.Data.SqlClient.SqlPerformance
Counters' threw an exception. ---> System.AccessViolationException: Attempted to
read or write protected memory. This is often an indication that other memory h
as been corrupted.
at System.Data.ProviderBase.DbConnectionPoolCounters.GetInstanceName()
at System.Data.ProviderBase.DbConnectionPoolCounters.InitCounters(String cate
goryName, String categoryHelp)
at System.Data.SqlClient.SqlPerformanceCounters..ctor()
at System.Data.SqlClient.SqlPerformanceCounters..cctor()
--- End of inner exception stack trace ---
at System.Data.SqlClient.SqlConnectionFactory..ctor()
at System.Data.SqlClient.SqlConnectionFactory..cctor()
--- End of inner exception stack trace ---
at System.Data.SqlClient.SqlConnection..ctor()
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)


When I use my client thru C#, it's all fine. My C++ COM clinet is very simple for the test case, it just creates COM object and calls one method with no parameters and no return values (I did that to see if it was some memory problem in C++ client).

GeneralToolBar That Doesn't Move Pin
MarkMokris28-Sep-04 10:04
MarkMokris28-Sep-04 10:04 
GeneralRe: ToolBar That Doesn't Move Pin
Brian Nottingham28-Sep-04 10:28
Brian Nottingham28-Sep-04 10:28 
GeneralRe: ToolBar That Doesn't Move Pin
MarkMokris28-Sep-04 10:44
MarkMokris28-Sep-04 10:44 
General"Independent Display" Pin
monkeymonkey00728-Sep-04 7:11
monkeymonkey00728-Sep-04 7:11 
GeneralRe: "Independent Display" Pin
Christian Graus28-Sep-04 11:50
protectorChristian Graus28-Sep-04 11:50 
GeneralA C# / SQL Query Problem Pin
cemlouis28-Sep-04 6:51
cemlouis28-Sep-04 6:51 
GeneralRe: A C# / SQL Query Problem Pin
Christian Graus28-Sep-04 11:51
protectorChristian Graus28-Sep-04 11:51 
GeneralRe: A C# / SQL Query Problem Pin
Colin Angus Mackay28-Sep-04 12:19
Colin Angus Mackay28-Sep-04 12:19 
GeneralRe: A C# / SQL Query Problem Pin
cemlouis28-Sep-04 14:01
cemlouis28-Sep-04 14:01 
GeneralKeep a Form on Top Pin
MarkMokris28-Sep-04 6:22
MarkMokris28-Sep-04 6:22 
GeneralRe: Keep a Form on Top Pin
Nnamdi Onyeyiri28-Sep-04 6:33
Nnamdi Onyeyiri28-Sep-04 6:33 
GeneralRe: Keep a Form on Top Pin
Anonymous28-Sep-04 6:40
Anonymous28-Sep-04 6:40 
Generaluploading to images to remote server Pin
butchzn28-Sep-04 4:12
butchzn28-Sep-04 4:12 
GeneralRe: uploading to images to remote server Pin
Heath Stewart28-Sep-04 5:14
protectorHeath Stewart28-Sep-04 5:14 
GeneralInverse colour in GDI+ Pin
benjymous28-Sep-04 3:48
benjymous28-Sep-04 3:48 
GeneralRe: Inverse colour in GDI+ Pin
Heath Stewart28-Sep-04 7:02
protectorHeath Stewart28-Sep-04 7:02 
GeneralRe: Inverse colour in GDI+ Pin
leppie28-Sep-04 21:36
leppie28-Sep-04 21:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.