473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Release won't run

(Please excuse me for not really knowing where to post this.
I picked the biggest and best audience I know of.)

I am having trouble running my release build from VC7.
It doesn't. When started, it just shows a message box about failing to
initialize app + hex address + OK button to close it down.

The debug build runs fine as does a test MDI app from
VC++ project wizards (both release and debug).

Hence I think it's not the code or VC7 setup that fails me.
It must be my system with my app. I did get a blue
screen of death a while ago when building my app but
that does not explain why anything else built works ok.
I have tried "Rebuild Solution" with no luck.

What would you try next?

A dll issue?

TIA,

Markus
Nov 17 '05 #1
10 1567
Hey,

Are you linking your resources with a dll? I had A problem witch was
quit similar to yours. We compile our resources in a dll and then we
link it to our main program. Problem is that when you compile your
resources in debug mode and your program in release you're program
won't start.

When you are using VS7 you can set a breakpoint(or use a message box)
in the function InitInstance(). If he comes there, go step by step thru
your program and see where it generates the fault. Most of my release
problems or due to variables I forgot to initiate.

In the hope it helps you
Peter
Nov 17 '05 #2
Peter Dedrie wrote:
When you are using VS7 you can set a breakpoint(or use a message box)
in the function InitInstance(). If he comes there, go step by step thru
your program and see where it generates the fault. Most of my release
problems or due to variables I forgot to initiate.


That is true. Wierdly enough, Debug mode actually manages your memory
better so many memory problems won't actually be detected until you run
it in Release mode.

A
Nov 17 '05 #3
It never reaches InitInstance() of my CWinApp derived class.
It fails before that. Also, other members of our team are able
to build and run the same code in release mode so I don't
think it is a linking issue either (not that I know what linking
resources with a dll even means. Don't think we do that.)

Markus

"Peter Dedrie" <Pe***@test.com> wrote in message
news:iP********************@edpnet.net...
Hey,

Are you linking your resources with a dll? I had A problem witch was
quit similar to yours. We compile our resources in a dll and then we
link it to our main program. Problem is that when you compile your
resources in debug mode and your program in release you're program
won't start.
When you are using VS7 you can set a breakpoint(or use a message box)
in the function InitInstance(). If he comes there, go step by step thru
your program and see where it generates the fault. Most of my release
problems or due to variables I forgot to initiate.

Nov 17 '05 #4
Like said, I can't do this because it won't
reach InitInstance() even.

"Jonathan Wood" <jw***@softcircuits.com> kirjoitti viestissä
news:Oi**************@TK2MSFTNGP12.phx.gbl...
Personally, I would start inserting a bunch of MessageBox calls, isolate
exactly where the error is happening, and then start printing the value of
various variables and error codes.

It would obviously be much easier if you could do this in Debug mode, but
you should eventually be able to obtain all the info you need.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"markus" <no@email.com> wrote in message
news:et**************@TK2MSFTNGP12.phx.gbl...
(Please excuse me for not really knowing where to post this.
I picked the biggest and best audience I know of.)

I am having trouble running my release build from VC7.
It doesn't. When started, it just shows a message box about failing to
initialize app + hex address + OK button to close it down.

The debug build runs fine as does a test MDI app from
VC++ project wizards (both release and debug).

Hence I think it's not the code or VC7 setup that fails me.
It must be my system with my app. I did get a blue
screen of death a while ago when building my app but
that does not explain why anything else built works ok.
I have tried "Rebuild Solution" with no luck.

What would you try next?

A dll issue?

TIA,

Markus


Nov 17 '05 #5
Personally, I would start inserting a bunch of MessageBox calls, isolate
exactly where the error is happening, and then start printing the value of
various variables and error codes.

It would obviously be much easier if you could do this in Debug mode, but
you should eventually be able to obtain all the info you need.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"markus" <no@email.com> wrote in message
news:et**************@TK2MSFTNGP12.phx.gbl...
(Please excuse me for not really knowing where to post this.
I picked the biggest and best audience I know of.)

I am having trouble running my release build from VC7.
It doesn't. When started, it just shows a message box about failing to
initialize app + hex address + OK button to close it down.

The debug build runs fine as does a test MDI app from
VC++ project wizards (both release and debug).

Hence I think it's not the code or VC7 setup that fails me.
It must be my system with my app. I did get a blue
screen of death a while ago when building my app but
that does not explain why anything else built works ok.
I have tried "Rebuild Solution" with no luck.

What would you try next?

A dll issue?

TIA,

Markus

Nov 17 '05 #6
Sorry, I didn't appreciate what you were saying there.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"markus" <no@email.com> wrote in message
news:OZ*************@TK2MSFTNGP12.phx.gbl...
Like said, I can't do this because it won't
reach InitInstance() even.

"Jonathan Wood" <jw***@softcircuits.com> kirjoitti viestissä
news:Oi**************@TK2MSFTNGP12.phx.gbl...
Personally, I would start inserting a bunch of MessageBox calls, isolate
exactly where the error is happening, and then start printing the value of various variables and error codes.

It would obviously be much easier if you could do this in Debug mode, but you should eventually be able to obtain all the info you need.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"markus" <no@email.com> wrote in message
news:et**************@TK2MSFTNGP12.phx.gbl...
(Please excuse me for not really knowing where to post this.
I picked the biggest and best audience I know of.)

I am having trouble running my release build from VC7.
It doesn't. When started, it just shows a message box about failing to
initialize app + hex address + OK button to close it down.

The debug build runs fine as does a test MDI app from
VC++ project wizards (both release and debug).

Hence I think it's not the code or VC7 setup that fails me.
It must be my system with my app. I did get a blue
screen of death a while ago when building my app but
that does not explain why anything else built works ok.
I have tried "Rebuild Solution" with no luck.

What would you try next?

A dll issue?

TIA,

Markus



Nov 17 '05 #7
A sample call stack is as follows: from bottom to top
MFC71.dll!ATL::CSimpleStringT<wchar_t,1>::CSimpleS tringT<wchar_t,1>(ATL::IAt
lStringMgr * pStringMgr=0x7c220064) Line 213 + 0x6 C++
MFC71.dll!ATL::CStringT<char,StrTraitMFC_DLL<char, ATL::ChTraitsCRT<char> >
::CStringT<char,StrTraitMFC_DLL<char,ATL::ChTrait sCRT<char> > >(const char * pszSrc=0x0046d891) Line 831 C++
myown.exe!$E1() Line 811 + 0x10 C++
msvcr71.dll!_initterm(void (void)* * pfbegin=0x00498000, void (void)* *
pfend=0x004980a8) Line 600 C
myown.exe!WinMainCRTStartup() Line 336 + 0xf C
KERNEL32.DLL!79551af6()

I get that and

"Unhandled exception at 0x7c16a575 (MFC71.dll) in myown.exe: 0xC0000005:
Access violation reading location 0x0000000c."

when trying to debug the release build. It's all chinese to me.

Markus
"markus" <no@email.com> kirjoitti viestissä
news:OZ*************@TK2MSFTNGP12.phx.gbl... Like said, I can't do this because it won't
reach InitInstance() even.

"Jonathan Wood" <jw***@softcircuits.com> kirjoitti viestissä
news:Oi**************@TK2MSFTNGP12.phx.gbl...
Personally, I would start inserting a bunch of MessageBox calls, isolate
exactly where the error is happening, and then start printing the value of various variables and error codes.

It would obviously be much easier if you could do this in Debug mode, but you should eventually be able to obtain all the info you need.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"markus" <no@email.com> wrote in message
news:et**************@TK2MSFTNGP12.phx.gbl...
(Please excuse me for not really knowing where to post this.
I picked the biggest and best audience I know of.)

I am having trouble running my release build from VC7.
It doesn't. When started, it just shows a message box about failing to
initialize app + hex address + OK button to close it down.

The debug build runs fine as does a test MDI app from
VC++ project wizards (both release and debug).

Hence I think it's not the code or VC7 setup that fails me.
It must be my system with my app. I did get a blue
screen of death a while ago when building my app but
that does not explain why anything else built works ok.
I have tried "Rebuild Solution" with no luck.

What would you try next?

A dll issue?

TIA,

Markus



Nov 17 '05 #8
Do you have global objects, such as CString, or CString in another global
object?

"markus" <no@email.com> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...
A sample call stack is as follows: from bottom to top
MFC71.dll!ATL::CSimpleStringT<wchar_t,1>::CSimpleS tringT<wchar_t,1>(ATL::IAt lStringMgr * pStringMgr=0x7c220064) Line 213 + 0x6 C++
MFC71.dll!ATL::CStringT<char,StrTraitMFC_DLL<char, ATL::ChTraitsCRT<char>
::CStringT<char,StrTraitMFC_DLL<char,ATL::ChTrait sCRT<char> > >(const char
* pszSrc=0x0046d891) Line 831 C++
myown.exe!$E1() Line 811 + 0x10 C++
msvcr71.dll!_initterm(void (void)* * pfbegin=0x00498000, void (void)* *
pfend=0x004980a8) Line 600 C
myown.exe!WinMainCRTStartup() Line 336 + 0xf C
KERNEL32.DLL!79551af6()

I get that and

"Unhandled exception at 0x7c16a575 (MFC71.dll) in myown.exe: 0xC0000005:
Access violation reading location 0x0000000c."

when trying to debug the release build. It's all chinese to me.

Markus
"markus" <no@email.com> kirjoitti viestissä
news:OZ*************@TK2MSFTNGP12.phx.gbl...
Like said, I can't do this because it won't
reach InitInstance() even.

"Jonathan Wood" <jw***@softcircuits.com> kirjoitti viestissä
news:Oi**************@TK2MSFTNGP12.phx.gbl...
Personally, I would start inserting a bunch of MessageBox calls, isolate exactly where the error is happening, and then start printing the value
of various variables and error codes.

It would obviously be much easier if you could do this in Debug mode, but you should eventually be able to obtain all the info you need.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"markus" <no@email.com> wrote in message
news:et**************@TK2MSFTNGP12.phx.gbl...
> (Please excuse me for not really knowing where to post this.
> I picked the biggest and best audience I know of.)
>
> I am having trouble running my release build from VC7.
> It doesn't. When started, it just shows a message box about failing

to > initialize app + hex address + OK button to close it down.
>
> The debug build runs fine as does a test MDI app from
> VC++ project wizards (both release and debug).
>
> Hence I think it's not the code or VC7 setup that fails me.
> It must be my system with my app. I did get a blue
> screen of death a while ago when building my app but
> that does not explain why anything else built works ok.
> I have tried "Rebuild Solution" with no luck.
>
> What would you try next?
>
> A dll issue?
>
> TIA,
>
> Markus
>
>



Nov 17 '05 #9
Also, the exact error message I get is

The application failed to initialize properly (0xc0000005). Click on OK to
terminate the application.

"markus" <no@email.com> kirjoitti viestissä
news:OM**************@TK2MSFTNGP09.phx.gbl...
A sample call stack is as follows: from bottom to top
MFC71.dll!ATL::CSimpleStringT<wchar_t,1>::CSimpleS tringT<wchar_t,1>(ATL::IAt lStringMgr * pStringMgr=0x7c220064) Line 213 + 0x6 C++
MFC71.dll!ATL::CStringT<char,StrTraitMFC_DLL<char, ATL::ChTraitsCRT<char>
::CStringT<char,StrTraitMFC_DLL<char,ATL::ChTrait sCRT<char> > >(const char
* pszSrc=0x0046d891) Line 831 C++
myown.exe!$E1() Line 811 + 0x10 C++
msvcr71.dll!_initterm(void (void)* * pfbegin=0x00498000, void (void)* *
pfend=0x004980a8) Line 600 C
myown.exe!WinMainCRTStartup() Line 336 + 0xf C
KERNEL32.DLL!79551af6()

I get that and

"Unhandled exception at 0x7c16a575 (MFC71.dll) in myown.exe: 0xC0000005:
Access violation reading location 0x0000000c."

when trying to debug the release build. It's all chinese to me.

Markus
"markus" <no@email.com> kirjoitti viestissä
news:OZ*************@TK2MSFTNGP12.phx.gbl...
Like said, I can't do this because it won't
reach InitInstance() even.

"Jonathan Wood" <jw***@softcircuits.com> kirjoitti viestissä
news:Oi**************@TK2MSFTNGP12.phx.gbl...
Personally, I would start inserting a bunch of MessageBox calls, isolate exactly where the error is happening, and then start printing the value
of various variables and error codes.

It would obviously be much easier if you could do this in Debug mode, but you should eventually be able to obtain all the info you need.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"markus" <no@email.com> wrote in message
news:et**************@TK2MSFTNGP12.phx.gbl...
> (Please excuse me for not really knowing where to post this.
> I picked the biggest and best audience I know of.)
>
> I am having trouble running my release build from VC7.
> It doesn't. When started, it just shows a message box about failing

to > initialize app + hex address + OK button to close it down.
>
> The debug build runs fine as does a test MDI app from
> VC++ project wizards (both release and debug).
>
> Hence I think it's not the code or VC7 setup that fails me.
> It must be my system with my app. I did get a blue
> screen of death a while ago when building my app but
> that does not explain why anything else built works ok.
> I have tried "Rebuild Solution" with no luck.
>
> What would you try next?
>
> A dll issue?
>
> TIA,
>
> Markus
>
>



Nov 17 '05 #10
Yes, I think. I have

CString CMyClass::m_strMyCString = "";// initialize the static variable

at the end of one cpp file.

That's where it breaks the second time after an unhandled exception.
The first time it breaks has no source code available.
Do you have global objects, such as CString, or CString in another global
object?

Nov 17 '05 #11

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

Similar topics

10
by: noname | last post by:
MSDE 2000 Release A installed under windows 2000 pro will not communicate with SQL Server Manager nor MS Access on peer computer. Can someone help? Have set DISABLENETWORKPROTOCOLS=0 at install...
4
by: Marek Lewczuk | last post by:
I'm looking at "TODO list for PostgreSQL" and "Fix upper()/lower() to work for multibyte encodings" has no dash (-) -- so it won't be made in 7.5 ? Another question is about WIN32 native release...
2
by: | last post by:
Hi, I'm experiencing a bizar problem with MS VC++, and just can't figure out what's going on. I Build a solution that compiles pretty well, it works good when I launch it in the Visual C++ Editor...
2
by: Natalia | last post by:
Hello, Our company wants to move our ASP applications to ASP.NET. We didn't use .NET before. I want to ask your opinion: - is it better to migrate right to ASP.NET 2.0 Beta, i.e. start...
3
by: John C Kirk | last post by:
I've come across an odd situation, where doing a floating point division produces different results for the same numbers. Basically, there are 4 ways to run this application: A) Debug build,...
4
by: Collin Peters | last post by:
I have searched the Internet... but haven't found much relating to this. I am wondering on what the best practices are for migrating a developmemnt database to a release database. Here is the...
3
by: Haldun ALIML | last post by:
Suppose that you have below property in some class, #if DEBUG public string DebugInfo { get { return "INDEX : " + _name + "\n" + "Index Owner : " + _owner.Name + "\n" + "Index Column Count:...
7
by: news.microsoft.com | last post by:
I have an asp.net 2.0 project that when I change the build configuration to release I get the following error: Command line error BC2014: the value 'None' is invalid for option 'debug'. If I...
3
by: Bob Johnson | last post by:
It is my understanding - and please correct me if I'm wrong - that when building a project in debug mode, I can deploy the .pdb file along with the ..exe and thereby have access to the specific...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.