Re: Compiled Structure does not Match Data

2021-10-05 Thread Douglas von Roeder via 4D_Tech
The WEDD was a stretch - I know it officially went away but I've seen
anomalies in structure files from waay back.

"the structure file is itself a database and "Resources" is one of its
internal tables.
the error is effectively saying that the structure file can not be
modified."
Thanks for clarifying that.

I'm the lucky stiff that had a corrupted table and, when I contacted TS
they had to do some research on that. Of course, it does make sense that 4D
would have to have its own database internally but let's not kid ourselves
- we all know that what happens inside 4D is actually magic. :-)

--
Douglas von Roeder
949-910-4084


On Tue, Oct 5, 2021 at 6:09 PM Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> The structure and data files do not correspond to each other. The data
> file cannot be opened with this structure."
> That's a holdover from when 4D used the "WEDD" resource but that went away
> after 2004.
>
> the WEDD resource was indeed a token that was used to match a structure
> file to a data file,
> by default it was empty but it could be edited with 4D Customizer Plus.
> a UUID is used since v11 as an internal signature to check that the data
> file corresponds to the structure file.
>
> the structure file is itself a database and "Resources" is one of its
> internal tables.
> the error is effectively saying that the structure file can not be
> modified.
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Compiled Structure does not Match Data

2021-10-05 Thread Keisuke Miyako via 4D_Tech
The structure and data files do not correspond to each other. The data
file cannot be opened with this structure."
That's a holdover from when 4D used the "WEDD" resource but that went away
after 2004.

the WEDD resource was indeed a token that was used to match a structure file to 
a data file,
by default it was empty but it could be edited with 4D Customizer Plus.
a UUID is used since v11 as an internal signature to check that the data file 
corresponds to the structure file.

the structure file is itself a database and "Resources" is one of its internal 
tables.
the error is effectively saying that the structure file can not be modified.
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Compiled Structure does not Match Data

2021-10-05 Thread Keisuke Miyako via 4D_Tech
that will happen if you upgrade a structure file, then upgrade its data file, 
and try to use the 2 files.

that is not allowed.

you must either migrate both the structure and the data to v11+ at the same 
time, or
use the already upgraded v11+ structure file to migrate the pre-v11 data file, 
or
place the catalog file generated during the initial migration next to the data 
file when performing the 2nd migration for data.

the way it works is that during a migration to v11+, a new UUID is assigned to 
the structure file and its data file.
that means if you perform a migration more than once, each file will have a 
different UUID assigned.
when you open a pre-v11 data file using a post-v11 structure file, the data 
file will inherit its UUID from the structure file so there no problem.
you have a problem when the files are converted independent of each other.
to explicitly assign a UUID that was issue during an earlier migration  you 
must place the catalog file next to the data file.

if you still have the data file that is not converted yet, you can use the 
desired structure file or a catalog file to assign the same UUID.
if you have already made significant changed and a retry is not an option, you 
are in trouble.

I made a simple tool to directly over write the UUID but it is a last resort.

https://github.com/miyako/4d-utility-uuid-manager

The structure and data files do not correspond to each other. The data file 
cannot be opened with this structure.

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Compiled Structure does not Match Data

2021-10-05 Thread Douglas von Roeder via 4D_Tech
Peter:

"The structure and data files do not correspond to each other. The data
file cannot be opened with this structure."
That's a holdover from when 4D used the "WEDD" resource but that went away
after 2004 (?).

[time passes]

Yup, mind like a steel trap
…rusty. ;-)


"Cannot delete record in table Resources of Database…"
Do you have a table named "Resources"?

--
Douglas von Roeder
949-910-4084


On Tue, Oct 5, 2021 at 3:53 PM Peter Adam via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> I apolitically;ogise for asking a question related to v13 but my client
> has been tardy in accepting an upgrade.
>
> However before making the move I have had to make some changes to the v13
> DB and something that has been modified without issue for many years  now
> is failing when I compile and merge it.
>
> I compile and merge the structure with its datafile, no problems reported.
>
> I then launch the compiled server point it at the datafile that has just
> been used in the compiling process and i get the message
> The structure and data files do not correspond to each other. The data
> file cannot be opened with this structure.
>
>
> When I click the close button on the dialog, I then get an error dialog,
> Cannot delete record in table Resources of Database…
>
> and the details list a lot of Cannot save record… and the key line seems
> to be Wrong header.
>
> All this is happening on Windows 10.
>
> Suggestions?
>
>
>
>
> Cheers,
>
> Peter Adam
> Adam, Zievert & Associates P/L
>
> e: peter.a...@me.com
> Skype Phone: +61 3 9016 379
> t:  +61 3 9836 3539
> m: 0419 552 462
> www.adamzievert.com.au
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Compiled Structure does not Match Data

2021-10-05 Thread Charles Miller via 4D_Tech
you can try deleting match file if that doesn’t work try opening with
original copy of structure and run tools

Regards

Chuck

On Tue, Oct 5, 2021 at 6:53 PM Peter Adam via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> I apolitically;ogise for asking a question related to v13 but my client
> has been tardy in accepting an upgrade.
>
> However before making the move I have had to make some changes to the v13
> DB and something that has been modified without issue for many years  now
> is failing when I compile and merge it.
>
> I compile and merge the structure with its datafile, no problems reported.
>
> I then launch the compiled server point it at the datafile that has just
> been used in the compiling process and i get the message
> The structure and data files do not correspond to each other. The data
> file cannot be opened with this structure.
>
>
> When I click the close button on the dialog, I then get an error dialog,
> Cannot delete record in table Resources of Database…
>
> and the details list a lot of Cannot save record… and the key line seems
> to be Wrong header.
>
> All this is happening on Windows 10.
>
> Suggestions?
>
>
>
>
> Cheers,
>
> Peter Adam
> Adam, Zievert & Associates P/L
>
> e: peter.a...@me.com
> Skype Phone: +61 3 9016 379
> t:  +61 3 9836 3539
> m: 0419 552 462
> www.adamzievert.com.au
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Server connectivity
  https://www.informed-solutions.com
-
This message and any attached documents contain information which may be
confidential, subject to privilege or exempt from disclosure under
applicable law.  These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution, disclosure,
printing, copying, storage, modification or the taking of any action in
reliance upon this transmission is strictly prohibited.  Delivery of this
message to any person other than the intended recipient shall not
compromise or waive such confidentiality, privilege or exemption from
disclosure as to this communication.
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Compiled Structure does not Match Data

2021-10-05 Thread Peter Adam via 4D_Tech
I apolitically;ogise for asking a question related to v13 but my client has 
been tardy in accepting an upgrade.

However before making the move I have had to make some changes to the v13 DB 
and something that has been modified without issue for many years  now is 
failing when I compile and merge it.

I compile and merge the structure with its datafile, no problems reported.

I then launch the compiled server point it at the datafile that has just been 
used in the compiling process and i get the message
The structure and data files do not correspond to each other. The data file 
cannot be opened with this structure.


When I click the close button on the dialog, I then get an error dialog, Cannot 
delete record in table Resources of Database…

and the details list a lot of Cannot save record… and the key line seems to be 
Wrong header.

All this is happening on Windows 10.

Suggestions?




Cheers,

Peter Adam
Adam, Zievert & Associates P/L

e: peter.a...@me.com
Skype Phone: +61 3 9016 379
t:  +61 3 9836 3539
m: 0419 552 462
www.adamzievert.com.au



**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Where is the trace/debug command?

2021-10-05 Thread Paul Chernoff via 4D_Tech
Sorry, I should have been specific that this is a normal method, it is part
of iLB package. But nothing special about it. The database code runs
without problem if run as compiled.

In iLB_Hook_Starup, a method used to run custom code to set values related
to iLB and is nothing but comments, it goes into debug mode after the last
line. I have tried removing the empty line of the method and the end of the
last line, and then typed in what I deleted. It still goes into debug mode
after running the method.

In iLB_Hook_ObjectMethod it goes into debug mode on the line that has the
command C_POINTER. I moved C_POINTER down a few lines and it went into
debug mode on C_LONGINT.

It makes me think there is something invisible in the Method that is
triggering debug mode. I’ve cut the text, pasted into BBEdit, then copied
from there and back into 4D and same problem.

I can work around this problem by compiling and then running the app in
compiled mode, but that is a bit clumsy.

—Paul



On Oct 5, 2021 at 3:00:01 PM, 4d_tech-requ...@lists.4d.com wrote:

> Message: 1
> Date: Mon, 4 Oct 2021 14:16:22 -0700
> From: Kirk Brooks 
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Subject: Re: Where is the trace/debug command?
> Message-ID:
> 
> Content-Type: text/plain; charset="UTF-8"
>
> It's probably not a trace but an error. What's iLB_Hook? Sounds like
> something there.
>
> On Mon, Oct 4, 2021 at 10:59 AM Paul Chernoff via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> I am porting some 4D databases from v18.5 to v19.2. What is odd is that
>
> some iLB_Hook procedures are triggering tracing. But I look at the
>
> procedures and I do not see the Trace command nor the red circuit. And this
>
> never happened in version 18 or earlier. Is there now some invisible trace
>
> command?
>
>
>
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Where is the trace/debug command?

2021-10-05 Thread John J Foster via 4D_Tech
Hi All,

Barclay (author of iLB) has had issues where the Trace command in the source 
code files, when compiled with current versions of 4D v18/v19 will have this 
error.

I believe, Barclay has to either comment out the Trace commands and recompile 
OR write a wrapper around the Trace command so that it’s not called un less 
it’s a Source app.

I’ve cc’d Barclay and I am sure he is aware.

John...


> From: Kirk Brooks 
> Subject: Re: Where is the trace/debug command?
> Date: October 4, 2021 at 2:16:22 PM PDT
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> 
> 
> It's probably not a trace but an error. What's iLB_Hook? Sounds like
> something there.
> 
> On Mon, Oct 4, 2021 at 10:59 AM Paul Chernoff via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> I am porting some 4D databases from v18.5 to v19.2. What is odd is that
>> some iLB_Hook procedures are triggering tracing. But I look at the
>> procedures and I do not see the Trace command nor the red circuit. And this
>> never happened in version 18 or earlier. Is there now some invisible trace
>> command?
>> 
>> —Paul Chernoff
>> **
>> 4D Internet Users Group (4D iNUG)
>> New Forum: https://discuss.4D.com
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ==
> 
> 
> 
> 
> From: Wayne Stewart 
> Subject: Re: Where is the trace/debug command?
> Date: October 4, 2021 at 3:11:47 PM PDT
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> 
> 
> Kirk,
> 
> iLB is from listbox magic (Barclay Berry) distributed by Walt Nelson a few
> years back.
> It’s a hook method for the component.
> 
> Wayne
> 
> On Tue, 5 Oct 2021 at 08:16, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> 
>> It's probably not a trace but an error. What's iLB_Hook? Sounds like
>> something there.
>> 
>> On Mon, Oct 4, 2021 at 10:59 AM Paul Chernoff via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>> 
>>> I am porting some 4D databases from v18.5 to v19.2. What is odd is that
>>> some iLB_Hook procedures are triggering tracing. But I look at the
>>> procedures and I do not see the Trace command nor the red circuit. And
>> this
>>> never happened in version 18 or earlier. Is there now some invisible
>> trace
>>> command?
>>> 
>>> —Paul Chernoff
>>> **
>>> 4D Internet Users Group (4D iNUG)
>>> New Forum: https://discuss.4D.com
>>> Archive:  http://lists.4d.com/archives.html
>>> Options: https://lists.4d.com/mailman/options/4d_tech
>>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>>> **
>> 
>> 
>> 
>> --
>> Kirk Brooks
>> San Francisco, CA
>> ==
>> **
>> 4D Internet Users Group (4D iNUG)
>> New Forum: https://discuss.4D.com
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> -- 
> 
> Regards,
> 
> Wayne
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**