Solved

CopyMemory question

Posted on 2002-06-03
12
257 Views
Last Modified: 2011-09-20
I am trying to use a class I found on a website called CSHFileOp and is located here:

http://www.softcircuits.com/dev/vb_res/tip200106.shtml

When I attempt to use it it dies as soon as it hits the first CopyMemory statement in the code. Can someone else try this class and see if it is something I'm doing wrong? If so, what is giving me the problems? Is it because I'm doing it under NT? I have checked the code twice now and everything looks fine in what I have. Any clues to what is going on? Thanks for any help,

guidway
0
Comment
Question by:guidway
  • 7
  • 2
  • 2
  • +1
12 Comments
 
LVL 38

Accepted Solution

by:
PaulHews earned 25 total points
ID: 7052171
What error are you getting?  Tried it here on 2000 and works ok.
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 7052180
Tried it on NT and it worked.
0
 
LVL 12

Author Comment

by:guidway
ID: 7052184
Nothing. Just the entire program it runs with shuts down. No errors, no messages, nothing. Not even with a On error goto statement.  Did you do anything different to the code?
Thanks for the help,

guidway
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 28

Expert Comment

by:vinnyd79
ID: 7052188
What NT service pack are you running?If you are not running SP6a,try installing it and see if it helps.If you are running SP6a,try re-applying it.
0
 
LVL 38

Expert Comment

by:PaulHews
ID: 7052195
No I didn't change anything.  CopyMemory works fine on NT.  Make sure you are setting up the class properly (not adding too many source files and not enough destination files or something like that.)
0
 
LVL 12

Author Comment

by:guidway
ID: 7052208
Strange... I do have SP6a on the computer. Maybe it is just something I did wrong. I'll try again. Are ya'll on as Administrator or would it not matter? I'm not. Thanks again, I'll let you know what happens. I'll try it and get back to you in the morning...

guidway
0
 
LVL 12

Author Comment

by:guidway
ID: 7052228
Strange enough I copied the class over again and now everything is working fine... Maybe I messed up something when I was transferring the file or something. Oh well. Thanks for testing it. I'll have a moderator split the points between ya'll so as to be fair. Thanks again,

guidway
0
 
LVL 12

Author Comment

by:guidway
ID: 7052244
Strange enough I copied the class over again and now everything is working fine... Maybe I messed up something when I was transferring the file or something. Oh well. Thanks for testing it. I'll have a moderator split the points between ya'll so as to be fair. Thanks again,

guidway
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7052332
I have refunded 25 points to you to help facilitate the point split you are about to process, as requested in your Community Support question request.
Thanks,
Moondancer - EE Moderator
0
 
LVL 12

Author Comment

by:guidway
ID: 7053616
PaulHews,

Thanks for trying that. Here are some points for the help.

guidway
0
 
LVL 12

Author Comment

by:guidway
ID: 7053634
vinnyd79,

I will give you some points, however I am having a slight problem because the form will not allow me to give you 25 points. I have asked the moderator to look into this issue for me. Thanks for your help and I will give you the points as soon as he responds to my posting. Thanks again,

guidway
0
 
LVL 12

Author Comment

by:guidway
ID: 7053681
vinnyd79,

Your points for this question are here:

http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=visualbasic&qid=20307627

Thanks for the help.

guidway
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question