Tags: argument, clients, encountered, error, file, invalid, menu, microsoft, msdn, pints, probable, software, visual, whenever

"An invalid argument was encountered"

On Microsoft » Microsoft Visual C & C++

7,682 words with 2 Comments; publish: Mon, 02 Jun 2008 11:46:00 GMT; (325390.63, « »)

One of my clients is getting this error whenever she pints to the file menu.

The most probable answer I found to this problem is:

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=213556

I would like to know why exactly this could be happening on her computer

only as the path names of files in the MRU on my computer are definitely

longer than 30 characters (more than 45 characters, infact.)

Here is what my client has to say:

"My computer was purchased in December of 2002. It is a Dell Dimension 4550,

which was one of the high end computers at that time. It runs on Windows XP.

It has a 60 Gig Hard Drive with 40 Gigs left of useable space. The computer

is fully updated with all SP 2 and 3 plus all additional updates that could

be found on the Microsoft site except one sound update, which would be of no

use to me. The computer has been defragmented and the scan disc has been run,

which shows a "clean volume". All other programs are functioning normally as

on my other computer. The problem always occurs when the first attempting a

click to the file menu button at top left. Then typically I can open another

file with no Invalid Argument message. But, if I move around the program a

bit, then the message can reappear with no reason particularly.

The Softare does not freeze up when the Invalid Argument shows up. I can

continue to use the program, but sometimes the Invalid Argument Error pops

up. There does not seem to be any particular button, which produces this

message."

Thanks in advance

Regards

Srishti

All Comments

Leave a comment...

  • 2 Comments
    • Which version of MFC are you using? Which version of the MFC DLL (and I mean, look at the

      properties version number, not just the name!) are you using, and which does your client

      have installed?

      Not sure any of these are related, but they have to be checked first. If you have a newer

      version of the MFC DLL this would explain the problem. Are you using an installer or are

      you just copying the executable to the target machine?

      Most of the information in the description below is actually completely irrelevant to the

      problem, since it discusses things like the hard drive size and space left, which is

      unlikely to be related; the SPs could potentially be an issue (sometimes an SP replaces

      the MFC DLLs). Defragmentation and scanning would be irrelevant. All the absolutely

      critical information, such as the version numbers of all the relevant DLLs, is missing,

      and this is the first (and usually only) thing that matters. Using something like Depends

      would be useful.

      My first suspect is DLL skew, either MFC or elsewhere. After that has been eliminated as

      an issue, it is worth discussing alternative hypotheses.

      joe

      On Wed, 2 May 2007 17:22:00 -0700, Sonu <sonu.visual-c.todaysummary.com.online.nospam> wrote:

      >One of my clients is getting this error whenever she pints to the file menu.

      >The most probable answer I found to this problem is:

      >http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=213556

      >I would like to know why exactly this could be happening on her computer

      >only as the path names of files in the MRU on my computer are definitely

      >longer than 30 characters (more than 45 characters, infact.)

      >Here is what my client has to say:

      >"My computer was purchased in December of 2002. It is a Dell Dimension 4550,

      >which was one of the high end computers at that time. It runs on Windows XP.

      >It has a 60 Gig Hard Drive with 40 Gigs left of useable space. The computer

      >is fully updated with all SP 2 and 3 plus all additional updates that could

      >be found on the Microsoft site except one sound update, which would be of no

      >use to me. The computer has been defragmented and the scan disc has been run,

      >which shows a "clean volume". All other programs are functioning normally as

      >on my other computer. The problem always occurs when the first attempting a

      >click to the file menu button at top left. Then typically I can open another

      >file with no Invalid Argument message. But, if I move around the program a

      >bit, then the message can reappear with no reason particularly.

      >The Softare does not freeze up when the Invalid Argument shows up. I can

      >continue to use the program, but sometimes the Invalid Argument Error pops

      >up. There does not seem to be any particular button, which produces this

      >message."

      >Thanks in advance

      >Regards

      >Srishti

      Joseph M. Newcomer [MVP]

      email: newcomer.visual-c.todaysummary.com.flounder.com

      Web: http://www.flounder.com

      MVP Tips: http://www.flounder.com/mvp_tips.htm

      #1; Mon, 02 Jun 2008 11:47:00 GMT
    • This is an error that typically happens when an exception is thrown in

      release mode, but caught by the framework somewhere. I've seen this, for

      example, when I try to use and ID that no longer exists on a dialog (in

      code). Is this client running a different language (I.E., could there be a

      different resource DLL involved that doesn't have all the resources). I

      might be resources in the MFC DLL as well.

      Could be your version of MFC is newer as well. When you install your

      software do you install the MFC DLLs in your program folder?

      Tom

      "Sonu" <sonu.visual-c.todaysummary.com.online.nospam> wrote in message

      news:6A24642E-0E14-43EE-8FBB-BBC232E86809.visual-c.todaysummary.com.microsoft.com...

      > One of my clients is getting this error whenever she pints to the file

      > menu.

      > The most probable answer I found to this problem is:

      > http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=213556

      > I would like to know why exactly this could be happening on her computer

      > only as the path names of files in the MRU on my computer are definitely

      > longer than 30 characters (more than 45 characters, infact.)

      > Here is what my client has to say:

      > "My computer was purchased in December of 2002. It is a Dell Dimension

      > 4550,

      > which was one of the high end computers at that time. It runs on Windows

      > XP.

      > It has a 60 Gig Hard Drive with 40 Gigs left of useable space. The

      > computer

      > is fully updated with all SP 2 and 3 plus all additional updates that

      > could

      > be found on the Microsoft site except one sound update, which would be of

      > no

      > use to me. The computer has been defragmented and the scan disc has been

      > run,

      > which shows a "clean volume". All other programs are functioning normally

      > as

      > on my other computer. The problem always occurs when the first attempting

      > a

      > click to the file menu button at top left. Then typically I can open

      > another

      > file with no Invalid Argument message. But, if I move around the program a

      > bit, then the message can reappear with no reason particularly.

      > The Softare does not freeze up when the Invalid Argument shows up. I can

      > continue to use the program, but sometimes the Invalid Argument Error pops

      > up. There does not seem to be any particular button, which produces this

      > message."

      > Thanks in advance

      > Regards

      > Srishti

      #2; Mon, 02 Jun 2008 11:48:00 GMT