Click here to Skip to main content
15,902,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: illegal zero-sized array Pin
LighthouseJ14-Jan-05 3:41
LighthouseJ14-Jan-05 3:41 
GeneralRe: illegal zero-sized array Pin
KaЯl14-Jan-05 3:52
KaЯl14-Jan-05 3:52 
GeneralRe: illegal zero-sized array Pin
LighthouseJ14-Jan-05 3:58
LighthouseJ14-Jan-05 3:58 
GeneralRe: illegal zero-sized array Pin
KaЯl14-Jan-05 4:17
KaЯl14-Jan-05 4:17 
GeneralInstallation Packege Pin
Aqueel13-Jan-05 16:06
Aqueel13-Jan-05 16:06 
GeneralRe: Installation Packege Pin
Toni7813-Jan-05 17:28
Toni7813-Jan-05 17:28 
GeneralRe: Installation Packege Pin
Aqueel13-Jan-05 17:55
Aqueel13-Jan-05 17:55 
GeneralVC6 - bug - I desparately need advice Pin
peterchen13-Jan-05 12:39
peterchen13-Jan-05 12:39 
Read my story, I desparately need advice.

Spent the last 8 hours extracting a nasty release build problem from a huge app to a standalone project, reproducing the problem in ca. 40 lines of code (Whew!)

Despite all my trust in Compiler and knowledge of C++ language pitfalls, and with all my debugging assembly experience I would say semi-proudly it is a bug in the optimizer.

The problem
- occurs only in Release Builds
- occurs with various optimization settings (including the release-default)
- with SP5 or SP6 installed
- on 3 different Developer PC's
- exposes an identical pattern of register misuse in all the iterations I took in isolating it
- does NOT occur when no SP is installed (don't have other SP's avail)
- does NOT occur on Standard edition (where no optimizer is included), independent of Service Pack
- it is straightforward code (no templates, but a few classes ond some basic COM stuff
is involved)

I have an workaround for the one place I isolated, but we have multiple problems with identical occurence pattern. They all revolve around a central data class.

Going back? They all surfaced not to long ago, but (a) I cannot safely determine the point of breakage, and (b) to many "pressing changes" have been included since. (Yes, we delayed finding these. Shame on us.)

The repro code still relies on _com_ptr_t, and some (arbitrary) COM object. With all my C++ power I cannot see anything wrong with the code.

options I see:
- disabling optimizations (YUCK. SLOW is not an option)
- going back to no service pack (I Don't want to)
- MS Support indident (I will do, but I don't expect much as this is VC6)
    Any experiences with that?
- Disabling optimizations while moving to VC7.1 (messy, no time, wanted to wait for VC 2005)

Thank you for listening. Wish me Luck.


I never really know a killer from a savior
boost your code || Fold With Us! || sighist | doxygen

GeneralRe: VC6 - bug - I desparately need advice Pin
Ryan Binns13-Jan-05 12:59
Ryan Binns13-Jan-05 12:59 
GeneralRe: VC6 - bug - I desparately need advice Pin
peterchen13-Jan-05 13:17
peterchen13-Jan-05 13:17 
GeneralRe: VC6 - bug - I desparately need advice Pin
IsaacLitingjun13-Jan-05 16:30
IsaacLitingjun13-Jan-05 16:30 
GeneralRe: VC6 - bug - I desparately need advice Pin
Ryan Binns13-Jan-05 17:32
Ryan Binns13-Jan-05 17:32 
GeneralRe: VC6 - bug - I desparately need advice Pin
Stephen Muccione14-Jan-05 1:52
Stephen Muccione14-Jan-05 1:52 
Generalpointer declaration Pin
Oriented13-Jan-05 12:38
Oriented13-Jan-05 12:38 
GeneralRe: pointer declaration Pin
Michael Dunn13-Jan-05 12:58
sitebuilderMichael Dunn13-Jan-05 12:58 
GeneralRe: pointer declaration Pin
LighthouseJ13-Jan-05 13:00
LighthouseJ13-Jan-05 13:00 
GeneralRe: pointer declaration Pin
samson197813-Jan-05 14:52
samson197813-Jan-05 14:52 
GeneralRe: pointer declaration Pin
Ryan Binns13-Jan-05 17:47
Ryan Binns13-Jan-05 17:47 
GeneralRe: pointer declaration Pin
toxcct13-Jan-05 22:31
toxcct13-Jan-05 22:31 
GeneralCString Problem Pin
Dody_DK13-Jan-05 12:33
Dody_DK13-Jan-05 12:33 
GeneralRe: CString Problem Pin
ThatsAlok13-Jan-05 18:59
ThatsAlok13-Jan-05 18:59 
GeneralRe: CString Problem Pin
Aamir Butt13-Jan-05 20:30
Aamir Butt13-Jan-05 20:30 
GeneralRe: CString Problem Pin
toxcct13-Jan-05 22:40
toxcct13-Jan-05 22:40 
GeneralRe: CString Problem Pin
Iain Clarke, Warrior Programmer14-Jan-05 0:34
Iain Clarke, Warrior Programmer14-Jan-05 0:34 
GeneralRe: CString Problem Pin
Dody_DK15-Jan-05 0:40
Dody_DK15-Jan-05 0:40 

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.