Search:

Type: Posts; User: Eduardo-

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Vb6: read richtextbox line by line; out of string space

    Redacted (before posting).

    I'll follow my rule of not answering this kind of messages.
    I can say that now, at least once, I did it.
  2. Re: Vb6: read richtextbox line by line; out of string space

    I understand your idea, but I think what you are not realizing is that every time that you call Command1_Click, it is doing exactly everything that is inside Command1_Click, including calling...
  3. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    I think I agree with everything.

    ☮︎
  4. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    I've read your post again, and decided to give it some of my valuable time.

    PS: I didn't review, some phrases may not be perfect (maybe later if I feel like it).

    Some parts changed order:


    ...
  5. Re: Vb6: read richtextbox line by line; out of string space

    He sees issues, but doesn't connect them.
  6. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    I see jbro that you like troubles.
    I wish you find all the troubles that you want.
  7. Re: check if listview exist if not then add

    If Not ListItemExistsByText(ListView1, PacketArray2x(1)) Then
    With ListView1.ListItems.Add(, , PacketArray2x(1))
    .ListSubItems.Add , , PacketArray2x(2)
    .ListSubItems.Add , ,...
  8. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Advices are welcomed in general, and many times they have been helpful (other times), but not when the issue was clearly explained many times that it had nothing to do with DoEvents, and he still...
  9. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    I'm thinking in writing an article about DoEvents like I already did about Twips/Pixels/DPI awareness, another difficult subject that even some most skilled programmers do not get it right, because I...
  10. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Thanks for your idea.
    I was going to leave it as it is, because what user would be opening that file anyway? But you are correctly pointing that may be running a background backup utility or...
  11. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    You must have read somewhere that DoEvents was "evil" and "should never be used".
    Probably in many places by many different people.

    But it is myth.
  12. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    No. You need to actually modify something.
  13. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Once more: there is no problem with DoEvents.
  14. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Yes.



    185496

    At:


    Set gDataBase = DBEngine.OpenDatabase(DatabasePath)
  15. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    OK, I was able to recreate the situation of the error:

    185489

    I did what I already described in some other message:

    I started to compress the database file to a rar file using Winrar, and...
  16. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Nice try, keep trying.
  17. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Do not waste time. I have this program very advanced already.
  18. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Who or what would be "they" in your sentence?

    You solved the thread many times already, you seems to be a master thread-solver :cool:
  19. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    You could? LOL!

    Yes, I also could use some threading class, that would add a lot of complexity and would be a lot harder to debug (and have many, many crashes) for no reason (having exactly the...
  20. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    OK, I won't use any OCX anymore, because MS and other authors don't know what I'm doing.
    Good luck, specially with your business.
  21. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    And your suggestion of using timers instead...
    Using timers would produce exactly the same situations.

    I really think that you don't understand DoEvents.

    The only difference using timers...
  22. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    The problem was that generic error "Too busy" instead of saying something more specific.
    I now handled it from my side:


    Public Sub CloseDatabase()
    If Not mDataBase Is Nothing Then
    ...
  23. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    I see you are too narrow-minded about how program's client code could work.
    And I mean, right or wrong. A component maker should think in all situations, and not to expect what he thinks is the...
  24. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    There is no reason for that to be a problem (if there are not windows that can receive messages involved). I don't know what The Trick would say, but if he says that there is a problem, I'm quite...
  25. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    The main problem seems to be the locking mode of SQLite, but I'll have to live with that.
    I think it might be possible in a component to handle transactions automatically, but not easy to do (and...
  26. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    PS: it seems that the latter cause if the "too busy" error was caused by closing a connection without ending the current transaction.
    Now I'm testing again with that fix and seems not to cause the...
  27. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    That's already done here (or something like that).
  28. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    You are very funny.
    Your misunderstanding of programming with DoEvents seems to be uttermost (I would never guessed).



    Yes, I guess that could help in some cases, but it should not be...
  29. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    I don't think that the database driver (the C code) is creating any dummy window to process messages, and I'm not messing up anything in my own code, maybe your component creates a window and does...
  30. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    I also noticed that at a time, when the database file was opened by another program,


    Set gDataBase = New_c.Connection(DatabasePath)

    opened the database anyway. But much further in the code,...
  31. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    I can't work like that. I need the component to be more intelligent in handling error situations transparently.

    Also, I see some misconceptions.
    There is no cConnection.Close. This relies...
  32. Re: Convert binary data to a valid Unicode string whitout wasting (much) space ❓

    Unfortunately, I definitively came to the conclusion that there must be a bug in RC6. There is no database (connection) open, and I open a new cConnection and can't do anything that involves an...
  33. Replies
    196
    Views
    22,002

    Re: VB SQLite Library (COM-Wrapper)

    I tested with the version that is found at the link I posted (I just downloaded it for the test).
    You sent me that file before, probably another compilation? But now I used that one that is...
  34. Re: vb6 database query sql contains like operator fail to work in Window 11?

    Do you realize that people trying to help here want to have the test project in the condition that produces the error already?

    Perhaps you can provide the test project with the database with the...
  35. Replies
    196
    Views
    22,002

    Re: VB SQLite Library (COM-Wrapper)

    My test where it worked on pair of RC6 was wqweto's compilation.
    I also noticed that there is also too much overhead when using the "normal" fields collection, but it worked OK when accessing the...
  36. Re: vb6 database query sql contains like operator fail to work in Window 11?

    Are you joking?
  37. Replies
    7
    Views
    318

    Re: Backup app help

    If the same file is added twice, I would compare the date of the new with the one already in the zip, if it is newer I would replace the file, but if the date is the same or before, I would not add...
  38. Replies
    196
    Views
    22,002

    Re: VB SQLite Library (COM-Wrapper)

    ' DAO
    Dim f2 As Field
    Dim f3 As Field
    Dim f4 As Field

    iT1 = Timer
    Set iRecDAO = iDbDAO.OpenRecordset("Files")
    iRecDAO.Index = "Path_Hash"
    Set f2 =...
  39. Replies
    196
    Views
    22,002

    Re: VB SQLite Library (COM-Wrapper)

    So, there is a huge performance penalty for accessing through the normal interface.

    Times now:


    RC6-Chunks: 0,85
    DAO: 1,3
    VBSQLite Cursor: 0,41
    RC6 Cursor: 0,38
  40. Replies
    7
    Views
    318

    Re: Backup app help

    The problem is there, nobody knows how you are zipping the files.
    If you are using a program, usually it will ask for overwrite or will overwrite the file without asking when the same file already...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width