Macros and Programming
I wonder if you can help me please. I have a quite involved macro that works the majority of the time.
It sets a number of fields as variables and checks certain conditions are met and then saves fixed text panels to fields, selects a screen preview format, waits for user confirmation and then changes to a print format and prints using a PDF generator.
Occasionally, I get the error message 'Cardbox has encountered a fatal error and needs to close'.
Alongside Cardbox we use a web syncronisation program which pushes/pulls details from our sql database so this macro adds the date to the changed field so syncronisation happens. To store the new variables which are created by the macro we use rec.Edit and rec.Save
I'm guessing this error may be that somehow the users PC and our server which runs the sync program are somehow both editing the record at the same time.
Does anyone have any ideas?
16:56:27.416 S_RECORDS_ADDED(+347744), length=10
I've got the same thing and not only when running macros. It only occurs however on our terminal server (Win2008, 64bit). All other systems run fine.
Thanks for the reply Charles, this is only happening for me when I run this macro. The strange thing is I can re-open cardbox and run the same macro with the exact same data and get no error.
We also run 2K8, 64 bit on our server and don't have any problems there though if that helps!
Sometimes, long time ago, I also met this in a macro.
Is it possible to get any official help from the Cardbox guys now there are no support subscriptions? I'm pretty stuck with this now.
Did you do what Cardbox asked you to do when it crashed?
I wrote you before that this error can caused by your macro code.
I didn't send the log to Cardbox as support is no longer sold and our subscription has expired.
On the webpage re support subsciptions it says if you need help try the forums.
If sending to Cardbox is possible, of course I will do this.
The macro is 1700 lines long and it doesn't crash on a line... it does everything it should do and then comes up with Cardbox has encountered a fatal error and needs to close.
Thanks for your help.
Having read your post, I started Cardbox and guess what? It crashed when I tried to open a database. I wrote to you before that it does not only happen when you run macros, and it does not only happen to Cardbox. In my case the logs always contain the line:
12:08:43.177 Exception code: C0000005 ACCESS_VIOLATION
as does your log.
I think it has no use going through your macro code. You will not find anything wrong there.
First 3 lines of the report says two things I think:
I use for printing PDF's a PDF generator with scripting possibilities. It's cheap, and you can print using a macro. All needed settings - file name etc - you can enter in registry keys. Never met problems with it (PDFCamp) and no user-interaction needed.
Btw: also Cardboss is a member of this forum...
|© 2010 Cardbox Software Limited|