Click here to Skip to main content
16,004,901 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# and local SQL server connection Pin
Ravi Sant22-Mar-11 0:52
Ravi Sant22-Mar-11 0:52 
Questiondatagridview problems! Pin
King Boy21-Mar-11 19:54
King Boy21-Mar-11 19:54 
Questioncalling a web service at runtime Pin
Marcus Spitzmiller21-Mar-11 13:45
Marcus Spitzmiller21-Mar-11 13:45 
AnswerRe: calling a web service at runtime Pin
Pete O'Hanlon21-Mar-11 22:57
mvePete O'Hanlon21-Mar-11 22:57 
Questionproblem to connect to Oracle from my C# WinForm program Pin
Gali197821-Mar-11 10:12
Gali197821-Mar-11 10:12 
AnswerRe: problem to connect to Oracle from my C# WinForm program Pin
Wendelius21-Mar-11 10:26
mentorWendelius21-Mar-11 10:26 
AnswerRe: problem to connect to Oracle from my C# WinForm program Pin
Ian Shlasko21-Mar-11 10:30
Ian Shlasko21-Mar-11 10:30 
QuestionWindows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Chesnokov Yuriy21-Mar-11 1:26
professionalChesnokov Yuriy21-Mar-11 1:26 
I have windows service project created with .NET 3.5 some time ago. It uses managed class library with native code via PInvoke. Recently 4.0 .NET version of that class library was created. I had to change windows service configurstion to 4.0 .NET client also.

Wierd problem started to appear after 4.0 version compilation. After about 1 minute of run service is terminated. In the Windows Events Application Error entry is created (event code 1000, task category (100)):

Application name: MyService.exe, version: 1.0.0.0, timestamp: 0x4d87107f 
Module name: clr.dll, version: 4.0.30319.1, timestamp 0x4ba1d9ef 
Exception code: 0xc00000fd 
Error offset: 0x000ccd3c 
Process id: 0x1680 
Time: 0x01cbe7b1aaafc5a0 
Application path: C:\projects\MyService\release\MyService.exe 
Module path C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll 
Report code: 024b8ca0-53a5-11e0-9963-544249093872


With 2 more entries in the events with information from Windows Error Reporting:

Contaier error , type 0  
Event name: APPCRASH  
Reply: No data  
CAB Identifier: 0   
Problem signature:  
P1: MyService.exe  
P2: 1.0.0.0  
P3: 4d87107f  
P4: clr.dll  
P5: 4.0.30319.1  
P6: 4ba1d9ef  
P7: c00000fd  
P8: 000ccd3c  
P9:   
P10:  


With crash dump files reported to be found in C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_MyServ_c7f32a85ba9f45a9b76ff6beb5fac592fa5396f3_cab_047b1b2c

There is no specific point in the service it stops to work as I looked in the service logs dumped to text file. Any function call that follows after about 1 minute of work results in the termination. Service has a timer that fires with specific delays which invokes its functionality.

If I comment out managed class library call that uses native code the service termination stops. If I run the same class library with the same service functionality in original 4.0 console project there are no problems either.

Is there any 3.5 to 4.0 migration issues or bugs in 4.0 clr related to native code call in windows service applications?
Чесноков

AnswerRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Pete O'Hanlon21-Mar-11 3:10
mvePete O'Hanlon21-Mar-11 3:10 
QuestionRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Chesnokov Yuriy21-Mar-11 7:18
professionalChesnokov Yuriy21-Mar-11 7:18 
AnswerRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Pete O'Hanlon21-Mar-11 8:23
mvePete O'Hanlon21-Mar-11 8:23 
QuestionRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Chesnokov Yuriy21-Mar-11 10:06
professionalChesnokov Yuriy21-Mar-11 10:06 
AnswerRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Pete O'Hanlon21-Mar-11 10:42
mvePete O'Hanlon21-Mar-11 10:42 
AnswerRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Chesnokov Yuriy22-Mar-11 0:36
professionalChesnokov Yuriy22-Mar-11 0:36 
GeneralRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Pete O'Hanlon22-Mar-11 0:38
mvePete O'Hanlon22-Mar-11 0:38 
GeneralRe: Windows service stable APPCRASH in clr.dll after 3.5 to 4.0 .NET platform change Pin
Chesnokov Yuriy22-Mar-11 21:52
professionalChesnokov Yuriy22-Mar-11 21:52 
QuestionTotal Dynamic Report. Pin
Dot Net Jantu20-Mar-11 20:26
Dot Net Jantu20-Mar-11 20:26 
AnswerRe: Total Dynamic Report. [modified] Pin
SungBae.Han20-Mar-11 22:43
SungBae.Han20-Mar-11 22:43 
GeneralRe: Total Dynamic Report. Pin
Richard MacCutchan20-Mar-11 23:23
mveRichard MacCutchan20-Mar-11 23:23 
GeneralI'm sorry :) Pin
SungBae.Han21-Mar-11 13:02
SungBae.Han21-Mar-11 13:02 
GeneralRe: I'm sorry :) Pin
Richard MacCutchan21-Mar-11 23:40
mveRichard MacCutchan21-Mar-11 23:40 
QuestionHandling multiple clients via Sockets Pin
Jacob D Dixon20-Mar-11 9:45
Jacob D Dixon20-Mar-11 9:45 
AnswerRe: Handling multiple clients via Sockets Pin
SungBae.Han20-Mar-11 22:47
SungBae.Han20-Mar-11 22:47 
AnswerRe: Handling multiple clients via Sockets Pin
David198720-Mar-11 23:11
David198720-Mar-11 23:11 
GeneralRe: Handling multiple clients via Sockets Pin
Jacob D Dixon21-Mar-11 16:32
Jacob D Dixon21-Mar-11 16:32 

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.