Click to See Complete Forum and Search --> : GP FAULT IN USER.EXE IN WIN98 ENV.
MDAVIS
Jan 7th, 2000, 09:51 AM
I HAVE A PROGRAM THAT USES THE USER.EXE TO CHECK FOR THE LOGIN IN WINDOWS 95 YOU CAN DISABLE THE WINDOWS LOGIN AND I HAVE NO PROBLEM WITH AN MY .EXE. IN WIN98 WHEN I AM CODING IN VB5 I HAVE NO PROBLEM WITH THE PROGRAM AND CAN RUN FINE, BUT WHEN I CREATE THE EXECUTABLE IT WILL CRASH WITH A GP FAULT IN USER.EXE. HAS ANYONE ELSE HAD THIS PROBLEM AND IF SO HOW DID YOU FIX IT. I AM JUST ABOUT READY TO PAY THE $250 AND CALL MICROSOFT BECAUSE I HAVE TO GET THIS PROGRAM RUNNING UNDER WIN98 AS SOON AS POSSIBLE. SO IF ANYONE CAN HELP IT WOULD BE MUCH APPRECIATED.
Drinky
Jan 7th, 2000, 10:15 AM
You have a keboard fault methinks. . .
Does your program run before a user log's in (Ie: from runservices machine run in the registry).
If it does i'm betting that it crashes because it asks for the name of the current user when there isn't one.
On the other hand if you press cancel on the login screen, windows will go into the default user account and the user name will report as either blank or an error. . .
What are you trying to do exactly. . . Maybe I can help better if I know what it is you are trying to do since I have never come across this GP fault error.
------------------
Third year Software Engineering Student.
On placement at the University of Manchester
playing with expensive cool things... :)
http://drinky.u4l.com
wizard_03@hotmail.com
[This message has been edited by Drinky (edited 01-07-2000).]
MDAVIS
Jan 7th, 2000, 10:35 AM
yes the program does run until you key a user's name and his password and press okay and that is when I get the gp fault in user.exe. I just don't understand why it would work running under vb but not from the executable. Exactly what I am trying to do, is the program is actually an emulator for screens that are designed for a mainframe, vb just attaches to the mainframe screens(screens designed in a product called SDC, code is COBOL)anyway when the user keys in their user id and password it checks the mainframe for the user password to see if it is legitimate, user id's are sales, acctg, mis, etc.... Anyway I know it's that damn windows logon because you can turn it off in win95 and everything works, if I leave it up in win95 I will get the same error, unfortunately I can not turn it off in Win98 and it is driving me crazy. If you have any guesses of what I should try let me know and I will try them right now. Thanks.
Clunietp
Jan 7th, 2000, 02:30 PM
Get the user name, just prompt for a password:
Private Declare Function GetUserName Lib "advapi32.dll" _
Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Private Sub Form_Load()
Dim tmpName As String * 128
Dim lngRetVal As Long
lngRetVal = GetUserName(tmpName, 128)
MsgBox tmpName
End Sub
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.