InDesign preferences are reset at startup
BIB_T_MT::CBIBError sometime after deleting text
The command executes without error, and I can continue processing with no problem, but when I reach the end of the loop (either via a continue statement or when I reach the "}" delineating the end of the loop) and try to step to the next instruction, I get a crash.
If I modify the range passed to the DeleteCmd such that one too few or one too many characters are deleted, I have no problem, but if I try to delete the number of characters I want to delete, I get a crash.
Here's what it says in the error window that Visual Sudio 2005 pops up: "Unhandled exception at 0x1e4eaa10 (MyPlugin.pln) in InDesign.exe: 0xC0000005: Access violation reading location 0xfeeeff06."
According to the Output window in Visual Sudio, I've got a BIB_T_MT::CBIBError, but I have no idea what that is or how to debug it. Can someone help? For reference, I've included the contents of the Output window below.
Thanks.
Bob
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: BIB_T_MT::CBIBError at memory location 0x001269e8..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: BIB_T_MT::CBIBError at memory location 0x0012638c..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: BIB_T_NMT::CBIBError at memory location 0x00128444..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: BIB_T_MT::CBIBError at memory location 0x001269bc..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: BIB_T_MT::CBIBError at memory location 0x00126360..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: BIB_T_NMT::CBIBError at memory location 0x00128418..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: BIB_T_MT::CBIBError at memory location 0x001269bc..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: BIB_T_MT::CBIBError at memory location 0x00126360..
First-chance exception at 0x7630b09e in InDesign.exe: Microsoft C++ exception: BIB_T_NMT::CBIBError at memory location 0x00128418..
First-chance exception at 0x1e4eaa10 (MyPlugin.pln) in InDesign.exe: 0xC0000005: Access violation reading location 0xfeeeff06.
Unhandled exception at 0x1e4eaa10 (MyPlugin.pln) in InDesign.exe: 0xC0000005: Access violation reading location 0xfeeeff06.
How to Oracle database form Xcode on Mac OS
Can you guys tell me how do we connect Oracle database from Xcode. which API has to be used.
I'm developing a InDesing CS3 plug-in on Mac. Plug-in functionality is: connect the Oracle database, fetch the record and put them into a text frame on the document.
Please help me.
Thanks in advance
Johirul
Saving custom data in clipboard
When an owned item is part of a text that is cut, the memento gets called. I have the problem that I have data (list of UID) that is neither part of the owned item object nor of the text model but it must get saved to be available on paste.
I know the HidTxt example but that doesn't help me here. Any hints how to put some custom data into the clipboard?
Johannes
Minimize
error R32: # Error: Could not open include file VCPlugInHeaders.h
Newbie to Indesign SDK. Help me to get rid out of this following error:
error R32: # Error: Could not open include file VCPlugInHeaders.h
Like this it is listing 22 missing header files error.
VS .Net 2005
Indesign CS4
Regards,
Suresh
Changing page size, unexpected behavior, CC
Hi, having an issue with transformations after changing the page. In a nut shell if I get the pasteboard transformation of PMPoint(0,0) before a page size change the result is exactly as expected, the page origin in the pasteboard. After I change the page size using kSetPageSetupPrefsCmdBoss and run the same tranformation the retuned value is the same as before changing the page size.
Below is some quick code and output to illustrate. PageSizing:;DoYourThing() get called and does the intial transformation, prints the output in InspectTransformation(), then calls ChangePageSize() and recalls InspectTransformation().
voidPageSizing::DoYourThing()
{
IDocument* theFrontDoc = Utils<ILayoutUIUtils>()->GetFrontDocument();
if (theFrontDoc == nil) { cout<< "Need a doc."<< endl; return; }
fDoc = theFrontDoc;
GetPageSpreadRefs(1); // Get the UIDRef of 1st apge and spread
if (fPageRef == UIDRef::gNull) { cout<< "Invalid page UIDRef."<< endl; return; }
if (fSpreadRef == UIDRef::gNull) { cout<< "Invalid spread UIDRef."<< endl; return; }
cout<< "Before Page Size Change."<< endl;
InspectTranforms();
bool16 sizeChangeResult = ChangePageSize();
if (sizeChangeResult) {
cout<< "After Page Size Change."<< endl;
InspectTranforms();
}
}
voidPageSizing::InspectTranforms()
{
do {
PMPoint leftTopPage(0, 0); // Page coords
InterfacePtr<IGeometry> pageGeo(fPageRef, UseDefaultIID());
PMMatrix page2Pb = ::InnerToPasteboardMatrix(pageGeo);
PMRect pageBoundsInPasteboard = pageGeo->GetStrokeBoundingBox(page2Pb);
PMPoint pageOriginInPasteboard = pageBoundsInPasteboard.LeftTop();
Helper::PrintPoint(pageOriginInPasteboard, "Page origin in paste board.");
InterfacePtr<ITransform> pageTransform(fPageRef, UseDefaultIID());
PMPoint leftTopInPasteboard = leftTopPage;
::TransformInnerPointToPasteboard(pageTransform, &leftTopInPasteboard);
Helper::PrintPoint(leftTopInPasteboard, "Transformed point (0,0) in pasteboard coords.");
} while (kFalse);
}
bool16PageSizing::ChangePageSize()
{
bool16 retval = kFalse;
do {
InterfacePtr<IPageSetupPrefs> docPrefs(fDoc->GetDocWorkSpace(), UseDefaultIID());
if (docPrefs == nil) { cout<< "Nil IPageSetupPrefs"<< endl; break; }
InterfacePtr<ICommand> pageSizeCmd(CmdUtils::CreateCommand(kSetPageSetupPrefsCmdBoss));
if (pageSizeCmd == nil) { cout<< "Nil command"<< endl; break; }
InterfacePtr<IDocSetupCmdData> cmdData(pageSizeCmd, IID_IDOCSETUPCMDDATA);
if (cmdData == nil) { cout<< "Nil command data"<< endl; break; }
PMPageSize currPgSz = docPrefs->GetPageSizePref(); // 612, 792
PMPageSize newPgSz(currPgSz.OutputWidth() + 50, currPgSz.OutputHeight() + 50);
DocPageBinding binding = Utils<ILayoutUtils>()->GetDocumentPageBinding(::GetUIDRef(fDoc));
cmdData->SetDocSetupCmdData( ::GetUIDRef(fDoc),
newPgSz,
docPrefs->GetNumPagesPref(),
docPrefs->GetPagesPerSpreadPref(),
docPrefs->GetWideOrientationPref(),
binding);
ErrorCode ec = CmdUtils::ProcessCommand(pageSizeCmd);
retval = (ec == kSuccess);
if (! retval) { cout<< "Resize page command failed."<< endl; }
} while (kFalse);
return retval;
}
The output
As you can see the page origin is different after the page size command but the transform returns the same value for 0,0.
Am I missing something on the transformations or the page size command?
Thanks for any help. Mike
NameInfo Class
I need update the information of a link. How the class NameInfo is used?
My code is
InterfacePtr<IDataLink> dataLink(UIDRefLink, UseDefaultIID())
if (dataLink) {
NameInfo nameInf;
PMString formatName("");
uint32 filetype(0);
int32 resp= dataLink->GetNameInfo(&nameInf, &formatName, &filetype);
}
with this code i have a compilation error ('nameInf' uses class 'NameInfo' undefined).
Thanks
Error 1 fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory C
Newbie to VC++
Getting the below error in VC++ 2005, Indesign CS4
1>------ Build started: Project: WriteFishPrice, Configuration: Debug Win32 ------ 1>Performing Custom Build Step 1>Compiling... 1>WFPNoStrip.cpp 1>C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\source\precomp\common\ShukHeaders.cp(19) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory 1>WFPID.cpp 1>C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\source\precomp\common\ShukHeaders.cp(19) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory 1>VCPlugInHeaders.cpp 1>C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\source\precomp\common\ShukHeaders.cp(19) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory 1>TriggerResourceDeps.cpp 1>C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\source\precomp\common\ShukHeaders.cp(19) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory 1>SDKPlugInEntrypoint.cpp 1>C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\source\precomp\common\ShukHeaders.cp(19) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory 1>Generating Code... 1>Build log was saved at "file://c:\id6sdk\build\win\objD\WriteFishPrice\BuildLog.htm" 1>WriteFishPrice - 5 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have added the path of config.hpp in "addition include directories" still it is throwing the same error.
Regards,
Suresh
kCreateParaStyleCmdBoss Notification
How to get notified when the user create a new paragraph Style??
I know that the kCreateParaStyleCmdBoss performs notification.
protocol: IID_ISTYLEINFO, theChagne: kCreateParaStyleCmdBoss
how to create the observer?
thanks.
How Can I Set kTextAttrPairKernMethodBoss?
How can I set kTextAttrPairKernMethodBoss ?
InterfacePtr<ITextAttrClassID> iTextAttrOpticalPairKerning(::CreateObject2<ITextAttrClassID>(kTextAttrPairKernMethodBoss ));
if(iTextAttrOpticalPairKerning)
{
.... ?
}
I want to set "Optical" setting in kTextAttrPairKernMethodBoss Class.
How can I do?
How to export story to Text Only format (txt file)
Hi all,
I'm trying to do an export of a text story to TEXT ONLY format, using Export Provider, but I can't find a format name that works for it... I can do the export for RTF using "Sangam RTF Export" but "Text Only" doesn't work for txt export.
Can anyone help, please....
Thanks,
Gustavo
Boost regex not working inside indesign plugin
Hi, While i was writing the below code in a separate project inside visual studio express, It works fine!
Now when I am using the same code in a Adobe InDesign plugin then boost::regex_search fails..
I am not getting the exact reason...
Any idea for resolving this will be great help.
void MTSTestFunctions::ParseAllMarker(std::wstring& inText, std::vector &outMarkerInfoVec)
{
std::wstring::const_iterator start = inText.begin();
std::wstring::const_iterator end = inText.end();
boost::wregex pattern(L"((<.*?>)|(\\[[^[].*?[^]]\\])|(\\[\\[.*?\\]\\]))");
boost::wsmatch what;
boost::match_flag_type flags = boost::match_default;
int32 index = 0;
try
{
while(boost::regex_search(start, end, what, pattern, flags))
{
MarkerInfo tmpMarkerInfo;
tmpMarkerInfo.mMarkerText.assign(what[0]);
tmpMarkerInfo.mStartIndex = (what.position() + index);
index += what.position();
tmpMarkerInfo.mEndIndex = (index += what.position());
tmpMarkerInfo.mMarkerTextLength = (index + what.length());
index += what.length();
// update search position:
start = what[0].second;
// update flags:
flags |= boost::match_prev_avail;
flags |= boost::match_not_bob;
}
}
catch(std::runtime_error ex)
{
}
}
Thanks
plugin scripting support
Using CS5.5 debug
I have a "root" scripable object:
Object
{
kAxioModelObjectScriptElement, // object's script element ID
c_AxioModelEngine, // script PropID
"axiocat engine", // name
"access axiocat data model engine", // description
kCPrefs_CLSID, // Windows CLSID
NoCollectionInfo, // CollectionElementType (scriptID, name, descr, CLSID)
kPreferencesObjectScriptElement,
kPreferencesSuiteScriptElement,
}
.......
Method
{
kAxioModelObjectFindScriptElement,
e_AxioModelFind,
"get axiocat object",
"returns axiocat object",
ObjectType( kAxioUIObjectScriptElement ),
"axiocat object or null if not found"
{
p_AxioModelId, "key", "object id to find", StringType, kRequired,
}
}
Method getAxiocatObject(key) returns another object with next FR definition:
Class
{
kAxioUIObjectScriptBoss,
kBaseProxyScriptObjectBoss,
{
IID_ISCRIPT, kAxioUIObjectScriptImpl,
IID_ISCRIPTOBJECTKEY, kAxioUIObjectKeyScriptImpl,
}
},
Class
{
kAxioUIObjectScriptProviderBoss,
kBaseScriptProviderBoss,
{
IID_ISCRIPTPROVIDER, kAxioUIObjectScriptProviderImpl,
}
},
Object
{
kAxioUIObjectScriptElement, // object's script element ID
c_AxioUIObjectClass, // script PropID
"axiocat object", // name
"axiocat data model object", // description
kAxioUIObject_CLSID, // Windows CLSID
NoCollectionInfo, // CollectionElementType (scriptID, name, descr, CLSID)
kNonIDBasedObjectScriptElement, // base object element ID
kAxioModelObjectSuiteScriptElement, // suite element ID
}
.....
Provider
{
kAxioUIObjectScriptProviderBoss,
{
Parent{ kAxioModelObjectScriptElement },
RepresentObject { kAxioUIObjectScriptElement },
Property { kAxioUIObjectIdScriptElement, kReadOnly },
}
}
Question: when I call in script getAxiocatObject(key), ID produce ASSERT:
"HandleMethod request for method 'getAxiocatObject' on object 'axiocat engine' returned value for method 'xxxx'".
But object returned from this method is correct, and I see all object properties successfully.
What this ASSERT mean?
kAxioUIObjectScriptProviderBoss implementation, where I have doubt:
AxioUIObjectScriptProvider::::GetNumObjects( const IScriptRequestData* data, IScript* parent )
{
return 0;
}
AxioUIObjectScriptProvider::AppendNthObject( const IScriptRequestData* data, IScript* parent, int32 n, ScriptList& objectList )
{
return kSuccess;
}
.fres is an empty file
Hi All,
Can anybody help me, im trying to create my first plugin for CS6. Im unable to build a plugin the following errors are occur while building.
1>------ Build started: Project: test, Configuration: Debug Win32 ------
1> VCPlugInHeaders.cpp
1> testActionComponent.cpp
1> testDialogController.cpp
1> testDialogObserver.cpp
1> PlugInStatics.cpp
1> SDKPlugInEntrypoint.cpp
1> testID.cpp
1> testNoStrip.cpp
1> TriggerResourceDeps.cpp
1> Generating Code...
1> Performing Custom Build Tools
1> ODFRC deleting old resources...
1> Could Not Find C:\Indesign_Plugin\CS6SDK\build\win\objD\test\*.idrc
1> merge_res.cmd - calling ConcatRes
1> 1 file(s) copied.
1> ConcatRes skipped since "..\objD\test"\test.fres is an empty file.
1> merge_res.cmd done.
1> Deleting old resources...
1> The system cannot find the file specified.
1> 'xcopy' is not recognized as an internal or external command,
1> operable program or batch file.
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(108,5): error MSB3073: The command "merge_res.cmd "..\objD\test\" test & echo Deleting old resources... & del /f /s "C:\Indesign_Plugin\CS6SDK\build\win\debug\sdk\(test.sdk Resources)\"*.idrc > ..\objD\Chinna\prevDeletedResources.txt & xcopy /Q /E "..\objD\test\"*.idrc "C:\Indesign_Plugin\CS6SDK\build\win\debug\sdk\(test.sdk Resources)\" /Y
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(108,5): error MSB3073: :VCEnd" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Regards,
Learner
How to get event when any library object added to indesign doc?
I want to do some operation when any library object is added to doc. So please tell me how to get event when any library object is added to the doc. better provide some code snippet.
indesign cs6 sdk c++ : how to create dynamic list item on panel
hi all, I'm new on indesign sdk. I want to make dynamic list view on my panel. on indesign sdk sample, .fr file is harcoded the script for the image, text, etc...
I feel so confused how to create dynamic item list thats included image and text on my panel like a listview on android application.
please give me a suggestion or sample code...
thanks,
awans
*so sorry for my bad english
[CS3 SDK] Error "A tool returned an error code from"
I'm starting to develop plug-ins on InDesign using the first exercise of tutorial (WriteFishPrice) with VisuaStudio C++ 2008 ExpressEdition.
When I try to compile my source I got this message:
In compiling error does not occur none (0 Failed, 0 warnings, 0 skips)
In compiling error does not occur none (0 Failed, 0 warnings, 0 skips).
To me it describe that me code are working fine, but the PlugIn does not work, it is generated, but when put in the plugins folder of InDesign gives error to start.
(Adobe InDesign cannot load the WRITEFISHPRICE.PLN plug-in. The WRITEFISHPRICE.PLN plug-in requires the debug version of InDesign. Please contact the vendor to get a compatible version of WRITEFISHPRICE.PLN)
I'm posting the low response from the compiler, if someone could help me I would be grateful.
http://www.denisramos.com/sidnei/BuildLog.htm
Thanks
Question about override on the text
I have a question about how to get the overrides on the text.
Does anybody have an idea about it?
Thanks in advance!!
InDesign CS5 Background Tasks
When one opens Window->Utilities->Background Tasks, one can see a panel UI with title called "BACKGROUND TASKS". It seems the Panel is for showing something about background process(or maybe a thread on windows). I wonder if there is any way that we can see something on this empty panel, in what situation we can see it. Could one see something when a background process is forked or another thread is activated? Anyone tried it? Thanks