whats wrong ??

johnjr
09-15-2000, 01:16 PM
i have a problem with the following code...that when run the register.exe files loads ..but after a couple of seconds, i have an error window appear which says " this program has performed an illegal operation and will be shut down ". it also has a list of assem code. this does not happen every time. an someone please help

If Not (IsCorrect) Then
Timer1.Enabled = False
MsgBox "Your " & FreeTime & " days trial period has expired. Please register this software for continued use, vbCritical"

Dim retval
retval = Shell("e:vbprog
egister.EXE", 1)

thanks

john

BillSoo
09-15-2000, 01:34 PM
Most likely there is some kind of bug in register.exe. Can't really tell without seeing the source code of course.

Does register.exe run OK when you run it alone?

Does your program crash when you replace the line with, say,
retval = Shell("c:windows
otepad.exe",1)
?

Hopefully this will help you narrow down the source of the problem.

"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

Dazz
09-15-2000, 01:38 PM
Don't know why, but running the .EXE on the E: drive may be causing a problem. Try moving the .EXE to your C: drive and see if it still happens.

As I say, don't know if it will make a difference, but there may be a problem with the CD-ROM drive (assuming, that's what your E:Drive is)

johnjr
09-15-2000, 04:11 PM
i tried to make the path for the .exe file the same as the applicaion, but no go. i will try and move it to the c: drive.this problem also happens during design time (run mode) as well.

john

johnjr
09-15-2000, 05:40 PM
still no go.......
i have checked through the code and its ok......just found that it only occurs when i move my mouse pointer over one of the text box windows.one contains the serial number and the other is where the user enters the unlock code. the first one is the culprit.
i dont know why though ???

john

BillSoo
09-15-2000, 06:21 PM
Obvious question: does the registration program have any code in the mouse_move event for that textbox?

"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

johnjr
09-16-2000, 04:42 PM
no it does not......and i have checked the code again and there is no sign of it causing a problem.

john

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum