Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. cpjust

    Sometimes a hard drive disappears when I boot up

    New update, that configuration eventually failed too. I then connected everything back the way it was, but I moved the hard drive that was usually failing from the bottom slot up one slot in my case so it would be further away from the big bundle of power cables coming out of my PSU. It's been...
  2. cpjust

    Sometimes a hard drive disappears when I boot up

    rclarke250 I think you may be right about the power supply cables. I disconnected 1 of the 500GB drives and my system ran perfectly for a week with no errors in the Event Log. Now I reconnected it and disconnected a different 500GB drive and I'll try that for a week and see how that goes... If...
  3. cpjust

    Sometimes a hard drive disappears when I boot up

    I should probably also check my Event Viewer more often. I'm seeing these errors quite a bit: Source : Event ID : Error message atapi : 11 : The driver detected a controller error on \Device\Ide\IdePort2. disk : 15 : The device, \Device\Harddisk0\DR0, is not ready for access yet. disk : 51 ...
  4. cpjust

    Sometimes a hard drive disappears when I boot up

    My first PSU started smoking, so I replaced it a few years ago. I can check which drivers I'm using, and if updating them doesn't work, I'll try disconnecting drives and adding them back one at a time.
  5. cpjust

    Sometimes a hard drive disappears when I boot up

    I use the video, sound & NIC on the motherboard. 1 power cable goes to the SSD & the 1TB drive. 1 power cable goes to the other 3 500GB drives. I also have an Asus DVD-RW drive. 1 power cable goes to the DVD drive, the Ultra Chilltec & 2 fans in the case.
  6. cpjust

    Sometimes a hard drive disappears when I boot up

    OK, the power supply is an Antec EA-650 (650W). The motherboard is an Asus P5G41T-M LE. I also have a Syba (I/O crest) SATA III PCI-e controller card for the SSD drive.
  7. cpjust

    Sometimes a hard drive disappears when I boot up

    First motherboard was an ASUS P5K3 Deluxe. At that time I only had 3 x 500GB Seagate Barracudas (later changed to WD) in a RAID-5 array. Next motherboard was a Gigabyte piece of crap (don't remember the model, but maybe something like GA-G41MT) no RAID. Current motherboard is Asus (maybe...
  8. cpjust

    Sometimes a hard drive disappears when I boot up

    I'm running Vista x64 SP2 with 8GB RAM, 4 hard drives & an SSD (non-RAID). Vista is on the SSD. About once or twice a week, when I boot up it sits at a black screen for a few minutes and the HDD light on my case stays on instead of flashing; then it finally gets to the login screen. After I...
  9. cpjust

    Why pointer is still NULL after function calling?

    ...value, including pointers. When you pass a pointer, a copy of the address is made in the function. It's the same as if you were doing this: char* str1 = NULL; char* str2 = str1; str2 = malloc(20); // This doesn't change str1. If you want to update the value of your pointer (i.e. the...
  10. cpjust

    WindowsXP registry changes

    Did you read the MSDN? http://msdn.microsoft.com/en-us/library/ms724844%28v=VS.85%29.aspx Although if you only need to change an existing key instead of creating a new one, you can use RegSetValueEx() http://msdn.microsoft.com/en-us/library/ms724923%28v=VS.85%29.aspx Although you'd need to open...
  11. cpjust

    can I use client and server in different languages?!

    Why do you want to make the server in C? If it works the way it is now, I'd say just leave it as Python.
  12. cpjust

    ANSI C structures, how to pass a value to

    What's an array? char* is a pointer.
  13. cpjust

    ANSI C structures, how to pass a value to

    NOTE: This does NOT allocate any memory for the pointer. It just sets the pointer to NULL. Either use an array: char thename[80]; or allocate some memory for the pointer: char* thename = malloc( 80 * sizeof(char) );
  14. cpjust

    Calloc memory allocation

    My guess would be memory fragmentation. Are there any tools that show a map of physical memory so you can see the largest continuous block of memory?
  15. cpjust

    pass a string to a function

    Doesn't that only work with arrays like this? char newphrase[80] = {0}; It would be a lot easier to just use the std::string class instead of char* strings.
  16. cpjust

    Trouble with Template class and Types

    if(classType == 0) { Numbers *temp; temp = new Numbers[size]; } else if(classType == 1) { Characters *temp; temp = new Characters[size]; } This is useless since the temp variables go out of scope after the } and therefore only leaks memory. Container<typeid(temp)>...
  17. cpjust

    Build dynamic JSON-like data structure

    Looks like it would be something like this: map<string, map<string, map<string, string> > >
  18. cpjust

    Can't get JDBC to work with DB2 using jdbc:db2:&lt;database&gt;

    Nevermind. I finally got it to work. Apparently the db2jcc drivers I had in my classpath (which worked fine with Type 4 JDBC URLs) don't work with Type 2 JDBC URLs. When I added the db2jcc drivers from my DB2 Express-C to my classpath it worked.
  19. cpjust

    Can't get JDBC to work with DB2 using jdbc:db2:&lt;database&gt;

    ...protocol error that caused deallocation of the conversation. A DRDA Data Stream Syntax Error was detected. Reason: 0x3 DB2ConnectionCorrelator: *LOCAL.db2inst1.100917205438 com.ibm.db2.jcc.b.DisconnectException: Execution failed due to a distribution protocol error that caused deallocation...
  20. cpjust

    How do I check if an Index was system-generated?

    Actually I came up with my own hack by checking if the name starts with 'SYS_IDX' (although I can't remember if it was MySQL, HSQL or both that gave system-generated Indexes with that prefix). I also assume the Index is system-generated if the Index Name == Unique Constraint name & Index table...

Part and Inventory Search

Back
Top