My application is about parsing coming email messages based upon these email message patterns. Please see the attachment file. These steps are
1) My program reads email from MS Outlook 2000 client;
2) If the send includes the following string as "isinet.com", my program
will process otherwise disregard;
3) Each time, load one email body into memory. Then search each article
pattern, e.g. each article is separate one empty line, and
"=========================", and one empty line again;
4) Once located each article, my program search sub-patterns such as
Author:, Title:, Abstract:, Volume:, ISSN:;
5) Once get these info, my program connects to MS SQL 2000 database
server and save these info into database.
6) Continue to process all email message body until finish, then go to
1) unless there is no unread email;
My problem is all my application is based on Visual Studio 6.0 Document/View model to develop my codes. In the debug mode, everything is fine. But if I switch my project to release mode in Visual Studio mode, I run my program under release mode, and I couldn't get the same results. Here, I mean that one of structures I defined for holding info from parsing email content such as Author name, Title, Volume and issue number is empty. I have located that structure contains NULL values for Author name, Title, Volume and Issue number, which before my program do database and log file operation. But I cannot do further since my debug version work fine. Otherwise, I can debug if step by step. So I really don't know what should I locate the problem further. I think that this problem might be related to Visual Studio but I am not very sure. I can post my entire codes but I cannot do here.
Also, after I get the response here, I have double check my project settings on both Debug and Release mode. I am sure that they are compatible. Any comments are appreciated!
P.S.
My original program is designed on win32. It works fine on debug mode but I got a R6016 run-time error if I switch it to Release mode. That is the reason I later switch to Document/view type.