Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
QuestionSerializable Pin
George_George17-Jun-08 16:32
George_George17-Jun-08 16:32 
AnswerRe: Serializable Pin
Christian Graus17-Jun-08 17:33
protectorChristian Graus17-Jun-08 17:33 
GeneralRe: Serializable Pin
George_George17-Jun-08 18:27
George_George17-Jun-08 18:27 
AnswerRe: Serializable Pin
N a v a n e e t h17-Jun-08 20:16
N a v a n e e t h17-Jun-08 20:16 
GeneralRe: Serializable Pin
George_George17-Jun-08 20:56
George_George17-Jun-08 20:56 
AnswerRe: Serializable Pin
Ashfield17-Jun-08 21:16
Ashfield17-Jun-08 21:16 
GeneralRe: Serializable Pin
Pete O'Hanlon17-Jun-08 22:48
mvePete O'Hanlon17-Jun-08 22:48 
Questionstrange behaviour of console application Pin
stephan_00717-Jun-08 11:30
stephan_00717-Jun-08 11:30 
hy everyone!

i do have a strange problem maybe someone of you knows a solution to this or a good way to find out:

i do have a console application (parser) which reads from file, splits the input if necessary and writes the data to outputfiles. the number of outputfiles depends on the input type, meaning if the file is split into parts then there are as many outputfiles as there are parts.

the program searches a directory using a search pattern, then splits the file if necessary and performes the parsing and inserts data which match the tokens in the output template and renames the final file from tmp to the final extension.
sounds easy. on my system it works well (Vista, Visual Studio 2005).

But when I execute the program on a Win2003 Server it looks like some parts of the code are left behind.
e.g. i do have two files, the first one is split into two parts, but i do only get one output file. a second file which is parsed afterwards (the instance is still running because i first read all filenames which match the pattern) and is not split returns the one outputfile.

so somewhere the second outputfile of the first inputfile is lost, the program doesn't crash it doesn't write a failure into log (because i write a log entry when starting, when finishing and when an exception occures). the start logentry is in the logfile, but no failure nore the finish entry. but both files are moved to the success folder and not to the error folder, so it looks like it was parsed correctly. but after the move statement in the code the logmessage is insert into the logfile. so the code has to be used because the one file is there as well.

so to me it looks like as if the parser just sends some input to nirvana and not to the output or "ignores" parts of the code.

and the strange thing is, when i run the program on my vista machine, everything is ok.
well, the main problem in my case is, i can't install Visual Studio on the server because it is not mine, it's a client's machine i programmed the parser with. so my first idea would be to insert logfile entries when entering one of my functions and one when leaving to see, when the operation suddenly stopps.

did anyone of you encounter similar problems during coding console applications in circumstances like me? or does anyone of you have a hint on which could be the reason to help me solve this strange behaviour more quickly?

thanks for any advice and hints, because i nevery had behaviours like this before. all my programs i coded bevour could be used no matter which operating system or hardware was used. and as i described above, why is the operation successful on the one hand side and on the other side it is not because the output is lost somewhere?! Confused | :confused:

stephan.
AnswerRe: strange behaviour of console application Pin
PIEBALDconsult17-Jun-08 13:15
mvePIEBALDconsult17-Jun-08 13:15 
QuestionProblem populating multiple Combo-boxes...........!!! Pin
Verghese17-Jun-08 10:38
Verghese17-Jun-08 10:38 
GeneralRe: Problem populating multiple Combo-boxes...........!!! Pin
User 665817-Jun-08 10:51
User 665817-Jun-08 10:51 
QuestionList of compiler warning levels with associated warnings Pin
Member 391904917-Jun-08 10:03
Member 391904917-Jun-08 10:03 
AnswerRe: List of compiler warning levels with associated warnings Pin
martin_hughes17-Jun-08 10:38
martin_hughes17-Jun-08 10:38 
GeneralRe: List of compiler warning levels with associated warnings Pin
Member 391904917-Jun-08 11:11
Member 391904917-Jun-08 11:11 
QuestionSelect multiple rows from datagrid and want to drop it into tree Pin
sam1287417-Jun-08 9:54
sam1287417-Jun-08 9:54 
QuestionPrinting a MonthCalendar Pin
Elvis_Pretzelator17-Jun-08 9:34
Elvis_Pretzelator17-Jun-08 9:34 
AnswerRe: Printing a MonthCalendar Pin
Thomas Stockwell18-Jun-08 16:05
professionalThomas Stockwell18-Jun-08 16:05 
GeneralRe: Printing a MonthCalendar Pin
Elvis_Pretzelator19-Jun-08 5:37
Elvis_Pretzelator19-Jun-08 5:37 
QuestionVC++ runtime version check Pin
ben217-Jun-08 9:29
ben217-Jun-08 9:29 
AnswerRe: VC++ runtime version check Pin
Judah Gabriel Himango17-Jun-08 10:01
sponsorJudah Gabriel Himango17-Jun-08 10:01 
QuestionHow to control VS2008 compiler warnings? Pin
Member 391904917-Jun-08 8:25
Member 391904917-Jun-08 8:25 
AnswerRe: How to control VS2008 compiler warnings? Pin
User 665817-Jun-08 8:31
User 665817-Jun-08 8:31 
AnswerRe: How to control VS2008 compiler warnings? Pin
carbon_golem17-Jun-08 8:31
carbon_golem17-Jun-08 8:31 
GeneralRe: How to control VS2008 compiler warnings? Pin
Member 391904917-Jun-08 9:25
Member 391904917-Jun-08 9:25 
GeneralRe: How to control VS2008 compiler warnings? Pin
carbon_golem18-Jun-08 2:27
carbon_golem18-Jun-08 2:27 

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.