Author Topic: Scanf.exe Problem  (Read 4308 times)

dubfan

  • Guest
Scanf.exe Problem
« on: March 08, 2010, 06:03:20 pm »
Hi Folks - first post

When running a program with the scanf function in it,
I get an error report "Scanf.exe has encountered a problem and needs to close. We are sorry for the inconvenience" and generates an error report to send to Micro Soft.

Using Win XP on a Dell

Any ideas

Thanks

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Scanf.exe Problem
« Reply #1 on: March 08, 2010, 06:11:20 pm »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline rcoll

  • Almost regular
  • **
  • Posts: 150
Re: Scanf.exe Problem
« Reply #2 on: March 08, 2010, 06:37:21 pm »
The scanf function is easy to crash, it really takes no skill at all.  Be sure to check your embedded scan codes against the args supplied; then check them again.  Chances are extremely high that you are passing the wrong kind of pointer to receive a scanf value.

Of course, all this has absolutely nothing to do with C::B, and the help you will get here is limited.  You really should be asking in a C/C++ forum where the scanf experts live.

Ringo