Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Teach me to read the question properly ;) And you were right about the sp_dboption thing (bad day and I was away from anything with SQL 7 or better on it - did have SQL 6.5 handy though) I would tend to always use full backups every night (if possible) as this makes restores reasonably easy. As to log backups - depends on how many updates occur - if as in your example one or two a day probably not.
  2. Not got VB.Net on the machine in front of me so this hasn't been tested. On the line you are getting the error z(x) probably doesn't point ot a valid array element. a few lines previous you are declaring Dim z() As Double but at no point are you sizing the array. you may want to try the following and see if it helps Sub CreateArray(ByVal streamM As IO.StreamReader) Dim x As Integer Dim q() Dim z() As Double Dim Efile As String Efile = streamM.ReadToEnd q = Split(Efile, vbCrLf) redim z(q.Length - 1) 'Add this line here For x = 1 To q.Length - 1 z(x) = CDbl(q(x)) 'Error I receive: "Object reference not set to an instance of an object." Next x End Sub
  3. Does it fail on a particular line or lines. do you have permissions to the file you are trying to read? Also is the file local or on a network share? ps. any particualr reason why you can't use interfaces?
  4. Generally speaking if the database undergoes few updates then the log itself will remain fairly small and as such the increased disk space is minimal. In a production environment backing up the logs can give a much more recoverable system. Take the scenario where logs are kept seperate from data (ideally seperate physical disks or raid arrays) OS on C: Data on D: Logs on E: if the data is backed up at midnight (Full backup) all data is backed up and logs are purged. work progresses through the day (no further backups) and a disk fails at 15:00 if the disk that fails holds the logs then all the data is still safe on D: if the disk that fails is the Data then last nights backup holds everything up to the start of the day and the Logs (E: ) hold all changes - either scenario results in minimal to no data loss. I can't remember the exact command of the top of my head to change this but it uses the sp_dboption procedure. Hope that helps a bit. the E: bit was turned into a smilie
  5. If the Dll is a COM dll then you shouldn't need the header files to use it with ASP.Net, simply add a reference, select the COM Tab and browse to the DLL. Visual Studio should take care of wrapping the DLL for you.
  6. What kind of things are you storing in the Session collection and how are you accessing it?
  7. What is the FileGet function doing? If you step through the code does it fail within the FileGet routine? Also if the two structures node_drinks and node_pizza have a common set of functions you may want to investigate Interfaces as a possible way of solving the problem.
  8. the problem is probably the fact that the line Mid= CInt((first+ last) / 2) will always equal 50 on the first run through regardless of how many items you've read from the file. You would probably need to have a seperate variable to keep track of the number of valid records read rather than just basing it on the size of the array. If you still have a problem reply and I'll try to knock a sample together.
  9. is Person(50).name1 a valid string?
  10. What is the value of mid at the time of the error? Also when you get the error what is the value of Person(mid)?
  11. gpedit is the Group Policy Editor, basically an administrative tool allowing admins to define settings and configuration on a PC or user basis that will automatically be applied when the PC boots up or the user logs in, overriding the registry settings, but also be removed when the user logs out / PC shuts down. It is an advance on System Policies which shipped pre Win2k / XP, they had a similar idea but updated the regisrty, this caused problems as when a user logged out the system policy wasn't removed.
  12. The other machines will need to have the .Net framework installed.
  13. VB doesn't get the ++ or -- operators though, and I do miss them.
  14. in vb you would use strX += IntSum ;) sorry couldn't resist
  15. Also some other factors could heavily influence apparent performance under .Net (e.g. use of the Cache object, Page / fragment caching) which may or may not be doable under PHP (never used PHP myself)
  16. What is the problem exactly?
  17. I notice you are incrementing a variable called antPoster in the While loop but it doesn't appear to be declared anywhere, on a related note you are not incrementing the numPosts variable within the loop and as such you are just going to keep overwriting the first element in the array.
  18. Out of curiosity what kind of numbers where the 'funny' ones?
  19. Is this a windows or web app?
  20. If you set a break point on the Select Line, what values are you getting for the vmembers variable?
  21. Where you have Select Case vmembers try Select vmembers Also you really should look at System.IO for doing file handling, it's far superior to the VB6 way of doing things
  22. Just curious of the benefits of deriving a customer datatype from an enum with no members as opposed to using a structure or a class to define the customer datatype.
  23. Also how much RAM (physical) do you have and what size Pagefile is in use?
  24. any error in particualr, Exception names or error codes will make it easier for other people to help ;)
×
×
  • Create New...