Object reference error

dualshock03

Well-known member
Joined
Jan 28, 2007
Messages
105
Programming Experience
1-3
Trouble looking for a solution to this problem.. See attached Image..

I dont know if its about the memorystream class.. actually i coded that function in the module class.. i call on imports system.IO, Imports System.Drawing.Imaging still got this error... " object reference not set to an instance of an object"

im working on saving an image togther with strings and dates to my MYSQL database and now im stuck on image(binary) data.. It seems to work when i put this function on the main class (FORM1.vb)..
 

Attachments

  • ERROR.GIF
    ERROR.GIF
    72.9 KB · Views: 35
that font you code in is nasty! I cant tell between comma and period!

How come youre putting several lines on one using : ? That tends to make VB more confusing because its so seldom used

Down to the problem, this looks like an unhandled expcetion so it will probably be breaking as near to the top of the call stack as can be. Ergo I recommend you use the debugger to check what, in the highlighted code, is null..

Just highlighting nouns and pointing to them should be enough..
 
Im tired of using Courier New Font hehehe.. my screen is 14inch LCD.. anyway thanks for answering, i already got it working.,. :)
 

Latest posts

Back
Top