Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 17th, 2003, 06:29 AM
Authorized User
 
Join Date: Jun 2003
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Default EXE file behaving differently on different comp.

Hi.

I have a program that is somehow behaving different on my own developer PC than it does on the server where it is supposed to run. On the server, the last object of a COblist will not be updated in the DB, but if the program is run locally on my PC the last object is updated just fine. The server is running Win2000 Server and my PC is WinXP Pro. The EXE is build with MFC as a statically linked library.

Anyone have any suggestions on what this might be?
Reply With Quote
  #2 (permalink)  
Old September 18th, 2003, 05:22 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

I don’t think the location change can be
held responsible here. The way you are
connecting to the database, may be a hard coded
path is raising an exception somewhere that’s
causing some process to get terminated
prematurely and your database not getting updated.

Certainly some code or the database info and
a bit more info on what you are doing would help
immensely to understand the problem better.
Reply With Quote
  #3 (permalink)  
Old September 18th, 2003, 06:31 AM
Authorized User
 
Join Date: Jun 2003
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for swift reply.

Unfortunately the program is not my own writing, and the concerning code is scattered around so many places that I don't think a posting of the code would help you mutch (and mutch of the code is written in norwegian, so it would be hard for you to understand).

Anyway, what the program does is to take an EDIFACT-file (PRODAT message used in the Nordic power market), strip the information in the file down on plant-level, and then update a DB accordingly. The individual plant-information from the file is stored in plant objects in a COblist prior to updating the DB. Depending on if the plant-objects are already present in the DB or not, the plant gets updated. A logtable in the DB contains info on each plant in the EDIFACT-file ( a plant gets a -1 if not updated, 1 if updated). The problem is that the last plant will sometimes get updated and sometimes not updated if the program is run on the Server. If I run the program on my PC all the plants are always updated. I use the same EDIFACT-file to test on both computers, and it is the same EXE file being executed.

I have begun wondering if it might have something to do with the version of MDAC running on the computers. The server is running MDAC 2.6 RTM and my PC is running MDAC 2.7. Anyone know if an upgrade of the MDAC version might help?
Reply With Quote
  #4 (permalink)  
Old September 18th, 2003, 05:19 PM
Authorized User
 
Join Date: Jul 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths
Default


 Your suggest that MDAC may be the likely culprit is most probably correct or at least along the right path. If you are moving it from the development environment to a production box their are a number of things that you should probably check; are you accessing the same data-store? Perhaps what you are witnessing is the manifestation of different DBMS default behaviours, or perhaps one has been specifically configured / has a different set of integrity rules / something of that nature.

Regards,
Meredith Shaebanyan

Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: File path and URL http map differently cJeffreywang ASP.NET 1.0 and 1.1 Basics 4 March 27th, 2007 08:03 PM
Database Connection not Behaving rit01 ASP.NET 2.0 Basics 1 July 7th, 2006 10:55 PM
Cell Height not behaving nicely rodmcleay HTML Code Clinic 2 February 24th, 2006 10:43 AM
exe behaves differently JENKINSACTIVE Pro VB 6 5 May 16th, 2005 03:24 AM
Access behaving badly mega Classic ASP Databases 6 November 17th, 2003 02:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.