Problem - Compiled Program Only Runs On WIN98
I made a VB6 program, then compiled it and tested it on different computers and systems. The program works great, contains no bugs, but.... I only runs well on Win-98! On Win-2000 or Win-XP it sometimes even doesn't want to start or sometimes it starts, but stops later.
When it stops or doesn't start, the Run-time error '7' + 'Out of memory' is reported. As said, under Win-98 there is no error.
I suppose there is some library problem, but have no idea, how to solve it. The program is using 'Commondialog', 'flexgrid' and other advanced elements, so I did add the needed OCX-files to the program folder.
Can anybody give me any useful information?
Thanks! Matej
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Problem - Compiled Program Only Runs On WIN98
I made a VB6 program, then compiled it and tested it on different computers and systems. The program works great, contains no bugs, but.... I only runs well on Win-98! On Win-2000 or Win-XP in sometimes even doesn't want to start or sometimes it starts, but stops later.
When it stops the Run-time error '7' + 'Out of memory' is reported. As said, under Win-98 there is no error.
I suppose there is samo library problem, but have no idea, how to solve it. The program is using 'Commondialog', 'flexgrid' and other advanced elements, so I did add all the needen OCX-files to the program itself.
Can anybody give me any useful information?
Thanks!
Matej
Vb6 Program Runs On Win98 But Not On Win Xp
Hi all.
I have a small vb6 program running on win98 but when I tried to run it on a win xp machine, the screen turn grey, or buttons and menu dont have any text. It occurs after a few minutes of inactivity.
Any idea what might be wrong?
Thanks.
pd:I expect you understand my english.
Through VB - Runs Great, Compiled - Runs Like Crap
I just finished a program I've worked on for a couple of days.
While in VB, running the software and testing it, and all that went faster than I could have dreamed.
Now when I compiled it, then ran the program it runs like a horse stuck nose deep in it's own filth. (Seriously, it's TERRIBLE)
Is this normal? What can I do to fix this other than find faster ways to write my code?
I've tried changing the Optimization settings for compiling to Fast Code, Small Code and No Optimization, and they all seem to run about the same.
Any ideas?
My Compiled EXE Runs In VB6 Folder But Nowhere Else
Ok I got a feeling I have missed something very important while teaching myself VB6 (through reading). I compile my EXE file and it runs great while in the VB6 folder. But when I move it somewhere else or onto another computer (that doesn't have VB6) and try to run it weird things happen (forms don't show, labels can't be seen etc). I assume there is some required file that needs to be in the same folder as the EXE in order for it to be run correctly? And this file is in the vb6 dir? I am assuming, am I right? What file is this? So do I have to include this file with any program I make? What about copyright stuff, microsoft ain't gonna come knockin at my door with papers cause I sold my own program which contained their file that is *required* to make it run corrently right? PLEASE help, sorry about all those questions.. :-)
-Wolfy
Dll Runs Fine When Compiled Using Win2k, But Not XP.
Hello,
Here is my situation. We have a bunch of dll's we use on a win2k server. I am testing to see if the same code can be compiled on an XP machine and used on that same win2k server. It does not seem to work. I haven't changed any of the code at all. Just compiled it in XP. I have the following dependencies.
Visual Basic For Applications
Visual Basic runtime objects and procedures
Visual Basic objects and procedures
OLE Automation
COM+ Services Type Library
Microsoft Message Queue 3.0 Library
ADO 2.5
Microsoft XML, version 2.0
Microsoft Scripting Runtime
Thanks for the help!
Help! Vbp Runs, But Compiled Version Doesn't
When I use F5 to run my application, it works fine, but when I compile it and it is called, I get the error "'Orientation' Property cannot be changed within a page."
The app is used in a DOS program to print reports. I have it working on another machine, and was once working on mine, but now I get the error when I compile and install it. Any suggestions??
Here is the app:
private Sub Form_Load()
Open "Printpdp.doc" for input Access Read as #2
Dim MyFont as new StdFont
With MyFont
.Bold = false
.Name = "courier"
End With
set Printer.Font = MyFont
Restart:
Line input #2, A$
If EOF(2) then
Close #2
Kill ("Printpdp.doc")
End
End If
D% = InStr(A$, Chr(12))
If D% > 0 then
mid(A$, D%, 1) = " "
Printer.NewPage
Page% = 1
End If
C% = InStr(A$, "&k2S")
If C% > 0 then
mid$(A$, C%, 4) = " "
Printer.FontSize = 8.5
If FirstTime% = 1 And Page% <> 1 then
Printer.NewPage
End If
FirstTime% = 1
End If
B% = InStr(A$, "&l1O")
If B% > 0 then
mid(A$, B%, 4) = " "
Printer.Orientation = vbPRORLandscape
End If
C% = InStr(A$, "&k0S")
If C% > 0 then
mid$(A$, C%, 4) = " "
Printer.FontSize = 10
End If
B% = InStr(A$, "&l0O")
If B% > 0 then
mid(A$, B%, 4) = " "
Printer.Orientation = vbPRORPortrait
End If
Printer.print A$
Page% = 0
GoTo Restart
End Sub
VB 3.0 (using Access DB) Won't Run Compiled Under Win98
An old VB 3.0 executable I wrote years ago that uses Access database will not run compiled (as a .exe) but it will run interpretive under VB 3.0. The machines have been upgraded (PIII) and are now using windows 98. Has anyone seen this sort of incompatablity with 98 or may this be some how linked to machine speed (too fast)?
Installer Runs Each Time My Program Runs
Hi All
I have a vb6 program (front end to an Access database) which I have distributed to eight users running Windows 2000 SR2.
The Windows Installer (created with Visual Studio Installer) installed correctly on all eight computers.
For some reason on three of these computers the installer runs whenever the program is run (at least after the computer is restarted)
Any suggestions would be greatly appreciated
HalinaOz
Project RUns Great In IDE, Illegal Op. In Compiled. Problems With OLEAUT32.dll!!
First of all thanks for any help in advance cause this is driving me crazy.
I have win98 and im writing a program with 2 forms, a setup screen form, and then an invisible form that performs all the operations and is unloaded and reloaded anytime the setup screen is changed.
Everything works GREAT in the IDE however when i run the **** compiled version, when i go to the setup screeen and hit apply, which in the code, is where the Unload Form2 Load form2 thing happens and i get an "Illegal Opeartion, ..etc" in OLEAU32.dll or whatever the **** thing is called, very frustrating, it even does it when ever i change the visibility of a form such as form2.visible = true etc. but like i said it works great in the ide, its the compiled version thats craptacular. thanks peoples.!
Nick
VB Application Compiled In Win98 And Installed In Win 2000
I have designed an application in Win 98 and i tried to install in one of the node having win 2000. i installed mdac_typ.exe in win 2000 node.
I could not run the package installer in the win 2000 node.
I copy the executable file alone and the application works fine in the node.
Please help me.
Duraiappan.
Program Only Runs Through Once
i've written a program that messes up if you try and run it more than once. is there anyway of reseting the project at the end of the program to restore its initial values so that it will run agian. thanks a lot.
How Do I Know The First Time A Program Runs??
Hi,
I am using SaveSetting and GetSetting in my VB code. The trouble is, the first time the program runs, no setting has been saved and I get a runtime error! How can I find out the first time the program is run so as I can use a default value for SaveSetting??
Thanks,
Blaaboy
Program Runs Too Fast!!!
I use an SQL statement to fill a table then There is a report created in data environment which takes data from the table to populate the report.
My problem is that when I trace it step by step in my coding, it populate my report correctly, but when I run it directly without tracing, I get an empty report.
Is it that my program runs too fast!
How To Detect When The Program First Runs?
Dear all,
I am currently creating a program in Visual Basic 6 where I need to be able to detect whether it is the first time the program has been run on that PC. In the short amount of experience I have gained with using VB, something tells me there has to be some kind of built in function, that at least returns the amount of times the program has been run. Then I could use a basic If Statement.
Any suggestions from anyone would be very much appreciated.
Thank you all for your time,
Vb Program Still Runs Even I Exit From App.
Hi there,
I don't know this might be very dump question. I wrote one small project in which I can to connect to sybase and does some add, delete, Update record in the database through grid. And create an text file and through batch file send text file to server. Everything works fine. But when I exit the app still it runs, I can see it in my task manager thro executable. And thro VB interface I have to press "End" button in Run menu.
Any suggestion is appreciated.
Thanks
Ekta
Program Exe Runs Without Forms
Say I wanted to have an exe that when run, has no forms open, but is still running in the background. However, there are still forms in the project that can be opened in code. How would I do that?
Program Runs To Slow! Help
I'm writing a program that stores the contents of a OLE object to a word document. Then sending this document to the printer as a postscript file. I've tried p_WrdApp.Documents.Add, then p_WrdApp.selection.TypeText = ole1.DataText but the contents on the file isn't what was in the OLE object. This code below does
work but is very slow, as I'm sending hundreds of documents using this method.
Any way of speeding this code up!
Thanks in advance! Pmccorm
Open "c: est.doc" For Output As #1
'Print to word document
ole1.format = ole1.ObjectAcceptFormats(1)
Print #1, ole1.datatext
Close #1
p_WrdApp.Documents.Open "c: est.doc"
p_WrdApp.PrintOut , , , "c: est.prn", , , , , , , True
p_WrdApp.PrintOut , True, , "c: est.prn", , , , , , , True
'Exit the document
p_WrdApp.Documents.Close
Program Still Runs After Unload
after my program unloads, it seems to stop running(nothing on screen or task bar), but i have to hit
ctrl+Alt+del and tell it to end task.
i am using Unload Me to exit my program. is there a better way????
Program Runs Weird On Different Resolution
When i run my program on a 800x600 resolution. Everything looks normal. But when i run it on a 1024x768 computer, all the pictrures in the program look as if they are in the wrong place. How do I make it look the same no matter which resolution i run it in?
?Manipulate Code While Program Runs?
Ok check it out..
-------------------------------------------
the project contains:
Form1
Text1
Label1
Command1
-------------------------------------------
here is the code:
Public vara As String
Public varb As Integer
Private Sub Form_Load()
vara = "hello"
varb = 25
End Sub
Private Sub Command1_Click()
Label1.Caption = Text1.Text
End Sub
----------------------------------------
Here is what I want to accomplish:
When I run the program, I want to type this
statement in the Text1 box (minus the quotes):
"ucase(vara) & str(varb)"
Then when I press Command1 I want it to respond
by changing label1.caption to "HELLO25".
If this is possible, thanks in advance. -b MULCH900@AOL.COM
Halt While Shell Program Runs..
my application shell's an external program for the user..
I want to halt program flow, and continue when they finish and close the external program.
I am shelling like this.:
Shell "C:Program FilesMicrosoft OfficeOfficefrontpg.exe " & vNewFileName & txtDocChangeNum.Text & ".html"
How Can I Run My Program At Startup? (Before Explorer Runs)
I want to run my vb program at startup before even explorer has been loaded. I've seen some programs do this. I'd really appreciate your help. Thanks forward.
Note: I know how to run my programs at startup using the startup folder or the registry.
Making Objects While The Program Runs
i have a line with an index of 0 and i want to create a second line while the program runs, ie with the same name but an index of 1, is this posible? if so how do i do it?
I Get Type Mismatch Before Program Runs
I am going through a tutorial in an old vb book as a refresher. I coded everything according to the example, but I get a Type Mismatch error as soon as I hit F5! I have no clue where the problem is, excpet that it runs when I remove my second form from the project. Why would it throw an error and not reference a line of code?
My Program Runs In Windows 2000 && XP But Not In ME...HELP!
Hello All
I created a program. packaged it & deployed- no problems...I developed this program Under Windows XP, so when I package & run it under XP or 2000...it does good...but when i go to ME, to install...it says the System files are out of date, restart your computer to update the system files & then run the setup...I restart, it doesn't do anything...says the same same things over n over....any ideas???
Clear The Labels When The Program Runs
Hi guys,
I have attached a file that I need you guys to take a look, the problem that I face is I don't know how to clear the labels that the data display.
I want those labels are empty when I run the program. Can someone help?
Actually the program that I attached is just a testing, just to let you guys easier to understand my poor English. The actual program I have created, contains another button for searching, but that program is quite large... so I just re-create a small one for you guys. Just let me know how to clear the labels when the program start running.
Thanks in advance!!
Edited by - YottaByte on 12/1/2004 7:20:30 AM
?Manipulate Code While Program Runs?
Ok check it out..
-------------------------------------------
the project contains:
Form1
Text1
Label1
Command1
-------------------------------------------
here is the code:
Public vara As String
Public varb As Integer
Private Sub Form_Load()
vara = "hello"
varb = 25
End Sub
Private Sub Command1_Click()
Label1.Caption = Text1.Text
End Sub
----------------------------------------
Here is what I want to accomplish:
When I run the program, I want to type this
statement in the Text1 box (minus the quotes):
"ucase(vara) & str(varb)"
Then when I press Command1 I want it to respond
by changing label1.caption to "HELLO25".
If this is possible, thanks in advance. -b
Errors When Program Runs Multiple Times
I am currently working on a program that opens an Excel file, edits the file and then saves it. When I run the program the first time, everything works ok, but when I try to run the program again, I get a run-time error '1004' Method 'Cells' of object '_Global failed. Here is the problem code:
Set found = Cells.Find("PHONE") 'This line is highlighted
If Not found Is Nothing Then
'Loop through column looking for filled cells
Set r = Range(found, Cells(65536, found.Column).End(xlUp))
For Each rng In r
If Not IsEmpty(rng) Then
'Insert "'" in front of cell contents
rng.Value = "'" & rng.Value
End If
Next
End If
I tried declaring wkBook as Excel.workbook and wkSheet as Excel.worksheet, and then changing Cells.Find("PHONE") to wkSheet.Cells.Find("PHONE"). When I did that, I got a run-time error, "Object variable or with block variable not set"
Do I need to set wkBook and/or wkSheet = to something else yet? Any ideas would be great!! Thanks
Excell Charts Keep Resizing When Program Runs
I've written a program in an Excell spreadsheet that takes data and makes 4 charts. Simple.
When I step through the program, all the charts come out fine (right place, size, etc).
But when I just run the program, the 1st 2 charts come out in the right location and size, but the plot area and legend are smaller than what they should be. The last 2 charts come out fine.
Has this happened to anyone before?
Anybody know how to fix this?
Thx.
Jeff
Errors When Program Runs Multiple Times
Hello,
I have the same problem with my application. Can you help me ?
I want to open an Excel file, and edit the file. When I run the program the first time, everything works ok, but when I try to run the program again, I get a run-time error '1004' Method 'Cells' of object '_Global failed.
Here is the problem code:
Code:
Dim m_objExcel As excel.Application
Dim m_objWorkbook As excel.Workbook
Dim m_objWorksheet As excel.Worksheet
Private Sub LabelFin_Click(Index As Integer)
Set m_objExcel = New excel.Application
Set m_objWorkbook = m_objExcel.Workbooks.open("D:Tbord usc-cr-04-S1.xls", True, True, , "")
m_objExcel.Sheets("cr uscpca").Select
Select Case Index
Case Is = 0, 1, 2, 3, 4
Application.DisplayAlerts = False
m_objExcel.Range("A1:R24").Select
m_objExcel.Selection.Copy
m_objExcel.Sheets("Feuil1").Select
m_objExcel.Range("A4").Select
m_objExcel.ActiveSheet.PasteSpecial
m_objExcel.Visible = False
Cells.Select
Clipboard.Clear
Selection.Copy
frmSpreadsheet.Spreadsheet1.Range("a1").Select
frmSpreadsheet.Spreadsheet1.Selection.Paste
Clipboard.Clear
m_objExcel.quit
Set m_objExcel = Nothing
frmSpreadsheet.Visible = True
frmUSC.Visible = False
Case 5, 6, 7, 8
End Select
End Sub
Thanks again
titou2A
Errors When Program Runs Multiple Times
I am having a similar problem in that the second time I run my code I get a type mismatch. It works fine the first time, but I have to close the vb program and restart it to run the code again.
Private Sub Highlight_cells_Click()
Dim Excel As Excel.Application
Dim wbook As Excel.Workbook
Dim wsheet As Excel.Worksheet
Dim myrange As Range
Dim firstrun As Boolean
'Dim findserialnumberrow As Range
firstrun = True
Set Excel = New Excel.Application
'Set Excel = CreateObject("Excel.Application")
Excel.Visible = True
On Error GoTo 0
Set wbook = Excel.Workbooks.Open(pathtoexcel.Text)
'Set wsheet = wbook.Worksheets(worksheetname.Text)
Set wsheet = Excel.Worksheets(worksheetname.Text)
findlastrow = wsheet.Cells.Find(What:="*", _
SearchDirection:=xlPrevious, _
SearchOrder:=xlByRows).Row
findlastrow = findlastrow + 1
stoppoint = 1
Do Until stoppoint = findlastrow
highlightcells = cells_to_highlight.Text
'the type mismatch happens on the next line
findserialnumberrow = Excel.Worksheets("Autocar WX _ Schedule").Cells.Find(What:=highlightcells, _
after:=ActiveCell, _
SearchDirection:=xlNext, _
SearchOrder:=xlByRows).Row
Findserialnumbercolum = wsheet.Cells.Find(What:=highlightcells, _
after:=ActiveCell, _
SearchDirection:=xlNext, _
SearchOrder:=xlByColumns).Column
wsheet.Cells(findserialnumberrow, Findserialnumbercolum).Select
wsheet.Activate
Excel.ActiveCell.Interior.Color = CommonDialog1.Color
'Findserialnumbercolum = wsheet.Cells.FindNext
firstnumbercheck = findserialnumberrow
firstrunnumber = findserialnumberrow
If firstrun = True Then firstnumbercheck = ""
If firstrunnumber = firstrunnumbercheck Then GoTo endloop
If firstrun = True Then firstrunnumbercheck = firstrunnumber
firstrun = False
Loop
endloop:
wsheet.Cells(findserialnumberrow, Findserialnumbercolum).Select
wsheet.Activate
wbook.Save
wbook.Close
Set wsheet = Nothing
Set wbook = Nothing
Excel.Quit
Set Excel = Nothing
Unload Me
'form_load
Update_Excel.Show
End Sub
Program Runs Differently In Debug Then At Runtime
I know I'm probably throwing a needle in a haystack, but this is "bugging" me. (Ha!)
I have a table with a field that gets populated based on some criteria. At rumtime the field will be empty, but if I step through (F8) the field will populate. I promise I'm using the same criteria both times. It's almost as if speed is ano issue. But I know that sounds corny. (Unlike my pun.)
Thanks.
braney
The Bigger The Program, The Slower The Code Runs?
I'm making a checkers program, which is quite big(around 500kb in compiled form.)
It includes alot of features such as tournments, rated games, tutorials and etc. (many public subs, functions and forms)
I was wondering if the "search funtion" (which searches for the best move) would run a lot faster if the program would've been smaller..
Should I embed the "search funtion" in a seperated dll file?
Any tips to make the "search function" run faster?
Database Being Overwritten Each Time Program Runs
We are using Visual Studio 2005 (Visual Basic) and an MS Access database.
The program is simple... it is merely inserting a record into a table in the database. The program works fine, it does what it is supposed to do. However, every time we run the program through Visual Studio (via F5), it copies a master copy of the db (the one in the root project folder) over the new one that was updated through the program (the one in indebug).
No matter what parameters we change(such as changing the connection string to point to one or the other of the two db copies), this problem still persists. The changes we make through the program stay in the indebug version until we run the program again, at which time the data reverts to the project root version. Are we forgetting something?
*** RESOLVED *** Program Runs Once Then Requires Reinstallation
I have written a program that will allow a user to input a bunch of stats and store it in an Access DB. Excel reports can then be generated. The program works great, exactly like I want it to..... almost.
The problem is that I can install the program, run it, and close it down.... everything is fine. But when I try to launch the program again, I get an error - "File Path Access Error 75." The program will not run again; I have to uninstall the application, then reinstall it to get it to run again.
I only access 2 files - an .mdb file and a .dat file - both of which (I believe) I am closing correctly after use. So why would I get this error when the application runs just once? Rebooting doesn't help; I am an admin on this machine and have all of the necessary rights and permissions.
App was developed with VB 6 Pro on a Windows 2000 machine. Error occurs on Windows 2000 machines; have not tested on other versions of windows.
I am attaching the complete source code. Please Help!
Edited by - doobielg on 7/5/2005 8:24:00 PM
Compiled Program Won't Run
Hello, I have a probem with VB. When I run my projects from inside VB, they work fine, but when I compile them and launch the executable, the program does not open at all and I just hear the windows beep. I think that it used to work, but now it wont. I tried reinstalling VB, but the programs still don't work. I made a simple project, with a window and a button that pops up with a messagebox when you click it. It is the simplest thing and the exe will not work! Could it be a software conflict with something else I have installed? Please help.
Thanks
IDE V Compiled Program Run...
I have an error in my program. I don't know what causes it, nor do I know how to solve it. It occurs when I run my program in the IDE, however it does not occur when my program is compiled.
My question: Since I haven't had this happen in a compiled version of a program, can I simply leave it alone? Is it really an error if it occurs only in the IDE?
Has anyone else ran into such an error?
Compiled Program Won't Run
Hi everyone. I have writen an app that runs perfectly from the development environment, even if I select "Run with full compile". When I make the EXE, however, and run that, it doesn't even open - crashes with a Windows "FSEicas has perfomed an illegal operation, and will be closed" error box. The error details are:-
Code:
FSEICAS caused an invalid page fault in
module MSVBVM50.DLL at 017f:741bd10f.
Registers:
EAX=38cc036a CS=017f EIP=741bd10f EFLGS=00010206
EBX=740ddc7f SS=0187 ESP=0071f0e0 EBP=0071f50c
ECX=00713e7c DS=0187 ESI=0071f4d8 FS=43d7
EDX=0000005b ES=0187 EDI=740de2f2 GS=0000
Bytes at CS:EIP:
83 78 08 00 0f 85 02 64 00 00 8b 46 08 66 81 60
Stack dump:
741bd0d2 004defa4 004defb8 0071f518 0071f5f4 00d5b8f4 45c4e000 0000189c 00000187 0071f118 00000000 00000000 c4039588 c3beb3df c221f31e c1eab5fe
Can anyone help me out ?
Richard
Tell If Program Is Compiled Or Not?
Hi,
How can I tell if my program is running as uncompiled (i.e still in VB) or is running as a compiled executable?
My program saves it's current path in a setting in the registry every time it starts, but I have an old version of my program running while still using the current version so this registry setting ends up pointing to the the wrong file and I then forget about it and all sorts of terrible things end up happening.
Any ideas anyone?
How Do You Get The Data (after The Program Runs) To Show Up On Your Computer Screen??
Hello,
I am very new to VB. Well I have always been told that there is no such thing as a dumb question, so here it goes.....
When I execute the program...I do not get any data on my screen.
How to you print the data to the screen or how do you make the data show up on the screen???
Could you please provide some code that I can use to look at and learn from.
I have posted my code, so far, below:
Thanks
bhowerton
Code:
Private Sub mnuFileOpen_Click()
Dim i As Integer, n As Long
Dim Lines() As String
Open "c:gdss.txt" For Input As #1 'Open the file
Lines() = Split(Input(LOF(1), 1), vbCrLf) 'Read all the lines into an array
Close #1 'Close the file
n = UBound(Lines) 'Find out how many lines were read
ReDim aircraft(n) 'Dimension all the arrays to the needed size
ReDim mission_type(n)
ReDim mission_number(n)
ReDim leg(n)
ReDim icao(n)
ReDim sched_depart_date_time(n)
ReDim actual_depart_date_time(n)
ReDim delay_code(n)
ReDim delay_time(n)
For i = 0 To n 'For all the lines read
lineParts = Split(Lines(i), ";") ' Split into fields
aircraft(i) = lineParts(0) ' Assign the fields.
mission_type(i) = lineParts(1)
mission_number(i) = lineParts(2)
leg(i) = lineParts(3)
icao(i) = lineParts(4)
sched_depart_date_time(i) = lineParts(5)
actual_depart_date_time(i) = lineParts(6)
delay_code(i) = lineParts(7)
delay_time(i) = lineParts(8)
Next
End Sub
NEWBIE: A Program That Runs && Extracts Certain Data From Log File
Hi All,
I am new to VB and wanting to built an application that finds errors in my log files and then it tells me which shops had those errors. To give you better idea please see my log file attached (attached as image).
i need to find certain error messages from that log file & extract the information RELATED TO THOSE ERRORS (i don't need to extract those errors themselves)
Where - how do i start? Is there a program or code that is already there that i can use?
Pointing me to the direction will be much appreciated.
Feel free to ask if you need more info or even the log file.
Thanks
-S
|