Viske's Profile
Reputation: 24
Tradesman
- Group:
- Contributor w/DIC++
- Active Posts:
- 70 (0.1 per day)
- Joined:
- 07-June 11
- Profile Views:
- 1,034
- Last Active:
Oct 10 2012 12:15 PM- Currently:
- Offline
Previous Fields
- Country:
- GB
- OS Preference:
- Windows
- Favorite Browser:
- FireFox
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- PC
- Your Car:
- Who Cares
- Dream Kudos:
- 50
Posts I've Made
-
In Topic: Small Corporation Woes
Posted 1 Oct 2012
As someone who makes ~$11/hr (converted from £) as a developer, where I manage my own projects as a sole developer (others are doing different projects that I'm not directly involved with currently), doing front-end and back-end work, I'm glad to know that I should be getting much more.
As for your situation, I agree with lordofduct. Tell them that he's helped solve problems that you couldn't have on your own, that he's a valuable team member, and losing him would cost them more than increasing his wages. If they don't make an effort to talk about it, at the minimum, he should be leaving ASAP as they're likely just stalling, as has already been said. -
In Topic: Securely connecting to SQL
Posted 1 Oct 2012
Have you looked in to storing your connection string in the app.config then encrypting using aspnet_regiis? You can see how to do it here.
You'll need ASP.net to use aspnet_regiis. -
In Topic: The process cannot access the file problem
Posted 29 May 2012
tlhIn`toq, on 29 May 2012 - 02:26 PM, said:The very nature of the using costruct
using( Filestream ... ) { ... }
Is that you don't have to remember to .Dispose and .Close these things. That's handled for you by the framework.
That's why the OP can use the files upwards of 10 times before the error occurs.
Ahh, this was something I didn't know of. Thanks for clarifying. -
In Topic: substring, lastindexof problems, getting no output!
Posted 29 May 2012
Read the error that you're given. It's telling you that on the line arg1 = text.Substring(start + 1, end - start - 1) Length cannot be less than zero. When you have !string one start and end are the same, because there is only one space. In this case, start and end are both 7.
Going through it.
Substring(startIndex, length); Substring(start + 1, end - start - 1); Substring(7 + 1, 7 - 7 - 1); Substring (8, -1); // This is illegal. Length (-1) cannot be less than zero. Also, having length be longer than the startIndex to the end of the string will provide an error.
Now that you know why it's happening, try work out a way to compensate for it. -
In Topic: The process cannot access the file problem
Posted 29 May 2012
It's the same problem as previously, you're trying to access the file before it is released. I'm not sure why it's taking more than 10 seconds though.
Also, I can't see you releasing the file yourself at all. Try closing the file after you've accessed what you need to, by using .Close() on your StreamReader and FileStream objects. If it's still an issue, try timing your methods to find out how long they're taking.
My Information
- Member Title:
- D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
- Location:
- England, UK
- Interests:
- Programming, General Technology, Music, Playing Guitar, Gaming, Graphic Design, Sport
- Years Programming:
- 1
Contact Information
- E-mail:
- Private
Friends
Viske hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
Viske has no profile comments yet. Why not say hello?