Click here to Skip to main content
15,921,793 members
Home / Discussions / C#
   

C#

 
GeneralRe: Enable custom control to be editable or intreactive in Design Mode Pin
leppie26-May-08 23:33
leppie26-May-08 23:33 
GeneralRe: Enable custom control to be editable or intreactive in Design Mode Pin
Brady Kelly26-May-08 23:36
Brady Kelly26-May-08 23:36 
QuestionService launching app with admin rights not working other than session 0 (XP) - C# Pin
xtnerb26-May-08 3:35
xtnerb26-May-08 3:35 
AnswerTO add up on the information Pin
xtnerb26-May-08 15:35
xtnerb26-May-08 15:35 
QuestionOpen a new e-mail with attachment in the default e-mail program. Pin
Christian Wikander26-May-08 2:02
Christian Wikander26-May-08 2:02 
AnswerRe: Open a new e-mail with attachment in the default e-mail program. Pin
jzonthemtn26-May-08 10:04
jzonthemtn26-May-08 10:04 
GeneralRe: Open a new e-mail with attachment in the default e-mail program. Pin
Christian Wikander26-May-08 20:38
Christian Wikander26-May-08 20:38 
QuestionThe .Net framework does not like my thread [modified] Pin
CDP180226-May-08 1:57
CDP180226-May-08 1:57 
Edit: Good morning!

It looks like the mystery is solved. When we started testing, we also deactivated the firewall and virus protection to assure that they don't interfere with the test. Now it appears that deactivating them was not enough. Nothing short from completely uninstalling the virus protection stopped it from terminatinhg my thread. There was no log and no notification whatsoever. This thing, supposedly inactive, simply determined that this application is unwanted and terminated the thread as soon as it tried to do it's job.

At least the honor of Win XP is now restored.



I have a strange problem with a small application I am working on.

Basically the application (for testing this is a simple console application) starts a new thread to receive and analyze mail messages and then send faxes to certain receivers in response.

The the thread processes incoming mails, parses them, creates new messages and sends those as faxes to the receivers. After that it goes to sleep for a few minutes and does the same in an endless loop. The loop can only be broken when a ThreadAbortException is received. Then all cleanup is performed and the thread terminates.

The whole thing is a little longer, so it makes no sense to post some code here. Also, all this works just fine on my development machine with Windows Vista and VisualStudio 2008.

Edit: Sorry, I forgot to mention that the application uses the framework 2.0


Now the puzzling part: When installed on a Win XP machine, practically every call to the framework is answered by a ThreadAbortException. Catching and ignoring it will change nothing. The exception comes when trying to connect to the POP3 mailserver, when reading a small XML configuration file, when trying to send the faxes...

Generally it looks like the framework under Win XP is constantly trying to kill my thread for unknown reasons. Also, strange enough, of all things Vista seems to have no problem with the thread.

Does anyone know what this is?


Edit: I have logged one of the cases when the exception pops up. The same happens at practically any other location from different methods, always from within the framework. In this case it's while trying the XML configuration:

Montag, 26. Mai 2008, 13:34:25
Allgemeiner Fehler in cFaxClientRAL
Thread was being aborted.

at System.Globalization.CompareInfo.CompareRegion(Void* pSortingTable, Int32 sortingLCID, String string1, Int32 offset1, Int32 length1, String string2, Int32 offset2, Int32 length2, CompareOptions options) Now why would this method try to kill my thread?
at System.Globalization.CompareInfo.Compare(String string1, Int32 offset1, Int32 length1, String string2, Int32 offset2, Int32 length2, CompareOptions options)
at System.Data.DataTable.Compare(String s1, String s2)
at System.Data.Common.StringStorage.Compare(Int32 recordNo1, Int32 recordNo2)
at System.Data.Index.CompareRecords(Int32 record1, Int32 record2)
at System.Data.Index.IndexTree.CompareNode(Int32 record1, Int32 record2)
at System.Data.RBTree`1.RBInsert(Int32 root_id, Int32 x_id, Int32 mainTreeNodeID, Int32 position, Boolean append)
at System.Data.Index.InsertRecord(Int32 record, Boolean fireEvent)
at System.Data.Index.ApplyChangeAction(Int32 record, Int32 action, Int32 changeRecord)
at System.Data.DataTable.RecordStateChanged(Int32 record1, DataViewRowState oldState1, DataViewRowState newState1, Int32 record2, DataViewRowState oldState2, DataViewRowState newState2)
at System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception& deferredException)
at System.Data.DataTable.InsertRow(DataRow row, Int32 proposedID, Int32 pos, Boolean fireEvent)
at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
at System.Data.XmlDataLoader.LoadData(XmlReader reader)
at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)
at System.Data.DataSet.ReadXml(String fileName)
at Lymez.FaxServiceModule.RAL.cFaxServiceRAL.FaxClient_GetList()

A while ago he asked me what he should have printed on my business cards. I said 'Wizard'.

I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.

modified on Tuesday, May 27, 2008 3:44 AM

AnswerRe: The .Net framework does not like my thread Pin
leppie26-May-08 3:50
leppie26-May-08 3:50 
GeneralRe: The .Net framework does not like my thread Pin
CDP180226-May-08 4:06
CDP180226-May-08 4:06 
GeneralRe: The .Net framework does not like my thread Pin
leppie26-May-08 4:13
leppie26-May-08 4:13 
GeneralRe: The .Net framework does not like my thread Pin
CDP180226-May-08 22:03
CDP180226-May-08 22:03 
GeneralRe: The .Net framework does not like my thread Pin
mav.northwind27-May-08 3:48
mav.northwind27-May-08 3:48 
GeneralRe: The .Net framework does not like my thread Pin
CDP180227-May-08 4:09
CDP180227-May-08 4:09 
GeneralRe: The .Net framework does not like my thread Pin
mav.northwind27-May-08 8:26
mav.northwind27-May-08 8:26 
GeneralRe: The .Net framework does not like my thread [modified] Pin
CDP180227-May-08 22:19
CDP180227-May-08 22:19 
GeneralRe: The .Net framework does not like my thread Pin
mav.northwind27-May-08 23:24
mav.northwind27-May-08 23:24 
QuestionIs it possible to query any text on xmldata of sqlserver 2005 table? Pin
nicolus26-May-08 1:47
nicolus26-May-08 1:47 
AnswerRe: Is it possible to query any text on xmldata of sqlserver 2005 table? Pin
buchstaben26-May-08 3:19
buchstaben26-May-08 3:19 
GeneralRe: Is it possible to query any text on xmldata of sqlserver 2005 table? Pin
nicolus26-May-08 20:57
nicolus26-May-08 20:57 
GeneralRe: Is it possible to query any text on xmldata of sqlserver 2005 table? Pin
buchstaben26-May-08 21:00
buchstaben26-May-08 21:00 
QuestionLogging category in EventLogging [Modified] Pin
afsal qureshi26-May-08 1:17
afsal qureshi26-May-08 1:17 
Question[Message Deleted] Pin
Bobbz26-May-08 1:05
Bobbz26-May-08 1:05 
AnswerRe: Chat who is online box Pin
leppie26-May-08 4:00
leppie26-May-08 4:00 
GeneralRe: Chat who is online box Pin
Bobbz26-May-08 4:05
Bobbz26-May-08 4:05 

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.