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. MattWoberts

    Debugging a VB6 class library - VERY SLOW startup

    Sorry, I did try that but forgot to mention it! I tried sp 5 and 6, and neither made a difference. I'm sure its since I went to XP Service Pack 2 that this problem started...
  2. MattWoberts

    Debugging a VB6 class library - VERY SLOW startup

    Hi, I have a COM class library that is reasonably big, say 12 classes in it. It compiles in about 15 seconds. But when I try to debug it, by starting it, I get a delay of about 3-4 minutes, and then again a delay of about 2 minutes when I stop it! I am using VB6 SP2. I tried re-installing...
  3. MattWoberts

    DCOM component simple question...

    Hi, I was wondering if anyone could tell me if it is possible to access a file on the web server from a COM component in a distributed environment? My COM component does this currently since the COM components run on the web server, but if I was to use DCOM to run the COM components on another...
  4. MattWoberts

    Using a library...

    I think you're thinking to hard about this. Once a project has a reference to another DLL, you can creates classes and invoke methods from the referenced dll as easily as if they were in the current project.... All my references are controled by VS.NET, they look like this in the csproj file...
  5. MattWoberts

    Can a VB App read IIS settings?

    Finally......got round to this. Thanks both "bjd4jc" and "Sheco" for providing me with the pointers here to get me started. If anyone else ends up here looking for the same answer, then heres some VB6 Code that does exactly what I wanted: Dim objApp As Object Set objApp =...
  6. MattWoberts

    Can I cache/pool my VB Object?

    Hi, I have a small VB6 COM component that deals with dataacess - it executes SQL statements against a database using ADO. Its an ActiveX DLL, and is apartment threaded (default settings). My problem is that there is a reasonable amount of initialisation code that my COM object needs to do -...
  7. MattWoberts

    Is this a memory leak?

    Mingis, It is deleted in the code snippet you posted. Its in my original code snippet that sText is not deleted - and the reason is that the memory is allocated with the "new" operator, which should be explcitly "deleted".
  8. MattWoberts

    Is this a memory leak?

    Thanks for pointing me to the string class, as a C user I hadn't much experience with the STl :)
  9. MattWoberts

    Is this a memory leak?

    ...of practice with Visual C++, but recently had to take a look at some old code. I noticed this function which returns a date as a string: wchar_t * MyClass::GetDate() { wchar_t * sText; sText = new wchar_t [12]; // Populate sText with a date.... return sText } This is...
  10. MattWoberts

    ORA-600 when I execute a SELECT statment :-(

    I finally got round this by "hacking" the query: I removed the "left join", and converted to a "join", and then UNION'd the whole query with the records that are not in the joined table... Nasty! Thanks for everyones response!
  11. MattWoberts

    ORA-600 when I execute a SELECT statment :-(

    On further investigation it seems like the query is unhappy because I am combining a "LEFT JOIN" with a sub query that references the parent query. If I remove the parts of the where clause in my sub query that reference the parent table, it works. If I change the "LEFT JOIN" to a "JOIN", it...
  12. MattWoberts

    ORA-600 when I execute a SELECT statment :-(

    Thanks for the suggestion, but alas it has the same result. I'm toying with just rewriting this query to amke it run, but I can't think of any other way to do this without the use of the sub-select.....
  13. MattWoberts

    ORA-600 when I execute a SELECT statment :-(

    Yes I can select from the view directly, its only when I join the view onto the table with that specific SQL that I get the error. Also, if I remove the sub-query part of the SQL above, that also removes the error. I'm on Oracle 9i Rel2 btw, running on Windows 2000. I would have a look on...
  14. MattWoberts

    ORA-600 when I execute a SELECT statment :-(

    More information: My view is actually 4 SQL statements UNION'd together. If I remove 3 of the SQL statements so there is no UNION, this solves the problem. So it seeems to be the fact that my view is using UNIONS that upsets Oracle - hmmmmm....
  15. MattWoberts

    ORA-600 when I execute a SELECT statment :-(

    ...a history of versions for each row returned from MyView, and I need to join on the most recent version, so I have this SQL: Select distinct MyView.*, MyTable.Version_NO from MyView left outer join MyTable on MyView.Procedure_ID = MyTable.Procedure_ID and MyView.AppUser_ID =...
  16. MattWoberts

    Can a VB App read IIS settings?

    Not yet - I haven't had the time to spend on it yet :(
  17. MattWoberts

    Can a VB App read IIS settings?

    Thanks - I'll read through the documentation and see what I can come up with!
  18. MattWoberts

    Can a VB App read IIS settings?

    Hi, I need to get my VB6 COM Dlls, to read a file from a web on the same server. All I know is the name of the web - so for example "MyWebApp". Is there any way in VB6 that given the name of the web app I can determine the physical location of this on the machine, so I can go and read a file...
  19. MattWoberts

    Allocating and releasing memory...

    Darn, Sorry all. Just as I posted this I found the solution. In between the creation of the array and its cleanup, I had used memset to wipe it, but had gone beyond the size of the array with memset, hence nasty errors!
  20. MattWoberts

    Allocating and releasing memory...

    Hi, I have this code which allocates a 2 dimensional array in C++: int subElements = 10; int ** myArray; myArray = (int **) new int*[lNumIntervals]; // Array of array pointers for (lTmp=0; lTmp<lNumIntervals; lTmp++) { myArray[lTmp] = (int *) new int[subElements]; memset...

Part and Inventory Search

Back
Top