Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Run-Time Error 5 - 'Invalid procedure call or argument' error msg

390 views
Skip to first unread message

Administrator

unread,
Jun 13, 2009, 5:01:49 AM6/13/09
to
Hi,

I had searched through the internet to look for possible solutions of this
'Run-time error 5 - Invalid Procedure
call or argument' error msg but that doesn't help. Most of the causes of
this error is due to Set-Focus. I had tried
to comment the Set-Focus syntax but I still have the error.

The problem is as follow

I had used VB6 to create the inventory program and SQL Server 2000 is
the database used in the Headquarter. This program is installed on Server
2003.
All the workstations just mapped to the folder that the program is located
and users just double-click on the exe file and used the program from the
mapped drive.
It just work fine and there is no run-time error 5.

The problem only occurs at the 2 workstations in the outlet located in
different location from the HQ. The program is installed in the local drive
of each workstation
but the program is linked to the SQL Server 2000 in the HQ after they dialed
in using VPN. Therefore, the data the user input into the program
will be saved into the database in HQ. Both of the 2 workstations have this
run-time error 5. The exe file of the 2 workstations is the same as the file
in HQ. I don't know what could have caused this error since it only happen
at this 2 workstations but not at the computers in the HQ. I had also
found out that if I used the old exe file that I had compiled in Jan, the
error 5 will not appear but if I used back the latest exe that I had
compiled last week,
the run-time error 5 will appear.

Does anyone have any advice or solutions of the above problem? Hope to
hear from you soon.

Thanks in advance!

Nobody

unread,
Jun 13, 2009, 9:32:39 AM6/13/09
to
"Administrator" <blurqu...@hotmail.com> wrote in message
news:D91732E3-8F86-4D49...@microsoft.com...

SetFocus requires the object to be Enabled and Visible, otherwise it will
generate that error. You can avoid this error by doing something like this:

If Text1.Enabled And Text1.Visible Then
Text1.SetFocus
End If

Or using the API equivalent:

Public Declare Function SetFocusAPI Lib "user32" Alias "SetFocus" (ByVal
hwnd As Long) As Long

But this error maybe hiding something else, so it's better to find out what
has changed. Use WinMerge to see what changed between 2 projects, just
specify two folders and it will compare all files. Double clicking a file,
will show the changes in two windows, side by side. It's free and open
source:

http://en.wikipedia.org/wiki/WinMerge
http://winmerge.org


Randem

unread,
Jun 13, 2009, 7:01:39 PM6/13/09
to
You can use RSTools (http://www.randem.com/rstools.html) to locate where in
your app that this error appears, then you can narrow it down to the exact
line. You can also see what you app is really doing where you thought one
thing was happening another actually is.

You have to follow the direction carefully on a BACKUP of your project
because it will change your project by adding code.

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Disk Read Error Press Ctl+Alt+Del to Restart
http://www.randem.com/discus/messages/9402/9406.html?1236319938

"Administrator" <blurqu...@hotmail.com> wrote in message
news:D91732E3-8F86-4D49...@microsoft.com...

Administrator

unread,
Jun 14, 2009, 6:11:07 AM6/14/09
to
Hi,

I tried to download RSTools and installed in my computer. However, after I
had installed successfully and tried to run
the RSTools program, there is a run-time error '53' - File Not Found prompt
out. Please advise what could have went
wrong.

Thanks!


"Randem" <newsg...@randem.com> wrote in message
news:ueOeqrH7...@TK2MSFTNGP06.phx.gbl...

Randem

unread,
Jun 14, 2009, 2:52:58 PM6/14/09
to
Please explain the step you took when you state "tried to run".

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Disk Read Error Press Ctl+Alt+Del to Restart
http://www.randem.com/discus/messages/9402/9406.html?1236319938

"Administrator" <blurqu...@hotmail.com> wrote in message

news:0BA3EB9D-CC34-4599...@microsoft.com...

Randem

unread,
Jun 14, 2009, 9:11:58 PM6/14/09
to
I don't recall you stating which OS you were running under but if running
under Vista you need to install with "Run As Administrator" (Right click on
installer and select it).

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Disk Read Error Press Ctl+Alt+Del to Restart
http://www.randem.com/discus/messages/9402/9406.html?1236319938

"Randem" <newsg...@randem.com> wrote in message
news:eBwfWFS7...@TK2MSFTNGP02.phx.gbl...

Randem

unread,
Jun 14, 2009, 9:46:45 PM6/14/09
to
I checked and you seem to be using Vista. Go to
\Users\<YOURUSERNAME>\AppData\Local\Randem Systems\RSTools\ then open
RSTools.ini and change CheckForUpdates=False That should do it.

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Disk Read Error Press Ctl+Alt+Del to Restart
http://www.randem.com/discus/messages/9402/9406.html?1236319938

"Randem" <newsg...@randem.com> wrote in message

news:%234G7HZV...@TK2MSFTNGP03.phx.gbl...

Kevin Provance

unread,
Jun 14, 2009, 10:20:04 PM6/14/09
to
I said Inno addon, kook. Let me put it another way. This is not a forum to
spam and support your wares.

Multiposted too. Christ.

--
2025
If you do not believe in time travel,
your beliefs are about to be tempered.

http://www.facebook.com/group.php?gid=43606237254


"Randem" <newsg...@randem.com> wrote in message

news:uTGPE5V7...@TK2MSFTNGP06.phx.gbl...
| You should learn to comprehend.... This has nothing to do with Inno


|
| --
| Randem Systems
| Your Installation Specialist
| The Top Inno Setup Script Generator
| http://www.randem.com/innoscript.html
| Disk Read Error Press Ctl+Alt+Del to Restart
| http://www.randem.com/discus/messages/9402/9406.html?1236319938
|
|
|

| "Kevin Provance" <Bill.McCarthy.Is.Stalking.TPASoft.com...@nowhere.edu>
| wrote in message news:eOxZT2V7...@TK2MSFTNGP04.phx.gbl...
| > With all due respect, this is not an Inno addons forum. Take it to
email,
| > please.
| >
| > --
| > 2025
| > If you do not believe in time travel,
| > your beliefs are about to be tempered.
| >
| > http://www.facebook.com/group.php?gid=43606237254


| > "Randem" <newsg...@randem.com> wrote in message

| > news:O7b1jsV7...@TK2MSFTNGP06.phx.gbl...

Randem

unread,
Jun 14, 2009, 10:09:07 PM6/14/09
to
You should learn to comprehend.... This has nothing to do with Inno

--

Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Disk Read Error Press Ctl+Alt+Del to Restart
http://www.randem.com/discus/messages/9402/9406.html?1236319938

"Kevin Provance" <Bill.McCarthy.Is.Stalking.TPASoft.com...@nowhere.edu>

wrote in message news:eOxZT2V7...@TK2MSFTNGP04.phx.gbl...
> With all due respect, this is not an Inno addons forum. Take it to email,
> please.
>
> --
> 2025
> If you do not believe in time travel,
> your beliefs are about to be tempered.
>
> http://www.facebook.com/group.php?gid=43606237254

> "Randem" <newsg...@randem.com> wrote in message

> news:O7b1jsV7...@TK2MSFTNGP06.phx.gbl...

Kevin Provance

unread,
Jun 14, 2009, 10:04:12 PM6/14/09
to
With all due respect, this is not an Inno addons forum. Take it to email,
please.

--
2025
If you do not believe in time travel,
your beliefs are about to be tempered.

http://www.facebook.com/group.php?gid=43606237254


"Randem" <newsg...@randem.com> wrote in message

news:O7b1jsV7...@TK2MSFTNGP06.phx.gbl...

Randem

unread,
Jun 14, 2009, 10:54:53 PM6/14/09
to
Let me put it another way... If yo don't know what you are talking about...
Keep out of the conversation.

It's not an Add-on either...

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Disk Read Error Press Ctl+Alt+Del to Restart
http://www.randem.com/discus/messages/9402/9406.html?1236319938

"Kevin Provance" <Bill.McCarthy.Is.Stalking.TPASoft.com...@nowhere.edu>
wrote in message news:%23jT1K$V7JHA...@TK2MSFTNGP02.phx.gbl...

Kevin Provance

unread,
Jun 14, 2009, 11:17:00 PM6/14/09
to
What I saw was a post of you posting a link to your crap, which failed on
some other users system, and now using this forum to trouble shoot your own
software. Sit there and whine all you want, but it's off topic and
inappropriate.

Let me clear it up even further since you're obviously not even aware of
what you are talking about.

The poor fool who downloaded your hack job wrote: "However, after I had

installed successfully and tried to run the RSTools program, there is a
run-time error '53'"

Okay? RSTools had an error. This now becomes a support issue unrelated to
VB6 in any way I can see (and even more sad is you are not using any kind of
error trapping. Completely unprofessional and just damned sloppy.. No
wonder you have to ride Inno's coattails. You couldn't cut it yourself with
something original, eh?) and needs to be directed to someplace more
appropriate, which IS NOT here. Got it? Or would you like me to use
whatever your native language is?

And since you want to act like a dick, here is some info you might find
helpful. A three day trial for 30 dollars is stupid. Not only is it not
worth 30 bucks, but three days is an insult. You must not be an American
company, because there is a 30 refund policy on all sales as far as credit
card companies are concerned, which is why most shareware is...hold on, wait
for it...30 days! Charging money for crappy software for an intelligent
piece of software like Inno, which is FREE is weak. With so many free
alternative, it's no wonder your website looks like someone with nothing
more than a middle school education authored it. And yeah, while I'm on
that point, a team of dyslexic monkeys banging out commands on an old broken
keyboard with dental tools into Notepad could design a better website.
Seriously, it looks like crap. If I was epileptic I would be grand mal'ing
all over the place. I went ahead and submitted it to websitesthatsuck.com.
Someone else could learn a good deal about good design by looking at it.

Now, you want to mouth off to me some more? I have not even warmed up yet.
Take support for your own software to email or your own forum and stop
spamming it here.

--
2025
If you do not believe in time travel,
your beliefs are about to be tempered.

news:OpX2oSW7...@TK2MSFTNGP05.phx.gbl...

Randem

unread,
Jun 15, 2009, 9:44:26 PM6/15/09
to
I pity the fool...

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Disk Read Error Press Ctl+Alt+Del to Restart
http://www.randem.com/discus/messages/9402/9406.html?1236319938

"Kevin Provance" <Bill.McCarthy.Is.Stalking.TPASoft.com...@nowhere.edu>
wrote in message news:OFwj%23eW7J...@TK2MSFTNGP05.phx.gbl...

Randem

unread,
Jun 15, 2009, 9:46:43 PM6/15/09
to
And I suppose this forum is for you to have your petty rants in huh???...
Move to the childrens table...

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Disk Read Error Press Ctl+Alt+Del to Restart
http://www.randem.com/discus/messages/9402/9406.html?1236319938

"Kevin Provance" <Bill.McCarthy.Is.Stalking.TPASoft.com...@nowhere.edu>
wrote in message news:OFwj%23eW7J...@TK2MSFTNGP05.phx.gbl...

0 new messages