Jump to content
Sign in to follow this  
danmc77

Preprocessor Crash

Recommended Posts

Dave & Pavel,

 

I found a way to crash pp.exe. Add this line and it crashes every time for me.

 

#ifdef OPT #pragma OPTIMIZE "a" #endif

 

Dan

Share this post


Link to post
Share on other sites
Dave & Pavel,

 

I found a way to crash pp.exe.  Add this line and it crashes every time for me.

 

#ifdef OPT #pragma OPTIMIZE "a" #endif

 

Dan

 

So dont do it then!

 

BTW what happens if you try

 

#ifdef OPT 
#pragma OPTIMIZE "a" 
#endif

Share this post


Link to post
Share on other sites

It doesn't crash with this:

 

#ifdef OPT

#pragma OPTIMIZE "a"

#endif

 

My attitude with software is that it should never crash under any circumstances. If a programmer does something stupid, it should be able to identify the error and report the offending line number rather than a window telling you to sniff for the smoke.

 

Dan

Share this post


Link to post
Share on other sites

Dan,

 

My attitude with software is that it should never crash under any circumstances. If a programmer does something stupid, it should be able to identify the error and report the offending line number rather than a window telling you to sniff for the smoke.
Yes you are quite right. Normally this kind of thing is the symptom of something else below the surface that is not as it should be.

 

So thanks for the report.

The work around for now is:

So dont do it then!

 

;)

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...