473,598 Members | 2,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I met a problem using vs 2005

I am using vs 2005 on windows xp.
I created a project, named ssps.And when debugging, I set project
property->debugging->command argument the way I wanted,like this: -b f:
\files f:\files. Then I ran the program. Everything went all right,
and I got the exact result, and two files are successfully created at
\ssps\debug, where the executable file ssps.exe located.
when I finished debugging , I made the release version, so I got the
ssps.exe in the directory \ssps\release. when I try to test the
executable file using command line,like this: ssps.exe -b f:\files f:
\files, errors occured.It reads like, 0x78180469 command accessing
0x003b5000 memory, the memory can not be written.
I also tried to run the executable file in Debug directory, and got
the same problem.
Now I don't know what to do. Why everything is ok when debugging but
errors occured when using command line to run it? I won't meet the
problem when debugging, so I can't feagure out where is the problem.
Can someone help me to explain it? Or tell me what to do now?

Jan 30 '07 #1
4 1583
On Jan 30, 1:04 pm, "Vivienne" <zhoudan.b...@g mail.comwrote:
I am using vs 2005 on windows xp.
I created a project, named ssps.And when debugging, I set project
property->debugging->command argument the way I wanted,like this: -b f:
\files f:\files. Then I ran the program. Everything went all right,
and I got the exact result, and two files are successfully created at
\ssps\debug, where the executable file ssps.exe located.
when I finished debugging , I made the release version, so I got the
ssps.exe in the directory \ssps\release. when I try to test the
executable file using command line,like this: ssps.exe -b f:\files f:
\files, errors occured.It reads like, 0x78180469 command accessing
0x003b5000 memory, the memory can not be written.
I also tried to run the executable file in Debug directory, and got
the same problem.
Now I don't know what to do. Why everything is ok when debugging but
errors occured when using command line to run it? I won't meet the
problem when debugging, so I can't feagure out where is the problem.
Can someone help me to explain it? Or tell me what to do now?
Are you playing around with pointers? If so make sure that they always
have a valid value. It's hard to say what's wrong but if the program
is small you could post it here and someone might spot it. If it's not
try to comment out/remove parts until either you find the problem or
the program is small enough to post here.

--
Erik Wikström

Jan 30 '07 #2
"Vivienne" <zh**********@g mail.comwrote:
Now I don't know what to do. Why everything is ok when debugging but
errors occured when using command line to run it? I won't meet the
problem when debugging, so I can't feagure out where is the problem.
Can someone help me to explain it? Or tell me what to do now?
The first thing you need to do is go through the entire program and make
sure that every pointer variable is initialized to 0. Then try to run it
in the debugger again and see what happens.

If the above doesn't help, then go through the entire program and check
every pointer dereference. Wherever you have "*ptr" or "ptr->" put an
assert before it that says "assert( ptr );" then run the program in the
debugger and see what happens.

If the above doesn't help, then go through the entire program and check
every array access. Wherever you have a "foo[bar]" put an assert before
it that says "assert( bar >= 0 && bar < num_elements_in _foo );" then run
the program in the debugger and see what happens.

Good luck.
Jan 30 '07 #3
Vivienne wrote:
when I finished debugging , I made the release version, so I got the
ssps.exe in the directory \ssps\release. when I try to test the
executable file using command line,like this: ssps.exe -b f:\files f:
\files, errors occured.It reads like, 0x78180469 command accessing
0x003b5000 memory, the memory can not be written.
You can build you Release executable with Debugging information
(Configuration Properties | Linker | Debugging). Make sure that
Just-In-Time Debugging is enabled (Tools | Options | Debugging).
Reproduce the crash. You should now be able to attach the debugger to
the process and perform any debugging action necessary. In particular
the Call Stack might be helpful for finding your problem. Just keep in
mind that optimizations have been done for the Release build, so you
can't necessarily see every variable or line of code in a 1:1 fashion.
Jan 30 '07 #4
Eberhard Schefold wrote:
You can build you Release executable with Debugging information [...]
Sorry, I forgot: What I wrote about debugging strategies in that
specific development environment is off-topic here. For that discussion
better go to a group in the microsoft.publi c hierarchy.
Jan 30 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2391
by: Edward Burns | last post by:
I am trying to create an events calendar with a complete month view. I want to be able to get all the events for a particular month, using only one recordset on the page then be able to loop through each day of that month and output the events for a particular day for each day without having to open up 28 to 31 different recordsets. The problem that I am having is with the objRS.Filter on line #12 of the asp code below. I can not figure...
0
4117
by: AlessanBar | last post by:
Hello Friends !! I have a strange problem, and I need to know what would be the source of this. I have a laptop computer with the following configuration: Pentium III Brand : Toshiba Speed : 500 Mhz RAM : 192 MB Hard Disk : 6 GB
1
2779
by: neha | last post by:
hi, i m trying to integrate python with apache on linux.For this i m using mod_python. I dont see any problem with the versions of python,apache and mod_python i m using. the versions i m using are apache version2. mod_python v3.1.14 python2.4 The problem is,when i m running my python script,after starting apache
7
2844
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID parameter to the XSLT stylesheet XsltArgumentList xsltArgList = new XsltArgumentList(); xsltArgList.AddParam("pmID", "", pmID); xmlItems.TransformArgumentList = xsltArgList;
1
1645
by: jdubu0 | last post by:
I have an MS Access query that I was hoping to summarize on the Tenure field but, instead, the rows are created as if the Tenure field were an Employee ID. So I have duplicate Tenure fields when I thought there would be just one per different Tenure field with the results summed within each Tenure. In fact, if I swap out the Tenure field output with the Employee ID, I get the same results with the exception of the Employee ID field. I have...
4
2767
by: Kim Würtz | last post by:
Hi folks I have an C# app. connecting to a MS-ACCESS database with several tables. In a specific situations I have problems with a DateTime type in a table. The problem is when I want to select records from a table in a specific period the day and month seems to be swapped in the query, but it only happens when the swapping yields a valid date eg.
17
9212
by: Danieltbt05 | last post by:
just installed SQL server 2000 and using my client , i can't locate the server. I used SQL query analyzer to search but no servers were found. Error message is as below Server : Msg17,level 16, state1 SQL server does not exist or denied access.
5
2641
by: Matik | last post by:
Hello, I've very often a deadlock problem. The deadlock is generated always in the same way, by one application calling in DB two sp's (application has two threads). This is an error message from trace: 2005-11-29 08:20:29.97 spid4 ResType:LockOwner Stype:'OR' Mode: S SPID:1160 ECID:0 Ec:(0x296F9540) Value:0x3
2
3375
by: Jeff | last post by:
Hey asp.net 2.0 My asp.net 2.0 project has got a assembly load problem: Some of my web.config settings: <membership defaultProvider="AH_MembershipProvider" userIsOnlineTimeWindow="15">
9
5749
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just call it Express for simplicity). I have, to try to simplify things, put the exact same DB on two systems, one running MSDE and one running Express. Both have 2 Ghz processors (one Intel, one AMD), both have a decent amount of RAM (Intel system...
0
7981
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7894
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8392
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8262
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3938
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2410
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.