Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
am sujatha
i had developed program for webcam picture through vb.net(2010). I created exe file.Its working my PC. bui i installed Client PC its not working.Error is :windows application vb.exe has stopped working

CSS
Problem signature:
  Problem Event Name:   CLR20r3
  Problem Signature 01: windowsapplicationvb.exe
  Problem Signature 02: 0.0.0.0
  Problem Signature 03: 52bd7104
  Problem Signature 04: mscorlib
  Problem Signature 05: 4.0.30319.17379
  Problem Signature 06: 4f2730e6
  Problem Signature 07: 24a
  Problem Signature 08: 18
  Problem Signature 09: System.InvalidOperationException
  OS Version:   6.1.7600.2.0.0.256.48
  Locale ID:    1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt



pls help me..its very urgent
Posted
Comments
Thomas Daniels 28-Dec-13 5:43am    
Can you show your code please?
Member 10465707 30-Dec-13 0:07am    
Imports WebCamLib
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Windows.Forms
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.Shared.ReportInfo
Imports CrystalDecisions.Shared.TableLogOnInfo
Imports CrystalDecisions.CrystalReports.Engine.ReportObject
Imports System.Data.Odbc
Imports System.Data
Imports System.Drawing.Image
Imports System.Collections
Imports System.IO.IOException
Imports System.IO
Imports System.Reflection.Emit.AssemblyBuilder

Public touchless As New TouchlessLib.TouchlessMgr
Public camera1 As TouchlessLib.Camera = touchless.Cameras.ElementAt(0)

Public Function resizeimage(ByVal sourceimage As Image, ByVal newheight As Integer, ByVal newwidth As Integer) As Image
Dim bmb As New Bitmap(newwidth, newheight)
Using g As Graphics = Graphics.FromImage(bmb)
g.InterpolationMode = Drawing2D.InterpolationMode.Bicubic
g.DrawImage(sourceimage, 0, 0, newwidth, newheight)
End Using
Return bmb
End Function

Dim newimg As Image = resizeimage(PictureBox1.Image, PictureBox1.Width, PictureBox1.Height)

'If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
'savaname = SaveFileDialog1.FileName
' MessageBox.Show(savaname)
newimg.Save("D:\timeoffice\" & savaname & ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg)

Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
PictureBox1.Image = touchless.CurrentCamera.GetCurrentImage
End Sub
ZurdoDev 28-Dec-13 11:18am    
Looks like you'll need to add some better logging so you can see a stack trace.
Member 10465707 30-Dec-13 0:07am    
sir pls help me
ZurdoDev 30-Dec-13 8:19am    
How can I help? There isn't enough information. I see that you are trying to save to the D drive. Does that directory exist on the computer and does your app have permissions to write to that folder?

1 solution

It's impossible to tell you how to fix this with the information you've provided. There is nothing useful in the data you're provided.

Ideally, you need a dump and stack trace to find where the code blew up. In the absence of a dump, you need some other method of determining what the code was doing at the time of the crash. This is normally done with the code being rewritten to log various method calls and values at key points.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900